Monday 20 June 2016

How to get an attribute Value in been by using AttriubteValues and Set Property Listener component

Hi Every one in this post i will describe how to get attribute's value in been

For this post i will get DepartmentId Form Departments Table and show on log screen

So Let's start

I have a read only  Department table and a button on jsf page

Firstly to create been with request scope just select button and create an Action Binding

Click on property Menu and click on Edit



To create new been click on New , write the name of been and class and select request scope
and click Ok


To create new method click on New , write the name of Method and click on OK


Click on Bindings of jsf page then click on + icon of Bindings and select AttributeValues and click OK





Then select DepartmentsView1 as Data Source and DepartmentID as attribute



Now Click on Design
 Select Button and drag and drop set property Listener form Component pallet on Button



To get value form DepartmentId attribute click on property Menu and select Expression Builder




Expand ADF Bindings , then Expand Bindings , then DepartmentId and select inputValue and click on OK



To send value of DepartmentId to been , Click on property Menu and select Expression Builder
then Expand ADF  Managed Beens and select ButtonHandler been and click on Create Property




Write property name and select int data type and click OK



Select type as action



Now go to ButtonHandler been and in get_value method just DepartmentId print on log screen


Now Run your jsf page select any Row and click on button
On log screen you will see the current's rows DepartmentId





Please Feel Free To Ask if you Face any Difficulty 
Like and share to help others
Thanks
Date 20-06-2016

No comments:

Post a Comment

Query to get Business unit (ORGANIZATION_ID) Detail in oracle Fusion

  SELECT HAO.ORGANIZATION_ID AS BUSINESS_UNIT_ID,         HAOT.NAME,         HAO.BUSINESS_GROUP_ID,         HAO.EFFECTIVE_START_DATE,       ...