how to show /visible some field for some users on a form

snyktpsnyktp Member Posts: 75
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

Comments

  • MBergerMBerger Member Posts: 413
    Sorry, but it is not possible to loop through the fields in NAV. You'll have to do it field by field.
Sign In or Register to comment.