What is the purpose of the parameter cursor_to_col_id?
I tried to move the cursor to a specific next field after moving another field.
Just adding a statement like below, does not make any difference.
SET @cursor_to_col_id = 'document_number'
Could anybody give an example or explanation on how to do this?
Best answer by Frank Wijnhout
The tab key on a keyboard is used in Windows to advance the cursor to the next tab stop. This is not something we want (or can?) override in the GUI.
Therefore we use the Enter key for going to the next field. Enter skips the buttons behind fields, Enter lets the cursor go to a next tab page when leaving the last field on a tab page and it also responds to @cursor_to_col_id.
Note that the GUI could be a little picky whether to listen to this setting from the SP dependent on how you left the previous field. This will not work when you leave the previous by mouse for example.
IF @cursor_from_col_id = 'document_number' AND @invoice_id IS NULL
IF EXISTS (SELECT1FROM invoice WHERE document_number = @document_number)
BEGINEXEC dbo.tsf_send_message 'document_number_already_exists', NULL, 0SET @document_number = NULLSET @cursor_to_col_id = 'document_number'
RETURN
END
Whatever I try, it does not work. Even when I remove the tsf_send_message line.
The model is in 2019.1, the GUI is Windows 2020.1.12
The tab key on a keyboard is used in Windows to advance the cursor to the next tab stop. This is not something we want (or can?) override in the GUI.
Therefore we use the Enter key for going to the next field. Enter skips the buttons behind fields, Enter lets the cursor go to a next tab page when leaving the last field on a tab page and it also responds to @cursor_to_col_id.
It seems that this parameter does not work in the mobile GUI? Is that correct? We have a task where we need to scan a barcode whith a barcode scanner. We want to set the cursor actively in the field which should be set active before scanning.
On every scanning task the user always need to activate the field first before he’s able to scan?
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.