Wednesday, 11 July 2018

Fire partial action programmatically in oaf

Fire partial action programmatically in oaf

Fire Partial action is related to the OAF Page Loading or rendering. For Example if you want to refresh some specific bean or item of the page then you will use the fire partial action. FirePartialAction is uses for Partial Page Rendering(PPR). It will not cause whole page to render again. It causes only partial refresh of page. Here in this example , I am sharing the example to Fire Partial Action programmatically in OAF Page.
 

How to Fire Partial Action Programmatically in OAF.

 

Put this Code under the Process Request Method of the OAF Page Controller


import oracle.cabo.ui.action.FirePartialAction;

OAMessageChoiceBean EmailAddress=(OAMessageChoiceBean)webBean.findChildRecursive("Email");

FireAction firePartialAction = new FirePartialAction("EmailAction");

EmailAddress.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
 

Now we will capture this Above Event "EmailAction" in the Process From Request Method of the OAF Page Controller.

 
if("EmailAction".equals(pageContext.getParameter(SOURCE_PARAM)))

{
//Event Handling Here
 

2 comments:

Unknown said...

Very nice explanation. Thanks for your blog it helps me a lot. I was tasked to do event capture on DFF date filed and do some processing, but DFF date field was not firing any event so cannot code anything. I was about to say to my manager that this is not possible possible and looking for alternative solution. Then found this blog, and job is done in couple of hours.
Many Thanks
Khemraj

Anonymous said...

Thanks Khemraj for your valuable feedback

Post a Comment

Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *