Page 1 of 1

[RPG]text alignment of drop down item

Posted: Thu Aug 07, 2014 1:04 pm
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 2731 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

Re: [RPG]text alignment of drop down item

Posted: Fri Aug 08, 2014 12:14 pm
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.

Re: [RPG]text alignment of drop down item

Posted: Fri Aug 08, 2014 4:27 pm
by MegumiSawada
Hi Mark,

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

Regards,
Megumi