0% found this document useful (0 votes)
187 views2 pages

KFF

This document provides code samples for getting Key Flex Field (KFF) values at runtime in Oracle Application Framework (OAF). It shows how to: 1. Get the KFF bean and reference value. 2. Retrieve the value, name, and input value from a specific KFF segment. 3. Parse and compare integer values from the KFF segment. 4. Additional links are provided for more information on working with KFF in OAF.

Uploaded by

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

KFF

This document provides code samples for getting Key Flex Field (KFF) values at runtime in Oracle Application Framework (OAF). It shows how to: 1. Get the KFF bean and reference value. 2. Retrieve the value, name, and input value from a specific KFF segment. 3. Parse and compare integer values from the KFF segment. 4. Additional links are provided for more information on working with KFF in OAF.

Uploaded by

krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

The below code is used to get the KFF values in runtime(When a user gives input).

https://pacesettergraam.wordpress.com/2015/02/23/getting-value-from-kff-in-oaf/

OAKeyFlexBean kffbean=
(OAKeyFlexBean)webBean.findIndexedChildRecursive(�HrSitKeyFlex�); //Get the KFF
bean

KeyFlexfield
kff=(KeyFlexfield)kffbean.getAttributeValue(OAWebBeanConstants.FLEXFIELD_REFERENCE)
; //Getting the Reference Value
if(kff!=null){
if(kff.getSegment(1).getValue()!=null){
Segment1 = kff.getSegment(1).getValue().toString(); //This returns Value object
so we can just see a object
Segment5 = kff.getSegment(1).getName(); // This returns the Segment
name attached

Segment4 = kff.getSegment(1).getInputValue(); // This returns the Segment


value when user gives as input
pageContext.writeDiagnostics(this,�On Getting Value the Entered Value
�+Segment4,1);
pageContext.writeDiagnostics(this,�On Getting Value the Computed Value
�+outParamValue,1);

int enter_val = Integer.parseInt(Segment4);


pageContext.writeDiagnostics(this,�On Getting Value the Entered Value
�+enter_val,1);
if(outParamValue < enter_val)
{
throw new OAException(�Please Enter a lower value than your Credit
Limit�+outParamValue, OAException.ERROR);
}
}
}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

https://blogs.oracle.com/prajkumar/key-flex-fields,-kff-in-oaf

https://oracleanil.blogspot.com/2014/04/setting-value-in-specific-segment-of-
kff.html

https://apps2fusion.com/at/43-rk/325-key-flex-field-kff-oa-framework

https://oafmanoj.blogspot.com/2014/05/key-flex-fiedl-kff-in-oaf-pages.html

http://rdbms-erp.blogspot.com/2014/07/oracle-framework.html

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

http://yerram.blogspot.com/2017/02/oaf-how-to-get-segment-values-from-kff.html

///Below is the PFR Code on Save button

OAKeyFlexBean kffbean=
(OAKeyFlexBean)webBean.findIndexedChildRecursive("kffID"); //Get the KFF bean
KeyFlexfield
kff=(KeyFlexfield)kffbean.getAttributeValue(OAWebBeanConstants.FLEXFIELD_REFERENCE)
; //Getting the Reference Value
if(kff!=null){
if(kff.getSegment(1).getValue()!=null)
{
String value = kff.getSegment(1).getValue().toString();
//This returns Value object so we can just see a object
String name = kff.getSegment(1).getName(); //
This returns the Segment name attached
String inputValue =
kff.getSegment(1).getInputValue(); // This returns the Segment value when
user gives as input

System.out.println("Value -->"+ value);


System.out.println("name -->"+ name);
System.out.println("inputValue -->"+ inputValue);
}
}

You might also like