[RPG]Displaying Dropdown when switching

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

[RPG]Displaying Dropdown when switching

Post 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
Post Reply