0% found this document useful (0 votes)
420 views3 pages

OAF CO Extension

1. The code is checking when the KFF VO (Key Flexible Field View Object) is executed and retrieving the category flexfield value. 2. It then validates if the first segment value of the category flexfield is equal to "531" and displays a warning dialog if it matches. 3. Based on the dialog button clicked, it redirects to either the same or calling page.

Uploaded by

Bhargi111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
420 views3 pages

OAF CO Extension

1. The code is checking when the KFF VO (Key Flexible Field View Object) is executed and retrieving the category flexfield value. 2. It then validates if the first segment value of the category flexfield is equal to "531" and displays a warning dialog if it matches. 3. Based on the dialog button clicked, it redirects to either the same or calling page.

Uploaded by

Bhargi111
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy