Drop down "entry"

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
stevec
Posts: 122
Joined: Wed Aug 22, 2012 3:45 pm

Drop down "entry"

Post by stevec » Wed Sep 19, 2018 10:36 am

Is there a way to do a drop down with allow entry of value not in list?

jasonzhou
Posts: 104
Joined: Tue Jan 10, 2017 11:26 pm

Re: Drop down "entry"

Post by jasonzhou » Thu Sep 20, 2018 10:56 pm

You can set Item.Text to empty, however, this will leave a space dropdown list, so I think a good way is to create a new Item%N list and only put needed entries in it.
Does this sound ok for you? Thanks.

stevec
Posts: 122
Joined: Wed Aug 22, 2012 3:45 pm

Re: Drop down "entry"

Post by stevec » Wed Oct 31, 2018 1:35 pm

I am looking for a way to show a drop down with entries to select but still allow free form entry (like you can do in VL)

jasonzhou
Posts: 104
Joined: Tue Jan 10, 2017 11:26 pm

Re: Drop down "entry"

Post by jasonzhou » Wed Oct 31, 2018 11:32 pm

Unfortunately, dropdown doesn't allow free text input. However we can make an enhancement for TextBox element that should work as your expectation.

For example:

When you touch textbox, a list appears with entries to select. (See first attached image)
When you input text, the list will show entries that matches the text. (See second attached image)
When you input a text that doesn't exist in list, the list disappear. (See last attached image)

Does this enhancement sound ok for you?

Thanks
Attachments
1.png
List appear when touch the textbox
1.png (6.82 KiB) Viewed 5164 times
2.png
List matches the input text
2.png (5.57 KiB) Viewed 5164 times
3.png
List disappear when text not exist
3.png (2.45 KiB) Viewed 5164 times

stevec
Posts: 122
Joined: Wed Aug 22, 2012 3:45 pm

Re: Drop down "entry"

Post by stevec » Wed Feb 20, 2019 4:27 pm

I think that would work if I can programatically control what shows in the list (rather than standard history of what keyed).

jasonzhou
Posts: 104
Joined: Tue Jan 10, 2017 11:26 pm

Re: Drop down "entry"

Post by jasonzhou » Wed Feb 20, 2019 5:22 pm

You can specify list items using Item%N property. A new property FreeItem was added in RV34 that allows the free entry feature.

https://www.longrangemobile.com/docs/lr ... extbox.htm

Post Reply