Hi all,
In Navision's Permissions Table there is a field called Security Filter,
which has a datatype of TABLEFILTER.
How can we update this field programatically. I tried the following but but hit an type conversion error. The "Security Filter" field is a TableFilter datatype.
Permission.SETRANGE("Object Type", Permission."Object Type"::"Table Data");
Permission.SETRANGE("Object ID", 5601);
Permission."Security Filter" := 'Fixed Asset: No.=COM/100000';
Permission.Modify;
When I tried to assign a text value to the Security Filter filter, the data type conversion error occurs. Anybody has any idea how to update a TableFilter field?
Thanks.
0
Comments
does not help?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
i have about the same problem.
If i want to write the following code everything works fine:
But if i want to write this...
... i get an error message.
--> You cannot write "Customer: Test=1|2" into Integer.
](*,)
Has anybody an idea?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.