How to Expose AppModule method in ADF

Home/ADF/How to Expose AppModule method in ADF

How to Expose AppModule method in ADF

In this section, we walk through about expose AppModule method to data control for ADF pages to use.

Pre-Requisite

JDeveloper 12.1.3

HR Schema (Oracle Database schema comes with HR Schema)

Country Entity Object

Adding custom method in AppModule Java class

Double click on the AppModuleImpl.java class; (Create Java classes for AppModule)

050416_1705_HowtoExpose1 How to Expose AppModule method in ADF

 

Insert the following method if you have created Country VO object or create any java method

 

wObjectImpl vo = getCountryEOView1(); è

}

050416_1705_HowtoExpose2 How to Expose AppModule method in ADF

Exposing the AppModule method

Double click on the AppModile.xml >> Click Java >> Click the pencil icon

050416_1705_HowtoExpose3 How to Expose AppModule method in ADF

Move the created method to Selected area and click Ok

050416_1705_HowtoExpose4 How to Expose AppModule method in ADF

The method appears in the DataControls , now we can use this method in our JSF pages.

050416_1705_HowtoExpose5 How to Expose AppModule method in ADF

Test the Method

Right click on the AppModile and click Run

050416_1705_HowtoExpose6 How to Expose AppModule method in ADF

Double click on the AppModule >> Select the method >> Click execute >> the method returns the country name to the return value

050416_1705_HowtoExpose7 How to Expose AppModule method in ADF

pgn How to Expose AppModule method in ADF

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply 🙂
pgn How to Expose AppModule method in ADF
By | 2016-12-29T00:38:13+00:00 May 4th, 2016|Categories: ADF|Tags: , , , , |0 Comments
Like us on Facebook.
Connect!