dropdownfromcolumn

return a value which you can use for a dropdown

First col: the ID, Second col: the Value

 

 

Example

Routing window

we've internal pos_id and the pos_text for the visible view

Slave op is only the pos_id, but we want to see the related pos_text

Trick: We set the dropdown values from slave field

 

routing_master_slave

 

// pos_id - changed
let value=dw_1.dropdownfromcolumns("pos_id","pos_text");
dw_1.modify("beas_apl_master_pos_id.values='"+value+"'");

 

We execute this script

- in loaded event

- in pos_id changed event...