[RPG]text alignment of drop down item

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]text alignment of drop down item

Post by MegumiSawada »

Hi all,

I would like to set dropdown text using 3 data fields, for example UserID + SURNAME + GIVENAME.
These data are retrieved from a file.
However, when showing dropdown items on the screen, these texts are not aligned.
It seems that data are trimmed automatically, and shown as if it is not aligned.
IMG_0158.PNG
IMG_0158.PNG (45.39 KiB) Viewed 2729 times
Do you know how to align the text as SURNAME starts from the same position and GIVENAME starts from the same position in the dropdown text?
Or is it not possible to do so?

I tried both
- concatinating like UserID + SURNAME + GIVENAME in RPG, and
- using DS like follows:
D EMP_SELEC DS Qualified
D TEXT 1 70A
D USERID 1 10A
D SURNAME 11 30A
D GIVENAME 31 70A

but didn't get the desired result.

I appreciate your kind advice.

Megumi Sawada
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: [RPG]text alignment of drop down item

Post by MarkDuignan »

I don’t think you can format the content of individual items in a drop down’s value list.

You could put a little ‘prompt’ image beside the field – and when the user touches it you make a popover appear.

The pop over could contain a table with 3 distinct columns in it. When the user touches a pop over table row that value is updated back into the entry field on the screen.

Maybe the pop over could also appear just by touching the field - no image required?

You could make this a generic solution so that it can be reused on many different forms and with different data content.
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: [RPG]text alignment of drop down item

Post by MegumiSawada »

Hi Mark,

Thank you for your reply!
I will show that idea(using popover instead of dropdown) to the customer.

Regards,
Megumi
Post Reply