Restrict Locations based on Users

priyam123
Kilo Contributor

I have two users client user and enduser. I created two fields for refining the locations but both fields are showing same set of locations.

My Requirement : If the user is client user, he should get separate list of locations based on his role, similarly if the user is enduser he should be able to see separate list of locations other than client user.

How this can be achieved?

Regards,

Priyanka

1 ACCEPTED SOLUTION

Priyanka,



Just go to the dictionary of Location field. I assume in the reference table field you have given "Location" table.


Now select the Reference Qualifier as Simple:


Put the filter condition:


User     is         javascript:gs.getUserID();






PS: Hit like, Helpful or Correct depending on the impact of the response.


View solution in original post

12 REPLIES 12

Ravi Prasad1
Tera Guru

Write a advanced reference qualifier on Location field.


Hi Raviprasad,



Can you please help me What condition I need to provide in advanced reference qualifier?



--Priyanka


Priyanka,



Conditions depend on your table configuration and fields. How the location field is connected to users or on what basis you decide that these set of roles are for client users only.


you need to give conditions accordingly.



PS: Hit like, Helpful or Correct depending on the impact of the response.


Hi Mishra,



Thanks for your response, I need   solution in depth. I would like to explain it clearly about the relationship



1)I have created two fields field1 and field2 in incident table which are referenced to Location(cmn_location).


2)In locations form there is a contact field (which is a user).



If time permits please help me in solving this.



--Priyanka