21 November, 2017

OAF : Programmatically Add a Parameterized Pop-up

To programmatically add a parameterized pop-up to a component , add the following code in processRequest method

Step 1: Create an OAPopupBean 

 OAPopupBean popupBean1=(OAPopupBean)createWebBean(pageContext,POPUP_BEAN,null,"myPopup1");
popupBean1.setID("myPopup1");
popupBean1.setUINodeName("myPopup1");
popupBean1.setRegion("/oracle/apps/per/xyz/webui/PopupRN");
popupBean1.setHeight("130");
popupBean1.setWidth("320");
popupBean1.setTitle("Popup Title");
popupBean1.setParameters("personId={@PersonId}");
popupBean1.setType(PARAMETERIZED_POPUP);


Step 1: Add popup to item which you want to enable the pop-up, for example "EmpDtlBtn" button

OAButtonBean empDtlBtnBean = (OAButtonBean)webBean.findChildRecursive("EmpDtlBtn");
empDtlBtnBean.setPopupEnabled(true);
empDtlBtnBean.setPopupRenderEvent("onClick");
empDtlBtnBean.setPopupID("myPopup1");

webBean.addIndexedChild(popupBean1);


Thanks

7 comments:

  1. Excellent blog I visit this blog it's really awesome. The important thing is that in this blog content written clearly and understandable. The content of information is very informative. Thanks for the excellent and great idea. keep blogging
    Oracle Fusion Financials Online Training
    Oracle Fusion HCM Online Training
    Oracle Fusion SCM Online Training

    ReplyDelete
  2. Thanks for your help, perfectly working for my requirement ..

    ReplyDelete
  3. Having read your article. I appreciate you are taking the time and the effort for putting this useful information together.

    ReplyDelete
  4. Great blog! The information shared about self publishing services online is very helpful for aspiring authors. Anyone looking to publish my book online can benefit from professional guidance, affordable publishing solutions, and expert support for successful online book publishing.

    ReplyDelete
  5. I found this article really interesting and educational. The explanations are simple and clear. Looking forward to reading more posts from you.online business analyst course

    ReplyDelete
  6. Great post! A MuleSoft Developer course offers hands-on training in API development, Anypoint Platform, and enterprise integration. With practical projects and real-world scenarios, learners can build strong development skills and confidently work on modern system integration solutions.mulesoft developer course

    ReplyDelete
  7. Excellent content! Visual hierarchy, typography, color theory, and layout design are important elements that contribute to creating attractive and functional user interfaces. ui training

    ReplyDelete

ADF : Scope Variables

Oracle ADF uses many variables and each variable has a scope. There are five scopes in ADF (Application, Request, Session, View and PageFl...