I am creating a offline Adobe interactive form.
I have two fields in a table :-: Course Number and Course Name.
I have a dropdown on Course Name (since users mostly know Course name)
This dropdown gets filled via a webservice (WS1) call to SAP in the form ready event
The webservice returns a table with two fields - CTEXT and CID.
I bound this Web service data connection to the Dynamic properties of Course name dropdown with CTEXT bound to "Item Text" and CID bound to "item Value" fields.
So when I choose the Course Name from dropdown , I can see the name in the CTEXT field (available against xfa.event.newtext propety).
In the exit event of the CTEXT field, I am able to pass the value to the CID as
this.parent.CID.rawValue = this.rawValue. <------------ @1
So far so good.
I had to improve upon this a bit - like - when I input the CID, I have to get the Course Name.
So I called another web service (WS2) in the "exit" event of the CID field and it is fetching the Course name properly (WSTEXT) - I am able to store this in a text field.
and tried to pass the value to CTEXT as
this parent.CTEXT.rawValue = WSTEXT.rawValue
But this is overwriting the CID value because of the code @1
Can you please provide me code / syntax
1. To update the value of the CTEXT field based on the CID value (webservice WS2 call returns the CTEXT value)
2. Add the CID and CTEXT values to the CTEXT dropdown
3. while doing so, delete duplicates from CTEXT dropdown
Thanks,
GVR