Professional Documents
Culture Documents
Filtering ADF Pgaes Based On Login Bind Variables
Filtering ADF Pgaes Based On Login Bind Variables
Filtering ADF pgaes based on loggon on User Using Groovy Jdev 11g
Write your View Object Query with Bind variable as shown below
Note: If do do not properly define your security provider (Jazn or Ldap) to establish logon name,
then you will probably get NULL for the userName or Anonymous.
Please note that your JDBC connection username is not the logon username
A second approach would be to write an Application Module method to filter the View Object, then
expose the method and add it to the invoke action component in the Page definition.
You can for example write something along the following lines in the AM
http://www.e-ammar.net/Oracle_TIPS/filtering_adf_pgaes_based_on_log.htm 1/2
13/10/2017 Filtering ADF pgaes based on log
Once this method is written, you can expose it so that you can see in the data control. Add it to the
invoke action of the page iterator.
A third and a completely different approach would be to use the Oracle Row Level Security (RLS)
concept (a database feature in Oracle RDBMS Enterprise Edition). A concept that you need to be
familiar with and is implemented for any Database Access with it is Jdeveloper related or not.
However, from Jdeveloper you need to set the user context and you can do that by overriding the
PrepareSession method to make the user_context equal to the getUserPrinciple
Ammar Sajdi
http://www.e-ammar.net/Oracle_TIPS/filtering_adf_pgaes_based_on_log.htm 2/2