recPermission.RESET;
recPermission.SETCURRENTKEY("Role ID","Object Type","Object ID");
recPermission.SETRANGE("Object Type",recPermission."Object Type"::TableData);
recPermission.SETRANGE("Object ID",intTheTable);
IF recPermission.FINDSET THEN
REPEAT
MESSAGE('Tabel %1 is toegekend aan rol %2',recPermission."Object ID",recPermission."Role ID");
UNTIL recPermission.NEXT = 0;
Maar het is niet snel, want Navision moet de hele tabel scannen.
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Comments
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!