cancel
Showing results for 
Search instead for 
Did you mean: 

depedentdropdowns by using RFCs

Former Member
0 Kudos

Hi

i have 2 dropdown byindex in which iam populating the 1st one with the values from RFC1. once after selecting the value from 1st dropdown second dropdown has to take value from rfc2

say dropdown1 has 2 values A,B .Now if i selct A the onselect eevent for this dropdown is not getting triggerd but if i selct B it getting triggered and then if i select A its getting triggered.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Follow the below mentioned steps for your requirement:

1. Call RFC1 to fetch values for DD1.

2. Immediately after this, fetch the default value of DD1 and pass it to method say "getValues(String DD1)".

3. The above mentioned method should call RFC2 based on the parameter passed to fetch values for DD2.

4. On select event of DD2, call the method of step 3 passsing the selected value of DD2.

Hope this will meet your requirement.

regards,

amit bagati

Former Member
0 Kudos

Hi,

i think the first dropdown showing the "A" value as default.

if so do like this,

after calling the rfc1 place the below statement

wdContext.node<rfc1>().setLeadSelection(-1);

then select A from first check this once.

Regards,

ramesh

Former Member
0 Kudos

Hi,

First call the RFC to populate the DD1 and call RFC to populate DD2 for the initial selected value of DD1. Now, call the same method to call RFC for populating DD2 on the onSelect event of DD1.

Regards,

Murtuza