Forum Discussion

Aaba's avatar
Aaba
Ideator I
6 years ago

Filter relationship grid rows from code

Hi Experts,

I have the requirement that, as per the form property value the relationship content should be shown. I have tried many things but it didnt helped.

E.g I have the form property as dept_name and it has value like "Finance" and "Delivery", according to the value of this property, relationship grid should automatically filter the content(rows).

In my relationship i have both Finance and Delivery values, If logged in user is from Finance then he should be able to see only Finance related rows and delivery user can see only for Delivery dept. records.

Anybody have idea on this? Also is there any way that we can apply the fixed filter in relationship grid on particular property?

1 Reply

  • Hi Aaba,

    Instead of filtering the content of the relationship with custom code on the client-side, this is probably better handled by limiting the amount of data these users can see at all. Aras Innovator offers a few out-of-the-box solutions for controlling user's access to data. In particular, I'd recommend checking out this blog post on MAC Policies which essentially allow you to configure property-based permissions without needing to write any additional code. 

    Chris


    Christopher Gillis

    Aras Labs Software Engineer