cancel
Showing results for 
Search instead for 
Did you mean: 

How to access <bindItems> using Formcalc script

Ratherfish
Explorer
0 Kudos

I have a drop down list with the following:

<bindItems labelRef="MGTXT" ref="$record.DROP_LISTS.PROMOTION_RSN.DATA[*]" valueRef="MASSG"/>

in the XML Source listing of my form.

I want to change the binding using the Formcalc scriptiing language.

How do I write the script to make the change?

Accepted Solutions (1)

Accepted Solutions (1)

konchada_saikrishna
Active Participant
0 Kudos

Hi,

I would like to understand, why do you want to do a dynamic binding.

why dont you populate the dropdown values dynamically instead, is there any specific reason...?

In any case is it fine if I give solution in JS..? check the below thread solved for a textbox.

http://forums.adobe.com/thread/335953

Cheers,

Sai

Ratherfish
Explorer
0 Kudos

I have Dropdown1 and based on the selected value I want a second Dropdown with the appropriate list values.

I pass a table of values for Dropdown1 as well as 10 tables for the values in the second Dropdown.  When the selection for Dropdown 1 is made I want to make a determination on the value and bind the second Dropdown to the table that has the correct values.

konchada_saikrishna
Active Participant
0 Kudos

Hi Mate,

If you know from 1st dropdown selection which table to refer for the 2nd dropdown then this can be done by simple javascript.

Just loop through the table and then add the key value pairs in to the 2nd.

I did similar code and posted for some post here in sdn itself.

Check if you can find it, else let me know.

Cheers,

Sai

Answers (0)