Hi, can someone help me to find out what is replacement of NextConrol Property in Nav 2013 and above versions, basically in pages. what I want to achieve that I want to keep my cursor on same text box after validation.
Please help.
Thanks & regards
Kunwar Naresh
*This post is locked for comments
Just open the barcode field's quickentry property true and other turn them false.
Next Control Property in NAV2009R2 : In NAV2009R2 we can keep the the cursor on same field using Next control property where we can define the same field ID which we are using it, so cursor is not going to another control.
How to Keep Cursor on Same field in NAV2013 and Later : In NAV2013 and later we can use automation variable Windows shell and we have to call the method SendKeys of this automation variable.
Name |
DataType |
Subtype |
WshShell |
Automation |
'Windows Script Host Object Model'.WshShell |
Then you have to count No. of Tab cursor is going forward. In my current scenario it is going 3 times forward so we are using Back Tab (Shift + Tab).
CtrlItemNo - OnValidate()
WshShell.SendKeys('+{Tab}');
WshShell.SendKeys('+{Tab}');
WshShell.SendKeys('+{Tab}');
Oh Yea!!!
I think you have already found the solution, let me know if there is easy workaround. I was searching for similar thing but cannot find the right answer anywhere.
I was in similar situation and done following workaround here:
Put the barcode scanning box in separate group in page
make one bool field (NotScanning: Includeindataset-yes) and use that field in editable property of all the groups in header section of page.
QRCode-ONVALIDATE():
IF QRCode <>'' THEN BEGIN
ScanQRCode.ScanBarCodeTransferLine(Rec,Qrcode);
EANCode:='';
END;
NotScanning:=FALSE;
CurrPage.UPDATE;
OnAfterGetCurrRecord()
NotScanning:=TRUE;
Hi Naresh,
Did you find any solution or we can use any hotkey or any automation variable to get back to the same field.
Please suggest.
naresh kumar ,
as i told you earlier check your bar code scanner device ,
on your setting it is there
check your device guide
I know this because we have it
ok, then how it will add or update my transfer line.
Can you call a function which adds Transfer lines from some else part of your Form?
Right now you must be calling that from OnValidate trigger of BarCode field.
-Yogesh Kulkarni
Please verify, if you find answer helpful.
I think that is not possible .May be you can think of using Quick Entry property to set order of field for data entry on page.
naresh kumar ,
you can use it through bar code device handbook
when the barcode scan its send the the data as "Data + Enter"
you can change it from your barcode device configuration
its all in your barcode device hand book (user guide)
thanks and appreciated for the answer. but Still I am facing same problem after applying your solution.
What is the real time scenario:-IN Transfer Order Page I created a additional field for Barcode on Header part. Now I want to scan barocode to add lines in Transfer Line Subform (to add lines i created a function so that is not a problem). So, to keep scanning in barcode textbox i want my cursor should not move from barcode text box. When i enter on it, cursor moves in transfer line subform. which I do not want.
Please help.
thanks and regards
Kunwar Naresh
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156