Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Web Service and flowable subform

Avatar

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile
_jerome_dinnat_
Level 5

10-07-2008

Hi,



I call a web service in my form to retrieve some fields.

I retrieve a list of users (login ,name, email etc ...).



I want when I click on the button that all the fields appear in a table.



I try to drag and drop the connection body to the form design. It create me a table in a flowable subform with an overflowleader and fields that look well. In the binding tab I check that Repeat is check but when I click on the form there is only one row fill in.



Thanks for the help 🙂



Edit : the form is an interactive pdf form.



For example the web service return me 4 users.

If I click on the button only the first user data creating a row.

If I fill 4 in the repeat min box, the 4 rows with data appear but I can specify this value, it depends on what the users choice.



I try to add script in the button :



MyNodeToRepeat.instanceManager.addInstance(0);



but I need to click 4 times on the button.

Replies

Avatar

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile
_jerome_dinnat_
Level 5

17-07-2008

No Ideas ?



For the data merging, the execute button works fine and if we want to script the click event, use a normal button and add xfa.connectionSet.dataconnection.execute(1) in place of execute(0) make the same result and allows to script other things.



But I still don't know how to don't lose the result of a previous call of my web service when a call is made again.



All suggestion will be appreciated 🙂



Thanks again

Avatar

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile
_jerome_dinnat_
Level 5

17-07-2008

I found a solution.

But I need script a lot.



On the click event of my button, I call the web service with the soaprequest, then I take the data from the result, add an instance of my table and fill my field for each user( nameresponse with name etc ..).



I will do like that for the moment. Is there a simple way to do this ?

Avatar

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile
_jerome_dinnat_
Level 5

18-07-2008

I make my solution and it works fine.

I have an little problem when I use my form in a process : a prompt security message appears on the screen and the user must click yes or no. But I don't want this prompt appears, I look for a solution in the acrobat Javascript but I found nothing.



Any ideas ?

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

18-07-2008

What is the message?

Avatar

18-07-2008

If it's the "Acrobat is attempting to connect to ... If you trust the site, choose Allow..." security warning, then it's not easily bypassed because end users need to be aware of potential "phone home" security threats. The dialog does include a "remember my action" option so that it will not appear on subsequent web service calls.



Another option would be to certify the doc and then on each client you would need trust the certificate for high privilege javascript.



Ernest

Adobe Systems

Avatar

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile
_jerome_dinnat_
Level 5

20-07-2008

Yes, it is. When I check the "remember my action" box, the submit button doesn't work anymore.



What do you mean by " to certify the doc" ? I have 2500 users, if I need to do it manually for each one it'll be complicated.



Why when I use the web service without scripting the security warning doesn't appears ?



Thanks for helping me and thanks Paul to.

Avatar

21-07-2008

Certifying the document means applying a digital ID. This only needs to be done once for the document. But in order to avoid the message on the user's machine, you would need adjust the certificate trust settings on all 2500 clients -- not a very good option.



Whether the web service is called through script or not should have no effect on the warning. It should always appear. Also, checking the box should not cause the submit to stop working. Can you send a copy of your form and the wsdl file to dev_info@adobe.com? I wouldn't mind taking a look at it.



Ernest

Adobe Systems

Avatar

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile
_jerome_dinnat_
Level 5

21-07-2008

Hi,



I sent you my form and the wsdl file to dev_info@adobe.com. Thanks.

Avatar

22-07-2008

Hello Jerome,



I've had a very quick look at your form. I see a number of changes to the script in the Submit button, but nothing that would cause it to stop working. Is this form intended for use as part of a LiveCycle process?



When I click the requeteUneBtn, which doesn't use script, I'm presented with a security warning. What version of Acrobat are you using?



And this is completely unrelated to your problems, but I did notice that both drop-down fields have a huge number of StyleID processing instructions in the XML Source. This is likely due to a copy/paste bug in an older version of Designer. If you want to clean them up, you can change the Appearance property (in the Object inspector) to something other than "Sunken Box" and then change it back again.



Ernest

Adobe Systems

Avatar

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile

Avatar
Level 5
_jerome_dinnat_
Level 5

Likes

0 likes

Total Posts

180 posts

Correct Reply

0 solutions
View profile
_jerome_dinnat_
Level 5

22-07-2008

Hello,



Thanks to have look at my form.



I use Acrobat 9 Pro, Designer ES v8.2 but I don't remember if I created the form with the 9.1 version.



Yes, this form is intended to use as part of a LiveCycle process.

When I click on a Web Service button who doesn't have script, I have no security warning.



When I preview my form in Designer ES, I have no security warning at all even with the script.



I didn't notice the StyleID problems, Thanks a lot.



Now my web services are developped in java with netbeans and deployed under Jboss. I was told about making webservices using workbench and the short-lived process.

It will allow me to have a cleaner script using xpath expressions and it was easier to develop. Is this kind of Webservices secure ? And could it resolve my problem ?



Thanks again to have taking time to help me 🙂