Technology Stack - EBS (MOSC)

MOSC Banner

OAF KeyFlexField set value

edited Nov 9, 2023 8:51PM in Technology Stack - EBS (MOSC) 2 commentsAnswered

EBS version 12.2.12.

OAF

How to set value to KeyFlexField dynamically at run time? I have the below code; however, it is throwing the below error:

java.lang.ClassCastException: oracle.apps.fnd.framework.webui.beans.message.OAMessageLovInputBean incompatible with oracle.apps.fnd.framework.webui.beans.message.OAMessageLovTextInputBean

Code snippet

for (int j = 0; j < i; j++) {
              oracle.cabo.ui.UINode uinode = 
                    oakeyflexbean.getIndexedChild(paramOAPageContext.getRenderingContext(), 
                                   j);
                  if ("ChargeAccountFlex_COMBINATION".equalsIgnoreCase(uinode.getID())) {
                    ((OAMessageTextInputBean)uinode).setText("XYX.B000.0000"); 
                    oakeyflexbean.setReadOnly(false);
                    oakeyflexbean.setRequired("yes");
}


How to fix this issue? How to set the value in KFF?


@aJohny

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center