cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic DropDown Lists in Subform

Former Member
0 Kudos

Hi There,

I am facing a problem regarding Dropdown lists in Subform.

I want the top dropdown list values on all bottom left dropdown lists when I press the button.

The bottom left dropdown lists are in the subforms. So When I use java script like this :

data.Daten.Daten.Daten.Data.DropDown.rawValue =  data.Daten.Aktion.DropDown.rawValue;

It does only change first dropdownlist value, not others.

Please provide solution that How can I change all dropdown lists of a Subform dynamically?

Waiting for reply.

Accepted Solutions (1)

Accepted Solutions (1)

former_member183073
Active Participant
0 Kudos

Hi Philip,

You are assigning values only the first row.

data.Daten.Daten.Daten.Data.DropDown.rawValue =  data.Daten.Aktion.DropDown.rawValue

You have to use the assignment in loop.

1. check number of rows in the table

2. Assign values in loop

// Use the internal table which you binded to dropdown for getting total rows.

var rows = xfa.resolveNodes("****DropDownSrc.DATA[*]").length;

for ( var i =0; i < norows; i++)

{

data.Daten.Daten.Daten.Data[i].DropDown.rawValue =  data.Daten.Aktion.DropDown.rawValue

}

Hope i got you correctly

Former Member
0 Kudos

Hi ,

it works!

Thank you

Answers (1)

Answers (1)

navip
Active Participant
0 Kudos

What is the ADLC version you are using??

If you are using ADLC version above 8.0 you can achieve this requirement through "Action Builder".

---

Naveen

Former Member
0 Kudos

Hi

Thanks for reply,

I am using ADLC 10.

Can you please tell me how to use Action Builder?

Can you send me any link that would help me ?

Thanks again

Phillipp

navip
Active Participant
0 Kudos

Please go through the below link and try..

http://scn.sap.com/docs/DOC-44845

---

Naveen

Former Member
0 Kudos

The same problem...

only in the first dropdown the value is changed.

Are there other solutions?

Thank you!