Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Editable and Non Editable using CAL code

Posted on by Microsoft Employee

Hi Friends,

i want to set a filed Editable and Non Editable based on the user role using CAL code in NAV 2016

Thanks & Regards,

Ashwini.E

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Editable and Non Editable using CAL code

    Hi mohana

    Thank you reply based on your reply i got a solution.

    thank & regards,

    ashwini.e

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Editable and Non Editable using CAL code

    Check the standard customer card page and see the logic of Primary Contact No.. The ActivateFields Function controls the editable property of it and which then assigns that variable value to the control Editable Property.

  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Editable and Non Editable using CAL code

    IF recUserSetup.GET(USERID) then

     SSSEnable := recUserSetup."Super User";

    assign SSSEnable  in Editable property of field Unit Price.

    I didnt test.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Editable and Non Editable using CAL code

    hi mohana

    i have followed this link based on this link i have created SSSEnable boolean field  

    community.dynamics.com/.../104486

    Thnaks & Regards,

    Ashwini

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Editable and Non Editable using CAL code

    hi mohana

    thank you for reply

    recUserSetup.RESET;

    recUserSetup.SETRANGE(recUserSetup."User ID",USERID);

    recUserSetup.SETRANGE(recUserSetup."Super User",FALSE);

    IF recUserSetup.FIND('-') THEN BEGIN

     IF Type = Type::Item THEN BEGIN

      CurrPage."Unit Price Incl. of Tax".sssEnable (TRUE);

     END

     ELSE BEGIN

      SSSEnable := TRUE;

    END

    END

    this is my code need to disbel the unit price field in sales order line based on role pls give any solution.

    thanks & Regards,

    Ashwini.E

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Editable and Non Editable using CAL code

    can you show your code please

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Editable and Non Editable using CAL code

    Hi mohana,

           I tried this code but its not working.i need to just make as editable false but that is decimal field.

    thanks & regards,

    ashwini.e

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,139 Super User 2024 Season 2 on at
    RE: Editable and Non Editable using CAL code

    check this

    blogs.anandnavconsultant.com/.../how-to-make-field-editable-on-condition.html

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