Hello,
I try to show some fields for some users on a form . But I dont want to wrote codes all field on the form. I created a table that has selected fields and users.When I open any form that calls some record from the table with username .Acording to this some field will be showed ot not. Is there any solution about that ?
Standart codes
RecRef.GETTABLE(Rec);
CurrForm."Unit Cost".VISIBLE := FieldVisible.GetVisibilty(RecRef,FIELDNO("Unit Cost"));
CurrForm."Unit Price".VISIBLE := FieldVisible.GetVisibilty(RecRef,FIELDNO("Unit Price"));
CurrForm."Search Name".VISIBLE := FieldVisible.GetVisibilty(RecRef,FIELDNO("Search Name"));
I want to change like this
REPEAT
CurrForm.XTable.FieldName.VISIBLE := FieldVisible.GetVisibilty(RecRef,FIELDNO(XTable.FieldName));
UNTIL XTable=0;
Thank you
0
Comments