Hi. I've been working on an XDS policy for displaying sales orders by specific sales taker. Initially I used the (HcmWorkerLookup::currentWorker()) as query range value. This displayed only the sales orders where the SalesTaker was the current user.
Later, based on feedback from the team, we needed to modify the access where one user would manage another's sales orders, which lead me to build separate XDS queries and policies for each salesman (our team is small) with the query on HcmWorker using personnel number and constraining the SalesTable. I assigned this to separate roles for each salesman. It worked fine.
Now we have another scenario where a salesman goes on vacation and he needs to assign all his sales orders to another salesman. So the replacement salesman has to see his own Sales Orders and also that of the guy he's replacing. In this case, if I assign the going salesman's role with the XDS policy to the other salesman (who has an xds policy on his own role), the Sales Orders won't show anything because it will filter the same list twice.
I could of course fix it by adding both salesmen with both personal numbers as range values in a single query assigned to a single role. This shows both of them at the same time to whoever is assigned that role. But this needs to be more dynamic and I need to be able to change it often from the functional side without having to go back to development, which is why I assigned it to separate individual roles in the first place.
So I have two questions.
1) Is there a way to apply two individual salesman's xds roles (which I have already created) to one person and have both users' sales orders display for him? It's not currently doing this as I mentioned earlier.
2) Or is there a better way to develop this so that I can switch/add/remove access for people whenever I need it from the functional end?
Thanks in advance and sorry about the long post!