Hello all.
I need some help with the following.
I'm trying to make a field uneditable for some certain users on the Purchase Order. And my process was this, I created a option field Post P.O on the User Setup Table with two options (Confirm and Deny), put it on the User Setup Page.
Then I created a boolean as a global variable on the P.O page, set it in the editable property for the field.
The following code is what I put in the Onaftergetcurrecord trigger
IF UserSetup."Post P.O"=UserSetup."Post P.O"::Confirm THEN Fielditable:=TRUE;
IF UserSetup."Post P.O"=UserSetup."Post P.O"::Deny THEN Fielditable:=FALSE;
Yet it doesn't seem to work if either option is selected on the User Setup Page.
Any help please?