One to Make one Field Editable at Purchase Order Subform

Stivan_dsouza21Stivan_dsouza21 Member Posts: 218
One to Make one Field Editable at Purchase Order Subform i.e. Qty to Recieve else all the other field uneditable.
how can i do it

I have written the following code:
FORM No(510)
Form - OnOpenForm Trigger
Memberof.RESET;
Memberof.SETRANGE(Memberof."User ID",USERID);
Memberof.SETRANGE(Memberof."Role ID",'QtyEdit');
IF Memberof.FINDFIRST THEN
BEGIN
CurrForm."Qty. to Receive".EDITABLE := TRUE;
END;


But the Code is not working.
Thanks & Regards,
Stivan D'souza

Comments

  • mohana_cse06mohana_cse06 Member Posts: 5,504
    Where is the editable false code?
    try
    Memberof.RESET;
    Memberof.SETRANGE("User ID",USERID);
    Memberof.SETRANGE("Role ID",'QtyEdit');
    CurrForm."Qty. to Receive".EDITABLE := Memberof.FINDFIRST ;
    
  • Stivan_dsouza21Stivan_dsouza21 Member Posts: 218
    Firstly i have make the Whole Subform Editable False Right.
    then
    CurrForm."Qty. to Receive".EDITABLE := Memberof.FINDFIRST ;
    Thanks & Regards,
    Stivan D'souza
  • MBergerMBerger Member Posts: 413
    Firstly i have make the Whole Subform Editable False Right.
    then
    CurrForm."Qty. to Receive".EDITABLE := Memberof.FINDFIRST ;
    Setting "Editable" to FALSE on the form overrules the editabel property of any control on it. You'll have to disable all the controls individually for your code to work.
Sign In or Register to comment.