Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ADF view object bind parameter value - Expression to hold multiple value

Rupa MohanApr 3 2017 — edited Apr 3 2017

Hi,

I am using Jdeveloper 11.1.1.7.0 with Java  1.7.0_71.

consider a table named employee with a column "level".

Column 'level' can have one,two,three,four and five as values.

I need to dynamically set the value for the level in different situations ex: select * from employee where level in ('one','two') or select * from employee where level in ('three','two')

I have created a View object with the query as ,

select employeeId,employeeName,Level from employee where level = :BindLevel

How to set the :Bindlevel expression ?

I have tried ,

  <Variable

    Name="BindLevel"

    Kind="where"

    Type="java.lang.String">

    <TransientExpression><![CDATA[return " IN ('one','two')";]]></TransientExpression>

  </Variable>

This is not working.

Kindly provide the solution to use IN clause in bind parameter value expression.

Thanks.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 1 2017
Added on Apr 3 2017
2 comments
476 views