Hi all,
When using eXtensible Data Security, sometimes a temporary table is used with an XDS method. In my case, I want to filter the purchase orders based on users who are in a role. For example:
The user who has assigned the role named "XXXX" can only see the purchase orders created by him or by the other users that have assigned the "XXXX" role(and this with all the roles). For that we have a temporaly table where we save the users names than are going to be filtered in the purchase orders, inserting then in a table methos named "XDS". And the return of than table is "return RefreshFrequency::PerInvocation;".(We decided not to use a comma separated range because it was too long).
The problem is that when we try to create a new Purchase Order, Ax gets hangs.
One solution could be putting the refreshFrequency "PerSession", but the same user can access diferent companies, so we can´t do it, because it is going to be filtered with the values of the first company.
Does anyone know if I could enforce a rebuild even if the user has not logged out?
I have read about flushXDSMyConstructs and I'm going to try it, but y don´t where I have to call the method...
If anyone could help me... It will be great!! Thanks everbody!
*This post is locked for comments