COMPLETER

Started by Paul M., December 22, 2017, 09:12:23 AM

Previous topic - Next topic

Paul M.


Using completer in Genero 3.10 is it possible to reduce the number of key strokes needed for a user to pick an item on the list and move to the next field?
At the moment after picking an item with return/enter/mouse you then need to press return again to move on.
Just looking to speed it up for the user unless I am missing something?

Reuben B.

You didn't mention TAB in your keys that you have tried, although you also said 'press return again to move on' which may suggest you have modified the 4ad to uselegacy keys rather than native keys.

What you can also do is automatically move on when there is only one value left.  So as part of ON CHANGE

Code (genero) Select
IF list.getLength() = 1 THEN
  LET value = list[1].value
  CALL DIALOG.setCompleterItems(NULL)
  NEXT FIELD NEXT
END IF


I have an example that uses that technique here https://github.com/FourjsGenero/ex_autocomplete, if the autoset checkbox is checked, then that will occur.
Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero