It looks like you're new here. Sign in or register to get started.
YourField - OnValidate() IF xRec.YourField <> '' THEN ERROR('You are not allowed to change the value of %1', FIELDCAPTION(YourField));
Timo Lässer wrote: One possible solution could be YourField - OnValidate() IF xRec.YourField <> '' THEN ERROR('You are not allowed to change the value of %1', FIELDCAPTION(YourField));
Savatage wrote: if userid = 'whomever' then end else ..lockdown code.. I don't hard coding a specific user id tho - so I would use permissions or a boolean set on the user table. Here's just one you can modify to fit your needshttp://www.mibuso.com/forum/viewtopic.php?t=2323
Savatage wrote: The only reading material other that taking courses is the Application Designers Guide on the product CD &http://www.geocities.com/powerofthenigh ... ALProg.pdf
Comments
You can use Validation Trigger.
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]
Hi,
Would it be possible to allow some selected user to edit the value ?
then
end
else
..lockdown code..
I don't hard coding a specific user id tho - so I would use permissions or a boolean set on the user table.
Here's just one you can modify to fit your needs
http://www.mibuso.com/forum/viewtopic.php?t=2323
http://www.BiloBeauty.com
http://www.autismspeaks.org
Hi dear thank you for u quick reply.
Since i new in coding in navision i am having difficulty,
I have tried the following
on form open
defined a variables name as "groups" data type "Records" Subtype as user
Code:
Groups.SETRANGE(Groups."Role ID",'Super');
IF (Groups.FIND('-') )THEN BEGIN
CurrForm."Model".visible := false;
CurrForm."Model".editable := false;
END;
Thank you for your help.
Could you advice some common code reading metrial
Regards
Mark
http://www.geocities.com/powerofthenigh ... ALProg.pdf
http://www.BiloBeauty.com
http://www.autismspeaks.org
Thank you for the link i will read it and hope it will helpe me,
Ps: was my above coding right?
Regards
Mark