web
You’re offline. This is a read only version of the page.
close
Skip to main content
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,893

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

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 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
    1,893 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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Saurav.Dhyani Profile Picture

Saurav.Dhyani 2 Super User 2025 Season 2

#2
RK-25090803-0 Profile Picture

RK-25090803-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans