Jump to content
We've recently updated our Privacy Statement, available here ×

DomEL Set from query


fez_de

Recommended Posts

Hi,

I was wondering if it is possible to create a set from a query in DomEL.

My example goes a little like this

Table: Orders

  • order_id
  • user_id
  • divsion_id
  • division_parent_id

Table: Users

  • user_id
  • division_id

now my idea is to show rows that match these filters:

orders.user_id IN (select user_id from users) OR orders.division_id IN (select division_id from users) OR orders.division_parent_id IN (select division_id from users)

 

Why do I want this? The idea is to then have a row-level access to the users file (so only showing the current user from table users). Such I would create a domain that only shows the orders that the current user is allowed to see (more than his personal orders)

 

Any idea how I could achieve this?

Any input welcom and thanks a lot,

Felix

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...