Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Paul M. on December 22, 2017, 09:12:23 am



Title: COMPLETER
Post by: Paul M. on December 22, 2017, 09:12:23 am

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?


Title: Re: COMPLETER
Post by: Reuben B. on December 22, 2017, 09:45:13 pm
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
  1. IF list.getLength() = 1 THEN
  2.  LET value = list[1].value
  3.  CALL DIALOG.setCompleterItems(NULL)
  4.  NEXT FIELD NEXT
  5. 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.