Sie sind auf Seite 1von 2

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);
}
}

Das könnte Ihnen auch gefallen