TEXTBOX Type and Search (RDMLX)

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
MarcusLancaster
Posts: 48
Joined: Wed Nov 06, 2013 1:28 am

TEXTBOX Type and Search (RDMLX)

Post by MarcusLancaster »

Hi all.

I'm trying to create an offline form where I create an order line (product code, quantity, etc). In this particular situation I would ideally like the user to be able to enter some text in the product field and have the form immediately present a list of matching products (from a local SQLLite table) based on what they have entered, without having to lose focus on the field or press a search button. If the user continues to type text, the search results are refined. Eventually the user would select one of the results.

The problem I have is that the ONVALUECHANGE event for a TEXTBOX only seems to fire when I lose focus on the textbox - I was hoping it would fire as the text was changed.

Has anybody done anything like this in offline LR? Maybe there's an alternative approach (or undocumented feature) which will give me what I want?

Cheers for now.

Marcus.
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: TEXTBOX Type and Search (RDMLX)

Post by tsupartono »

Hi Marcus,
Unfortunately it's currently not possible to do that in LongRange.
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: TEXTBOX Type and Search (RDMLX)

Post by tsupartono »

This feature has been implemented in RV22 (released).
MarcusLancaster
Posts: 48
Joined: Wed Nov 06, 2013 1:28 am

Re: TEXTBOX Type and Search (RDMLX)

Post by MarcusLancaster »

Thanks for the update on this.

Tried it out in my offline app and it works really well - very fast searching, even with a reasonably large set of data (1000-ish records)

Many thanks for including it.

Cheers!
Post Reply