public void processRequest(OAPageContext pageContext, OAWebBean webBean)
{
super.processRequest(pageContext, webBean);
// get the handle of submitButton and attach the javascirpt functin to it using setOnclick method of OASubmitButtonBean as shown below;
OASubmitButtonBean sbButton = (OASubmitButtonBean)webBean.findIndexedChildRecursive("SubEmpReq");
sbButton.setOnClick("javascript:var Val=document.getElementById('EmpPositionName').value; if(Val==''){ alert('Fill PostionName'); document.getElementById('EmpPositionName').focus();return (false);}return (true);");
}
It is not executed?
ReplyDeleteThank you!
ReplyDeleteI've been looking for this solution for over a week