cancel
Showing results for 
Search instead for 
Did you mean: 

How to dynamically fill a ToolBarDropDownByKey object ?

diegohs
Active Participant
0 Kudos

Hi everyone,

I have 2 days stucked with this...=( My bapi returns a structure (5 columns, n rows), and I need to fill a ToolBarDropDownByKey object (combo) with the first 2 rows of my output structure.

I dont know how to bind the Toolbar object... =( it doesnt accept to do context mapping to list type (list, array, hashtable, etc).

HOW CAN I FILL MY OBJECT DYNAMICALLY ?

Thaaaaanks for your help !!!!

REgards from Mexico,

Diego

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The *ByKey UI elements use databinding against a DDIC type with a value set of (key, value)-pairs. The selection is determined by the selected key.

For data binding against a context node, where the node elements provide the data, use the *ByIndex UI elements. Here, the selection is determined by the selected index, i.e. the context node's lead selection.

Armin

diegohs
Active Participant
0 Kudos

Thx Armin for your help 😃 I'll try ByIndex object.

10 usefull points 😃

regards,

Diego

diegohs
Active Participant
0 Kudos

Armin,

How do you identify which option was selected ?

I mean, I have a ToolBarByIndex with 5 options, the user chose the 2nd. one, a custom is fired and ...?

I just receive de wdEvent object. But how can I identify which option is selected ?

Thanks and regards 😃

Former Member
0 Kudos

Selected index is the lead selection of the node the drop-down is bound to.

Armin

diegohs
Active Participant
0 Kudos

Thanks Armin ! I'm confused sometimes if I should use current... or node... I realized that node... displays the getLeadSelection. 😃

Thanks for your help and best regards,

Diego Hernandez

Answers (0)