Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Step 5: Create page and set the mandatory properties to the page Layout Region.
Step 6: Create one Stack Layout Region under the Page Layout Region.
Step 7: Create item of type Flex under the Stack Layout Region.
Item Id KeyFlexItem
prompt Accounting Key Flex Field
Application Short Name SQLGL
Name GL#
Type Key
View Instance codeCombinationsVO1
Step 9: Create one Controller Class and write the below code in the Process Request
Method
OAKeyFlexBean kffId =
(OAKeyFlexBean)webBean.findIndexedChildRecursive("KeyFlexItem ");
kffId.useCodeCombinationLOV(true);
//kffId.setStructureCode("ARGENTINA_ACCOUNTING_FLEX");
// CCIDlovEnabledKFF.mergeSegmentsWithParent(pageContext);
sampleAMImpl am = (sampleAMImpl)pageContext.getApplicationModule(webBean);
KeyFlexFieldVOImpl vo = (KeyFlexFieldVOImpl)am.findViewObject("KeyFlexFieldVO1");
if(!vo.isPreparedForExecution())
vo.executeQuery();
}
Step 10: Now run the page see the output.
Step 12: If you dont want to see the key flex field is merging one then change the code in
the controller class as below.
kffId.useCodeCombinationLOV(false);
Step 13: Use the below Query to find the Structure Code
select FIF.APPLICATION_ID ,
FIF.ID_FLEX_CODE ,
FIF.ID_FLEX_NAME ,
FIF.APPLICATION_TABLE_NAME ,
FIF.DESCRIPTION ,
FIFS.ID_FLEX_NUM ,
FIFS.ID_FLEX_STRUCTURE_CODE ,
FIFSE.SEGMENT_NAME,
FIFSE.SEGMENT_NUM,
FIFSE.FLEX_VALUE_SET_ID
FND_ID_FLEX_STRUCTURES FIFS ,
FND_ID_FLEX_SEGMENTS FIFSE