Jump to the next line automatically

navuser1navuser1 Member Posts: 1,329
Dear all,

I am entering data into the Sales Comment Line table against a Sales Order. I want that My cursor will jump to the next line in the Sales Comment Line table automatically when current line try to contain more data (maximum characters).

Thanks !
Now or Never

Answers

  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    In NAV this is quite difficult. Maybe you can use a text editor solution. There are several, even some for free in the download section.
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • matttraxmatttrax Member Posts: 2,309
    Definitely would be difficult to do. NAV doesn't have the concept of knowing when the text in a text box is changing (don't read as has changed). You have to exit the text box in order for any changes to happen to the database. Everything up until that point is just stored in memory as something that should happen if you don't press ESC to revert to the old value.
  • KYDutchieKYDutchie Member Posts: 345
    Hi,

    Do you want the cursor to automatically jump to the next line when the line has reached its maximum number of characters?
    Because that is really easy to do.
    Go to your form in design mode, for instance the Sales Comment Form (ID=67).
    Open the properties on the "Comment" Field and set the <AutoEnter> property to "Yes".
    Also set the <Next Control> property to the ID of the "Comment" field, in Form 67 that should be '4'.
    Compile the form and it will now automatically jump to the next line for you when you reach the end of the line.

    Hope this helps,

    Regards,

    Willy
    Fostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.
  • matttraxmatttrax Member Posts: 2,309
    Doesn't help when you're in the middle of typing a word, though.

    You'll get one line ending with Nav and the next starting with ision.
  • navuser1navuser1 Member Posts: 1,329
    Thanks KYDutchie.
    It's working.
    Now or Never
  • navuser1navuser1 Member Posts: 1,329
    matttrax wrote:
    Doesn't help when you're in the middle of typing a word, though.

    You'll get one line ending with Nav and the next starting with ision.

    You are true.
    Now or Never
  • KYDutchieKYDutchie Member Posts: 345
    yeah,

    I know that is true. But you can write a small simple "wordwrap" utility that scans the previous line backwards to the first space, comma or period.
    Then move that string to the beginning of the next line. I have done it once, it was no fun but got it to work.

    Glad I could be of some help.

    Regards,

    Willy
    Fostering a homeless, abused child is the hardest yet most rewarding thing I have ever done.
  • navuser1navuser1 Member Posts: 1,329
    How is it possible in RTC Pages ? :-k
    Now or Never
Sign In or Register to comment.