Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Framework » Tab order in Radicore screen
Tab order in Radicore screen [message #7902] Sat, 08 February 2025 06:04 Go to next message
htManager is currently offline  htManager
Messages: 452
Registered: May 2014
Senior Member
Hi Tony,

I'm having trouble setting the tab order in a screen.
I have four drop-down fields where when a value is selected the _cm_updateFieldArray() method is called to populate other fields. The tab is then in the title of the screen.
All other input fields are jumped to in the order specified in the foobar.screen.detail.inc file.
If I understood correctly, _cm_updateFieldArray() triggers a server action and the focus then jumps back to the first or highest object in the form.
Is there a way to control this using a Radicore method?
Re: Tab order in Radicore screen [message #7903 is a reply to message #7902] Sun, 09 February 2025 04:37 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2378
Registered: April 2006
Location: Surrey, UK
Senior Member
I do not know of any command to set the position of the cursor on any particular field when an HTML form is displayed, so what you are asking for is not possible.

Re: Tab order in Radicore screen [message #7904 is a reply to message #7903] Tue, 11 February 2025 09:04 Go to previous messageGo to next message
htManager is currently offline  htManager
Messages: 452
Registered: May 2014
Senior Member
Have you ever had a problem like this or can you give me advice on where I might look for a solution?
Re: Tab order in Radicore screen [message #7905 is a reply to message #7904] Wed, 12 February 2025 03:47 Go to previous message
htManager is currently offline  htManager
Messages: 452
Registered: May 2014
Senior Member
I solved my problem by defining my own method which is called in _cm_pre_InsertRecord() and _cm_pre_UpdateRecord() and not calling _cm_UpdateFieldArray() when changing a value in the dropdown fields. This will make the tab order as defined in the screen.inc file.
Previous Topic: Default value - changing when inserting new record
Next Topic: PDF - drawing with lines
Goto Forum:
  


Current Time: Sat Feb 22 14:06:23 EST 2025

Total time taken to generate the page: 0.07838 seconds