Hi,
I am having header field 'Sampling Type'(dropdown) based on this value need to set LineForm as non-editable/editable.
Eg:
Header Form:
Sampling Type (dropdown) values are 'Variable,Fixed,Percent'..
If Sampling Type is Not 'VARIABLE' the LineForm should be NONEDITABLE otherwise EDITABLE.
Note: The Trigger I need to fire when you are inserting/creating the record as well as naviage records(next,prv).
suggestion !!!!
Thanks ..
Regards,
Psk
0
Comments
Now add the following code in the trigger:
"linecontrol" in the code just represents the value you have entered in the Name property of the subform, so please put exact value for line control.
sampling type- OnFormat(VAR Text : Text[1024];)
IF "sampling type" = sampling type :: variable THEN
currform.linecontrol.EDITABLE(TRUE)
ELSE
currform.linecontrol.EDITABLE(FALSE);
hope it works......as it worked for me.....gud luck!!!!!
Working Cooool.
Can you plz tell me what is the use for 'ONFORMAT()' Trigger and when it is calling ???
This is the first trigger the system executes when a user highlights the control to enter data.
well you can get more information if you see c/side reference guide,,,,