Answered
I built an XFA form in LCD 8.2 similar to the one in the tutorial by Thom Parker that uses variables to select. If the 2 variables have the same dollar value associated with them, when you select the second selection the list reverts to the first selection.
In other words:
If I have: "Reel 1", 200 and "Reel 3", 200 when I select Reel 3 the pull down menu reverts to Reel 1.
Can someone tell me if this can be fixed and how?
Thank you.
For that I use a scriptobject in the form, that contains the arrays for part number, part names and part prices.
Also in the script object there is a function for populating a drop down list with the part numbers.
And finally a function to populate the fields for the part name and price depending on the selection that have been made in the drop down list.
In the form I have a table with a drop down list for selecting the part numbers, that has two scripts.
One to trigger the function to populate the part numbers from the script object.
And the other to trigger the function to populate the other field of the table with the part name and price.
MyArticles.PN_ReadOut(xfa.event.newText, PartName, PartPrice);
The function works as follows.
If you select the third part number the script returns the third value of the part name array and also the third value of the part price array.
So, there is a parallelism between all arrays.
The positive effect is, that it doesn't matter if there is the same value sevaral times in the arrays.
I hope this is what you're looking for!
[url]https://share.acrobat.com/adc/document.do?docid=bd7a4b23-76a7-4dc0-99a8-6e535aadd096[/url]
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs