Académique Documents
Professionnel Documents
Culture Documents
This article will be useful for creating a key Flex Field in OAF Pages. Step by Step explanation with the
screenshots will be shown.
Step 1 – Create a Item of type FLEX under a Region Layout(Stack Layout RN)
VO Name – GLCodeCombinationsVO
Name – GL#
Type – Key
1
Key FlexField in Oracle Application Pages
Step 3 – Placing the below code to the CO.
Put the below code in the Process Request of CO attached with the KFF
import oracle.apps.fnd.framework.webui.beans.OAKeyFlexBean;
OAKeyFlexBean KFFBean = (OAKeyFlexBean)webBean.findIndexedChildRecursive("KFF");
KFFBean.useCodeCombinationLOV(true);
//Set the KFF Structure
KFFBean.setStructureCode("ARGENTINA_ACCOUNTING_FLEX");
//Set the VO attribute name to the item
KFFBean.setCCIDAttributeName("CodeCombinationId");
CCIDlovEnabledKFF.mergeSegmentsWithParent(pageContext);
//Execute the Query so that we will have some data in VO while we run the page.
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject sampleViewObject =
(OAViewObject)am.findViewObject("GLCodeCombinationsVO1");
sampleViewObject.executeQuery();
2
Key FlexField in Oracle Application Pages
Key Flexfield Segment List : - There are situation where you need to show only few segments.
3
Key FlexField in Oracle Application Pages
Set the Segment List in the below format in the property inspector of the flex bean. If you leave this
property empty, all segments are rendered.
The example below lists segments for just one structure code:
ARGENTINA_ACCOUNTING_FLEX|Company|Department|Account|Sub-Account
Read-Only Segments
You can add the read-only token ($RO$) after any of the segments in the list. For example, the ($RO$)
designator below sets Segment1 in structure code 1 to be read-only: Structure
code1|Segment1($RO$)|Segment2...
The example below lists segments for just one structure code:
ARGENTINA_ACCOUNTING_FLEX|Company($RO$)