Page 1 of 1

[RPG]Displaying Dropdown when switching

Posted: Thu Mar 06, 2014 6:32 pm
by MegumiSawada
Hi,

I have a table on the formview and an item on the table are type:label.
When clicking on any row, the label on that row will switch to Dropdown.
Then I need to click that column once more to show the dropdown items.

I'd like to show the dropdown items(popup) initially just after clicking the column which is type: label.
(I mean I'd like to switch that column to dropdown and show the dropdown items by clicking it once,not twice.)
Is it possible?

Code(extracted):

CALLP LRNG_USING('/FORM.FIELDS.HISTORYTABLE.ROW%' + %CHAR(ROWIDX))
CALLP LRNG_GETPROPERTY('CONT.TEXT': CURVAL : 30)
CALLP LRNG_ASSIGNSTRTOPROP('DROPDOWN' : 'CONT.TYPE')
***** Setting up the dropdown items start*************
Z-ADD 0 @IDX 3 0
DO 4 @IDX
CALLP LRNG_SETPROPERTY('CONT.ITEM%' + %CHAR(@IDX)
+ '.TEXT' : 'AAAAAAAAA' + %CHAR(@IDX) )
CALLP LRNG_SETPROPERTY('CONT.ITEM%' + %CHAR(@IDX)
+ '.VALUE' : %CHAR(@IDX) )
ENDDO
***** Setting up the dropdown items end *************
CALLP LRNG_ASSIGNSTRTOPROP( CURVAL : 'CONT.TEXT')
CALLP LRNG_ENDUSING()

I appreciate your kind advice.

Best Regards,
Megumi