cancel
Showing results for 
Search instead for 
Did you mean: 

Call onSlecet action

Former Member
0 Kudos

Hi,

Hi have created DDK (DropDownByKey) with data from adaptative RFC (in wdDoInit).

When the data from RFC have more than one registry, I have created action (onSelect) to execute other RFC that populate data in other view.

When the data from RFC is only one registry, this data is selected (by default) in DDK, but the action "onSelect" is not called.

How to call onSelect action of DDK with one registry (selected) in wdDoInit??

Best regards,

Accepted Solutions (0)

Answers (2)

Answers (2)

abhijeet_mukkawar
Active Contributor
0 Kudos

Alvaro,

DDK is getting populated with the data from r3, so before it reaches to DDK , we have some mean to know how many registies it has,

1)Take size of the output node(in which there is data),

2)Put one if condition which will check the size,

3)so, if size is 1, then add a blank entry explicitly, otherwise, goto else part and add the entries in normal way.

So even if you have 1 entry in DDK, it wont get selected by default.

hope it helps

regards

former_member182372
Active Contributor
0 Kudos

Hi Alvaro,

Add empty entry to DDK (modifiable value set).

Best regards, Maksim Rashchynski.