0% found this document useful (0 votes)
145 views

OAF Dynamically Popup - Pacesettergraam

The document describes 3 steps to create a popup link in OAF dynamically: 1) Create an OAPopupBean and set properties like ID, region, height, width, and type 2) Select the item to enable the popup on and set properties like popupEnabled, popupRenderEvent, and popupID 3) Add the popup as an indexed child of the region containing the enabled item, or add to a layout and add that as the indexed child if in a table

Uploaded by

Mostafa Taha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
145 views

OAF Dynamically Popup - Pacesettergraam

The document describes 3 steps to create a popup link in OAF dynamically: 1) Create an OAPopupBean and set properties like ID, region, height, width, and type 2) Select the item to enable the popup on and set properties like popupEnabled, popupRenderEvent, and popupID 3) Add the popup as an indexed child of the region containing the enabled item, or add to a layout and add that as the indexed child if in a table

Uploaded by

Mostafa Taha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

2/21/24, 8:04 AM OAF dynamically popup | pacesettergraam

pacesettergraam

Concentrate where you are, Focus where you want to go

Blog Archives

How to create popup link in OAF dynamically


or declaratively.

DEC 9
Posted by pacesettergraam
Step 1: Create an OAPopupBean. For example:

OAPopupBean popupBean =
(OAPopupBean)createWebBean(pageContext,POPUP_BEAN,null,”myPopup”);
//Set the following properties on the pop-up:
popupBean.setID(“myPopup”);
popupBean.setUINodeName(“myPopup”);
String popupRegion= “/oracle/apps/fnd/framework/toolbox/labsolutions/webui/TestEmpDetailsRN” ;
popupBean.setRegion(popupRegion);
popupBean.setHeight(“130”);
popupBean.setWidth(“320”);
popupBean.setTitle(“Test”);
popupBean.setType(EMBEDDED_POPUP); /* Embedded type */

Step 2: Select the item (messageStyledText, image, link, or button) on which you want to enable the pop-
up, and set the following properties, as shown in this example:

OATableBean tableBean = (OATableBean)webBean.findChildRecursive(“ResultsTable”);


OAImageBean image = (OAImageBean)webBean.findChildRecursive(“UpdateImage”);
image.setPopupEnabled(true);
image.setPopupRenderEvent(“onClick”);
image.setPopupID(“myPopup”);

https://pacesettergraam.wordpress.com/tag/oaf-dynamically-popup/ 1/2
2/21/24, 8:04 AM OAF dynamically popup | pacesettergraam

Step 3: Add the pop-up as an indexed child of the region that contains the item on which the pop-up is
enabled.

Note: If you are enabling a pop-up on an item within a classic table, advanced table or HGrid, then you
must add the pop-up and the item on which it is enabled to a layout and add the layout as the indexed
child of the table.

In this example, the pop-up is enabled on an image within a table, hence the pop-up is added as a
second level indexed child of the table:

OAStackLayoutBean stackLayoutBean = new OAStackLayoutBean();


stackLayoutBean.addIndexedChild(popupBean);
tableBean.addIndexedChild(stackLayoutBean);

Source from https://forums.oracle.com/thread/2317119 (https://forums.oracle.com/thread/2317119)

Posted in OAF & Forms, Oracle

Tags: Adding popup, coding popup, OAF dynamically popup, OAF popup coding, popup Leave a comment

Blog at WordPress.com.

https://pacesettergraam.wordpress.com/tag/oaf-dynamically-popup/ 2/2

You might also like