disabling a line in requisition worksheet

how can i disable a line in the requisition worksheet…in nav5

for example when the accept action message is yes then the entire line no. would be non editable or disabled.

can some one help me

many thanks

Hi Victor,

The easiest way that I can think of is to make a check for this field “accept action message” and put the check in Requisition Line’s OnModify.

IF “accept action message” THEN

ERROR (‘Your Error Message’);

The fields are still editable but you can prevent the user to make any changes.

Regards,

-TR-

thanks tony,

i would really like to disable the line… can you help me?

many thanks

Hi Victor,

I will create to functions to do this. One is to enable the controls (CurrForm.Control.Editable (TRUE)) and another one is to disable the controls (CurrForm.Control.Editable (FALSE)). Put a condition in OnAfterGetRecord against Accept Action Message.

Regards,

-TR-

what will be my control for lines?