Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to close the data entry through check box button?

(0) ShareShare
ReportReport
Posted on by 1,851

Dear Experts,

There is a data entry form of NOC where multiple entries are present. If any entry is used against the sale invoice then I want to add a check box button in NOC form. When I manually check the check box, the particular entry must be removed from the NOC list. Please give me some suggestion to implement it on my NOC form. 

*This post is locked for comments

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: How to close the data entry through check box button?

    It's not clear what you want to do with your checkbox:

    1) If "Finish NOC" = true and you don't want that your page is editable in this case, in the OnAfterGetRecord you can use CurrPage.EDITABLE(NOT "Finish NOC").

    2) If you don't want to see the lines if "Finish NOC" = true, then you can create a flowfield on the NOC Lines to read the "Finish NOC" field in the header. Then, in your page you can set the SubPageView to filter only the lines where "Finish NOC" flowfield is true.

  • manish.yadav Profile Picture
    manish.yadav 1,851 on at
    RE: How to close the data entry through check box button?

    Thank you for your fast reply Sir. For your kind information, NOC is the customised form, where have two tables used NOC Header and NOC Lines. I don’t want to delete it permanently from NAVISION. For technically, if checkbox value is 0 then user is able to see the entry, if value is 1 means if checkbox is checked the data entry should be hide. 

    7217.test01.png

  • Suggested answer
    Andrey Baludin Profile Picture
    Andrey Baludin 3,941 on at
    RE: How to close the data entry through check box button?

    If I understood you correctly - NOC form is a list type page with several records. And then you set check mark on a record - it should be deleted?

    So add boolean field "Check" to data record table and paste code like this to OnValidate trigger of this field:

    IF Check THEN

     DELETE(TRUE);

    Also, i would add confirmation dialog to avoid deletion by mistake:

    IF Check then

     IF DIALOG.CONFIRM("Record will be deleted, are you sure?") THEN

       DELETE(TRUE);

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans