Page 1 of 1

Combine Dropdown with AutoComplete

Posted: 25 Jan 2023, 18:03
by Fre_Vdh
Hello,

Is it possible to combine the Dropdown extension with the Autocomplete?

Or, when doing it with 'Multitype Input Box' extension and Autocomplete extension, is it then possible that the list is shown when pressing the prompter instead of sending the F4 key?

Greetings,
Frederik

Re: Combine Dropdown with AutoComplete

Posted: 14 Apr 2023, 00:18
by Dino
Hi,

Where we were...

If you have a prompter in the screen the code in it generated automatically by aXes is something like this:

Code: Select all

FIELD.set5250Cursor();
AXES.Layout.prevField();
SENDKEY('F4')
So if you add a dropdown to the screen, make it visible false, you could use a code like this:

Code: Select all

FIELDS("InputField").setProperty("visible", false);
FIELDS("InputField").refresh();
FIELDS("DropDown").setProperty("visible", true);
FIELDS("DropDown").refresh();
to do something different like for example to make visible a dropdown in the screen and not visible the input field.

and so on. you can make the drop down to update the input field, etc.