Combine Dropdown with AutoComplete

Use this Forum to post your “How to …” questions about your use of aXes. This is not a technical support forum. Both the aXes Support Team at LANSA and other aXes customers may answer your questions. LANSA cannot guarantee the accuracy of any information posted by customers.

Moderator: jeanmichel

Post Reply
Fre_Vdh
Posts: 30
Joined: 20 Oct 2022, 17:49

Combine Dropdown with AutoComplete

Post 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
User avatar
Dino
Posts: 88
Joined: 19 May 2017, 08:29

Re: Combine Dropdown with AutoComplete

Post 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.
Post Reply