You are on page 1of 3

package xxiff.oracle.apps.po.document.order.webui; import java.util.

Hashtable; import import import import import import import import import import import import oracle.apps.fnd.common.MessageToken; oracle.apps.fnd.flexj.KeyFlexfield; oracle.apps.fnd.framework.OAApplicationModule; oracle.apps.fnd.framework.OAException; oracle.apps.fnd.framework.OAViewObject; oracle.apps.fnd.framework.webui.OADialogPage; oracle.apps.fnd.framework.webui.OAPageContext; oracle.apps.fnd.framework.webui.OAWebBeanConstants; oracle.apps.fnd.framework.webui.beans.OAKeyFlexBean; oracle.apps.fnd.framework.webui.beans.OAWebBean; oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean; oracle.apps.po.document.order.webui.OrderLinesCO;

public class xxiffOrderLinesTableRNCOExt extends OrderLinesCO { public void processRequest(OAPageContext oapagecontext,OAWebBean oawebbean) { super.processRequest(oapagecontext,oawebbean); } public void processFormRequest(OAPageContext oapagecontext,OAWebBean oawebbe an) { super.processFormRequest(oapagecontext,oawebbean); OAApplicationModule am = oapagecontext.getApplicationModule(oawebbean); // String Category = ""; oapagecontext.writeDiagnostics(this,"In Process Form Request",1); // OAViewObject oaviewobject = (OAViewObject)am.findViewObject("PoLinesMe rgeVO"); // OAMessageTextInputBean oamessagetextinputbean = (OAMessageTextInputBea n)oawebbean.findIndexedChildRecursive("Category"); // if(oamessagetextinputbean.getValue(oapagecontext) != null){ // Category = oamessagetextinputbean.getValue(oapagecontext).toString (); // }

if(CategoryKFF != null) { // OAViewObject vo=(OAViewObject)am.findViewObject("oracle.apps.po.lo v.server.CategoriesVO"); //Number CateSeg1 = CateKFF.getSegment(1).getValue(); if("531".equals(CateKFF.getSegment(1).getValue())) { MessageToken[] tokens = null; OAException mainmessage = new OAException("PO","XX_CATEGORY_VALI DATION_MESSAGE",tokens,OAException.ERROR,null); OADialogPage oadialogpage = new OADialogPage(OAException.WARNING ,mainmessage,null,"",null);

oadialogpage.setOkButtonToPost(true); oadialogpage.setOkButtonLabel("Ok"); oadialogpage.setPostToCallingPage(true); Hashtable formParams = new Hashtable(1); oadialogpage.setFormParameters(formParams); oapagecontext.redirectToDialogPage(oadialogpage); //oadialogpage.setNoButtonLabel("No"); //oadialogpage.setOkButtonItemName("Go"); //oadialogpage.setNoButtonItemName("Cancel"); if(oapagecontext.getParameter("ok") != null) { /*oapagecontext.setForwardURL("OA.jsp?page=",null,OAWebBeanC onstants.KEEP_MENU_CONTEXT,null,null,true,null,OAWebBeanConstants.IGNORE_MESSAGE S); }else if(oapagecontext.getParameter("Cancel") != null) { */ oapagecontext.setForwardURL("OA.jsp?page=/oracle/apps/po/d ocument/order/webui/OrderPG",null,OAWebBeanConstants.KEEP_MENU_CONTEXT,null,null ,true,null,OAWebBeanConstants.IGNORE_MESSAGES); } } } } }

Coding: 1. Check when the KFF VO is Executed and Right that code OAKeyFlexBean CategoryKFF = (OAKeyFlexBean)oawebbean.findIndexedChildRecursi ve("Category"); KeyFlexfield CateKFF = (KeyFlexfield)CategoryKFF.getAttributeValue(OAWebBean Constants.FLEXFIELD_REFERENCE); 2. If It is Executed then "CateKFF" should has some value if(CategoryKFF != null) { String CateSeg1 = (String)CateKFF.getSegment(1).getValue(); // Take the First Segment Value if(CateSeg1 != null && "531".equals(CateSeg1)) { MessageToken[] tokens = null; OAException mainmessage = new OAException("PO","XX_CATEGORY_VALI DATION_MESSAGE",tokens,OAException.ERROR,null); OADialogPage oadialogpage = new OADialogPage(OAException.WARNING ,mainmessage,null,"",null); oadialogpage.setOkButtonToPost(true); oadialogpage.setOkButtonLabel("Ok"); oadialogpage.setPostToCallingPage(true);

Hashtable formParams = new Hashtable(1); oadialogpage.setFormParameters(formParams); oapagecontext.redirectToDialogPage(oadialogpage); //oadialogpage.setNoButtonLabel("No"); //oadialogpage.setOkButtonItemName("Go"); //oadialogpage.setNoButtonItemName("Cancel"); if(oapagecontext.getParameter("ok") != null) { /*oapagecontext.setForwardURL("OA.jsp?page=",null,OAWebBeanC onstants.KEEP_MENU_CONTEXT,null,null,true,null,OAWebBeanConstants.IGNORE_MESSAGE S); }else if(oapagecontext.getParameter("Cancel") != null) { */ oapagecontext.setForwardURL("OA.jsp?page=/oracle/apps/po/d ocument/order/webui/OrderPG",null,OAWebBeanConstants.KEEP_MENU_CONTEXT,null,null ,true,null,OAWebBeanConstants.IGNORE_MESSAGES); } } HR Attendence Regularisation - MIT HR Attendence Regularisation Special Informat ion Emp Attendence Regularisation - MIT Emp Attendence Regularisation Special Inform ation pAMETranType=SSHRMS&pAMEAppId=800&pProcessName=MIT_EMP_ATT_REG_SIT_JSP_PRC&pItem Type=HRSSA&pCalledFrom=MIT_EMP_INT_ATT_REG_SIT&pPersonID=&pFromMenu=Y pAMETranType=SSHRMS&pAMEAppId=800&pProcessName=MIT_HR_ATT_REG_SIT_JSP_PRC&pItemT ype=HRSSA&pCalledFrom=MIT_HR_INT_ATT_REG_SS&pPersonID=&pFromMenu=Y OA.jsp?akRegionCode=HR_CREATE_PROCESS_TOP_SS&akRegionApplicationId=800&OAFunc=MI T_EMP_INT_ATT_REG_SIT OA.jsp?akRegionCode=HR_CREATE_PROCESS_TOP_SS&akRegionApplicationId=800&OAFunc=MI T_HR_INT_ATT_REG_SS MIT_EMP_INT_ATT_REG_SIT - MIT Employee Attendance Regularization Page MIT_HR_INT_ATT_REG_SS - MIT HR Attendance Regularization Page MIT_EMP_ATT_REG MIT_HR_ATT_REG|Employee Name|Regularisation Date|Shift|Shift Time|Comments / Rea son MEDICAL_REIMBURSEMENT_KFF | Employee Name | Date | Amount | Hospital Name | Deta ils of Sickness MIT_DATE_FIELD For Showing the Calendar to Date Field HH24:MI:SS

You might also like