Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

checkbox control, default true

Posted on by Microsoft Employee

hi how do i make checkbox control default true in the request form and for the report 206 (sales tax invoice), during launching the report, and I want the (post sales Invoice tab) should be locked, where users cant change the fields.. any help appreciated...

*This post is locked for comments

  • Suggested answer
    Neville Foyn Profile Picture
    Neville Foyn 4,320 on at
    RE: checkbox control, default true

    Perhaps to expand on what Mohana said:

    On the "Report - OnInitReport()" trigger you need to add the code to set the option as the report opens, for example the variable for Log interactions is "LogInteraction"

    So add:

    LogInteraction := TRUE;

    and do the same for the rest of the options

    To prevent changes to the filters go to the "Sales header invoice" dataitem in the report and under its properties remove the ReqFilterHeading, ReqFilterHeadingML, ReqFilterFields & change the DataItemTableView to be "SORTING(No.) ORDER(Ascending)"

    Cheers

    Nev

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: checkbox control, default true

    You need to write code in Report-OnInitreport trigger like

    <yourfield> := 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

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