Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Main page / Sub form

Posted on by Microsoft Employee

I have a page with a subform added (below Picture).. Depending on a variable in the main page (IF "QA Inspection In" THEN) I want some fields to become un-editable on the subform page. I've tried...     I've set the global Variable on the Editable Properties to gblnQAIn. This Hasn't worked. 

Main Page:

OnAfterGetCurrRecord()
// TIO000006
IF "QA Inspection In" THEN
frmWarehousePackLabel.QARequired(TRUE)
ELSE
frmWarehousePackLabel.QARequired(FALSE);

On the subform 

QARequired(blnQARequired : Boolean)
IF blnQARequired = TRUE THEN
gblnQAIn := FALSE
ELSE
gblnQAIn := TRUE;

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Main page / Sub form

    I've tried this but the fields are uneditable at all times.. 133.PNG

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,135 Super User 2024 Season 2 on at
    RE: Main page / Sub form

    first write it on OnValidate trigger of the field QA Inspection In and check and also try with update(false);

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans