Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Value is not inserting in the table.

Posted on by 4,184

Hi

I'm using VS Code using NAV, here I have a field called 'Lease Period in Weeks' where the user enters a number. for example if he enter a 10, then 10 new lines need to be inserted. I have written the following code for it but it doesn't seem to work.can someone help with this.

Here i want to increment the serial number till e.g 10 (the user defined value)

This coding is written in a table.

new-line-in-vs-code.JPG

*This post is locked for comments

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Value is not inserting in the table.

    You need to use loop for incrementing the same

  • Suggested answer
    RE: Value is not inserting in the table.

    Hi,

    Did you try using a loop for your requirement? 

    Try using a FOR or WHILE loop and let us know where you get stuck?

    Link: msdn.microsoft.com/.../dd355086.aspx

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans