I'm looking for a skill code which able to switch the input string for the form by using bindkeys.
For example, i created a form for some rule checks. And user are able to input the data in the reserve string field. Upon finish, all form's data will be store in a table. When next time user invoke the form again, they can use bindkey <key> up and <key> down to check for history.
You can't define bindkeys for forms, but perhaps instead you want to use a "combo box" widget? This is created using hiCreateComboField() - and allows both a list of cyclic choices (which could be your history) and a type in field.
Entry part can be string field. Implement the history part as a report field (hiCreateReportField). It will be a scrollable, sortable field.
In reply to rajeshcad:
Thanks for the prompts reply. : -)
Andrew do hit the point that i'm facing. When a form is up, the bindkeys will not working unless the active window is switch to other window. Especially when i trying to use bindkey to change the string's data.
Let me try on hiCreateComboField and hiCreateReportField.
In reply to kbhow:
It works. I create a function and assign it to <key>up and <key>down to callback for input history. And use function hiCreateComboField to create the string field. It works perfectly.