rbross wroteBenHayat wrote
then you need to control it based on "certain" users, you need to create another BO as a xref that allows specific users to that category. And your system needs to check against xref, if exists, it is allowed.
Ben, Got it working except for the filter on the query.
Can I use IF EXISTS in a query or do I need to call a process and use the IF EXISTS, not sure how to write this statement? I need to display the query based on what Categories they have access to. I have a query to display the Categories but right now it just shows them all, the query still needs to be filtered.
I've only used EXISTS in BO rule and not query. But in reality, you need to filter the xref BO. For example, your Xref BO will have two attribute, the user Ref and Cat Ref. and you need to add Shortcuts from category and user in the Xref. Now you will filter xref for a specific category and user and if the user has access to that category it will be on the list.
But the key is when you create that xref, is when you are giving that user access to that category. That's the important step.