Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: COMPLETER  (Read 7340 times)
Paul M.
Posts: 31


« 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?
Reuben B.
Four Js
Posts: 1126


« Reply #1 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.

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines