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: 133
Joined: Thu Aug 23, 2012 6:45 am

Drop down "entry"

Post by stevec » Thu Sep 20, 2018 1:36 am

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

jasonzhou
Posts: 119
Joined: Wed Jan 11, 2017 3:26 pm

Re: Drop down "entry"

Post by jasonzhou » Fri Sep 21, 2018 1: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: 133
Joined: Thu Aug 23, 2012 6:45 am

Re: Drop down "entry"

Post by stevec » Thu Nov 01, 2018 5:35 am

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: 119
Joined: Wed Jan 11, 2017 3:26 pm

Re: Drop down "entry"

Post by jasonzhou » Thu Nov 01, 2018 3: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 5234 times
2.png
List matches the input text
2.png (5.57 KiB) Viewed 5234 times
3.png
List disappear when text not exist
3.png (2.45 KiB) Viewed 5234 times

stevec
Posts: 133
Joined: Thu Aug 23, 2012 6:45 am

Re: Drop down "entry"

Post by stevec » Thu Feb 21, 2019 8:27 am

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

jasonzhou
Posts: 119
Joined: Wed Jan 11, 2017 3:26 pm

Re: Drop down "entry"

Post by jasonzhou » Thu Feb 21, 2019 9:22 am

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