Expand my Community achievements bar.

Instance - Subforms WSDL Same Data

Avatar

Level 2

Hi all,

we have the following problem.

We have populated our PDF through WSDL however we have added a Button which will add an additional subform.

Now, the problem is when you have populated the first subform and launch a query for the second, the values of the first become the same as the second. i could probably add a read-only script on the Add Button however I would like to avoid this if possible.

Any ideas would be highly appreciated.

Thanks,

Larissa

5 Replies

Avatar

Level 10

That is probably because the binding you used to populate the fields might have used specific indexing of the return values from the webservice..

For example, if I have bound a field to an XML tag that repeats more than once in XML..

If I map the fields in the repeating section to specific indexing of the tag, then when add a new instance at runtime, it will carry the same value and display..

$record.WeeklyTimeEntry.WeekDataList.Week[0].Regular

But if I use the "[*]" notation while binding the field then it will not carry the value to the instance of the field.

$record.WeeklyTimeEntry.WeekDataList.Week[*].Regular

Hope you can translate the same to webservice binding..I only gave an example of one field "Regular"..

Let me know if you still have issues..

Thanks

Srini

Avatar

Level 2

Hi Srini,

Unfortunately that did not help.

I have attached the form so you can have a look.

Thanks a lot for the help. We are going crazy here.

Larissa

Avatar

Level 10

Can you send the form to LiveCycle9@gmail.com..

Also can you send the WSDL definition which can help..Place the URL of the WSDL in the browser with the "?wsdl" at the end to get the definition.

Thanks

Srini

Avatar

Level 10

Sample WSDL Definition..

http://www.cheeso.members.winisp.net/books/books.asmx?WSDL

WSDL Definition returning multiple Rows..

https://acrobat.com/#d=spZ7odO2v6N6wHu993IYcw

Binding in the form with WSDL returning multiple rows..

https://acrobat.com/#d=UjMkmBlnkuAA*cYHX-GUXA

Your form without the Binding for the Repeating Subform..

https://acrobat.com/#d=9veNXyCIgkAYTGFJbZUsEw

In your form you have added a data binding to the Jurisdiction field as

     "!connectionData.GetRiskFactors.Body.GetRiskFactors.PKJurisdiction"

But if WSDL returns multiple rows then it should ideally look like..

"!connectionData.DataConnection.Body.DoKeywordSearchExResponse.DoKeywordSearchExResult.bookInfo[*].isbn" (as per the sample)

"!connectionData.GetRiskFactors.Body.GetRiskFactors[*].PKJurisdiction" (as per your form)

Since I do not have access to your WSDL, probably you can go back to the WSDL developers and confirm whether it returns multiple rows or not. If your WSDL returns multiple rows it should use maxOccurs as "unbounded" as shown in the second link above. Then you can use that [*] notation in the binding which will not populate the same data when you add new instances.

Hope this helps..

Let me know if you need more help..

Thanks

Srini

Avatar

Level 2

Thanks Srini.

I will look into it. We have so far used the read only access function to get it to work.

Other question:

I am trying to automatically select the delivery days which are closest/lower than the calculated business days.

However I have not found a function that will do this yet. Can you give me a hint?

Thanks,

Larissa