I'm on 2020.03 NG-Client and playing with Form Components.
Each person may know how to speak several languages.
I have a form component (People) containing a list component container with a list component (Languages) showing person_to_languages related records.
In my People entity I created a function for creating a new related record in person_to_languages and it shows up fine in my language list.
I can click into the fields of my new record to edit, but in the Smart Client I took the user right to the first field for data entry by using requestFocus().
I would like to do the same in the NG-Client. The first field of a language is a TYPEAHEAD.
Since the entity does not know about the UI, my entity method calls a scoped method to try to request focus.
I have tried
- Code: Select all
forms.person.elements.formcomponent_7.containedForm.listformcomponent_3.containedForm.language.requestFocus();
The field border kind of flashes, but the TYPEAHEAD menu does not drop down.
Any ideas?