[RPG] - Bind Dropdown to SQL Table

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
mwilliams
Posts: 20
Joined: Fri May 19, 2017 1:34 am

[RPG] - Bind Dropdown to SQL Table

Post by mwilliams »

I was hoping somebody could confirm that this is the proper way to bind a dropdown to a sql table. There is not any documentation for ItemList or ItemTemplate in the online documentation that I could find so I just wanted to be sure.

Lrng_using(‘/form.fields.ordersList’);
lrng_setProperty('ItemList.&.Tbl': 'HZPTSHP');
lrng_setProperty('ItemList.&.Sql'
:'SELECT ROWID, HZNO14 from HZPTSHP');
lrng_setProperty('ItemTemplate.Text.&.Fld' : 'HZNO14');
lrng_setProperty('ItemTemplate.Value.&.Fld' : 'HZNO14');
lrng_endusing();
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: [RPG] - Bind Dropdown to SQL Table

Post by tsupartono »

Yes that looks correct to me.
Post Reply