Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8338

Populating a OWL with dynamically generated queries

$
0
0

Hi,

 

for a collection of one BO named contract I need a dynamic filtering.

 

The filtering is based on a rights BO that has a node of assigned employees and other elements that hold the permissions (for instance a cost centre, the company,or the type of contract).


When opening a floorplan the OWL should only show these contracts the logged user is permitted to read or edit.


An example:


Actual user "A" is logged in. Two rights objects reference this user in their employees node. As a result, he has permission to read/write contract objects having cost centre "B"  and "C" and contract types "D" and "E". All other elements of the collection of contracts should not be listed in the OWL.

 


So, I could build my query dynamically in ABSL based on a predefined query using the statement QueryParameters.ADD(...) - each for the required attribute of a contract - and get the collection of contract BOs the user has permission to.

 

Is it possible to build and use such a dynamic query as an initial query for a OWL? Yet, I know that only QueryByElements or user defined static queries can act as a default query.

 

What would you propose as the best way to populate a OWL regarding Performance and the needs of building a query dynamically?

 

 

Thanks in advance!

 

Markus


Viewing all articles
Browse latest Browse all 8338


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>