Dynamically Setting Event on Input Text Bean
Partial Action
if (inputbean != null) {
FireAction firePartialAction = new FirePartialAction("InputAction");
buttonbean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
oracle.cabo.ui.action.FireAction FireActionB = new oracle.cabo.ui.action.FireAction();
FireActionB.setEvent("InputAction");
FireActionB.setUnvalidated(true); // Disabling Validation on Page
inputbean.setPrimaryClientAction(FireActionB);
}
Action with Validations disabled
if (inputbean != null) {
oracle.cabo.ui.action.FireAction FireActionB = new oracle.cabo.ui.action.FireAction();
FireActionB.setEvent("InputAction");
FireActionB.setUnvalidated(true); // Disabling Validation on Page
inputbean.setPrimaryClientAction(FireActionB);
}
Disbaling validation in LOV Bean -
LovBean.setUnvalidated(true);
Setting Properties for DFF Bean field -
DFFBean.processFlex(pageContext);
Enumeration enu = null;
for (enu = DFFBean.getChildNames(); enu.hasMoreElements(); )
{
String aParamName = (String)enu.nextElement();
pageContext.writeDiagnostics(this, "DFF Field : " +aParamName, 1);
OAWebBean dffbeans = DFFBean.findChildRecursive(aParamName);
if ((dffbeans != null) &&
(dffbeans.getLocalName().equals("messageLovInput")) &&
(dffbeans.getLabel().equals("FieldPrompt")))
{
dffbeans.setRendered(false); //Set Properties Values
}
}
Dynamically Setting Event on ImageBean -
Partial Action - No Submit and Validations
if (imagebean != null) {
FireAction firePartialAction = new FirePartialAction("ImageAction");
imagebean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
}
Full Submit page with Validations on Image Bean
if (imagebean != null) {
imagebean.setFireActionForSubmit("ImageAction",null,null,true);
}
Partial Action
if (inputbean != null) {
FireAction firePartialAction = new FirePartialAction("InputAction");
buttonbean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
oracle.cabo.ui.action.FireAction FireActionB = new oracle.cabo.ui.action.FireAction();
FireActionB.setEvent("InputAction");
FireActionB.setUnvalidated(true); // Disabling Validation on Page
inputbean.setPrimaryClientAction(FireActionB);
}
Action with Validations disabled
if (inputbean != null) {
oracle.cabo.ui.action.FireAction FireActionB = new oracle.cabo.ui.action.FireAction();
FireActionB.setEvent("InputAction");
FireActionB.setUnvalidated(true); // Disabling Validation on Page
inputbean.setPrimaryClientAction(FireActionB);
}
Disbaling validation in LOV Bean -
LovBean.setUnvalidated(true);
Setting Properties for DFF Bean field -
DFFBean.processFlex(pageContext);
Enumeration enu = null;
for (enu = DFFBean.getChildNames(); enu.hasMoreElements(); )
{
String aParamName = (String)enu.nextElement();
pageContext.writeDiagnostics(this, "DFF Field : " +aParamName, 1);
OAWebBean dffbeans = DFFBean.findChildRecursive(aParamName);
if ((dffbeans != null) &&
(dffbeans.getLocalName().equals("messageLovInput")) &&
(dffbeans.getLabel().equals("FieldPrompt")))
{
dffbeans.setRendered(false); //Set Properties Values
}
}
Dynamically Setting Event on ImageBean -
Partial Action - No Submit and Validations
if (imagebean != null) {
FireAction firePartialAction = new FirePartialAction("ImageAction");
imagebean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
}
Full Submit page with Validations on Image Bean
if (imagebean != null) {
imagebean.setFireActionForSubmit("ImageAction",null,null,true);
}
No comments:
Post a Comment