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
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
Hi mohana
Thank you reply based on your reply i got a solution.
thank & regards,
ashwini.e
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.
IF recUserSetup.GET(USERID) then
SSSEnable := recUserSetup."Super User";
assign SSSEnable in Editable property of field Unit Price.
I didnt test.
hi mohana
i have followed this link based on this link i have created SSSEnable boolean field
community.dynamics.com/.../104486
Thnaks & Regards,
Ashwini
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
can you show your code please
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156