Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Dynamics Nav 2016 :: NextControl Property of Text Box

Posted on by Microsoft Employee

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

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics Nav 2016 :: NextControl Property of Text Box

    Just open the barcode field's quickentry property true and other turn them false.

  • Suggested answer
    Rishi Chourey Profile Picture
    Rishi Chourey 141 on at
    RE: Dynamics Nav 2016 :: NextControl Property of Text Box

    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.

     

    Temp-Image.png

     

    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}');

     

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics Nav 2016 :: NextControl Property of Text Box

    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;

  • Rishi Chourey Profile Picture
    Rishi Chourey 141 on at
    RE: Dynamics Nav 2016 :: NextControl Property of Text Box

    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.

  • Suggested answer
    Maneesha Profile Picture
    Maneesha 5,889 on at
    RE: Dynamics Nav 2016 :: NextControl Property of Text Box

    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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics Nav 2016 :: NextControl Property of Text Box

    ok, then how it will add or update my transfer line.

  • Suggested answer
    Yogesh Kulkarni_ Profile Picture
    Yogesh Kulkarni_ 1,762 on at
    RE: Dynamics Nav 2016 :: NextControl Property of Text Box

    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.

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Dynamics Nav 2016 :: NextControl Property of Text Box

    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.

  • Suggested answer
    Maneesha Profile Picture
    Maneesha 5,889 on at
    RE: Dynamics Nav 2016 :: NextControl Property of Text Box

    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)  

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics Nav 2016 :: NextControl Property of Text Box

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans