Controller Class Extension Problem

Hi,
I am trying to extending controller class below is the code. When I click "FndGoButtonSubmit" at my page then it does not calling "setSequenceValue(pageContext, webBean)" method and no action take place at processFomeRequest method, although my code at processRequest works fine
super.processRequest(pageContext, webBean);
throw new OAException("Wrong Button Selected", OAException.WARNING);
package oracle.apps.eam.stores.materialissue.webui;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.eam.stores.materialissue.webui.EAMIssueMaterialMainCO;
import oracle.apps.eam.stores.materialissue.server.EAMMaterialResultTableVORowImpl;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.server.OADBTransaction;
import oracle.apps.icx.testapp.emptest.server.EmpTestVORowImpl;
import oracle.cabo.ui.beans.message.MessageTextInputBean;
import oracle.jbo.RowSetIterator;
import oracle.jbo.domain.Number;
public class TestCO extends EAMIssueMaterialMainCO {
public TestCO() {
public void processRequest(OAPageContext pageContext, OAWebBean webBean) {
super.processRequest(pageContext, webBean);
throw new OAException("Wrong Button Selected", OAException.WARNING);
public void processFomeRequest(OAPageContext pageContext,
OAWebBean webBean) {
super.processFormRequest(pageContext, webBean);
if (pageContext.getParameter("EamSubmitButton")!=null) {
setSequenceValue(pageContext, webBean);
else if (pageContext.getParameter("FndGoButtonSubmit")!=null) {
checkButton(pageContext, webBean);
else
throw new OAException("Else if Selected", OAException.WARNING);
public void setSequenceValue(OAPageContext pageContext,
OAWebBean webBean) {
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OADBTransaction transaction = am.getOADBTransaction();
OAViewObject vo =
(OAViewObject)am.findViewObject("EAMIssueMaterialResultTableVO");
System.out.println("Number of Rows are:" + vo.getRowCount());
Number sequencVal = transaction.getSequenceValue("TEST_SEQ_MAT");
EAMMaterialResultTableVORowImpl row = null;
RowSetIterator iterator = vo.createRowSet("iterator");
iterator.setRangeStart(0);
iterator.setRangeSize(vo.getRowCount());
System.out.println("OK!");
for (int i = 0; i < vo.getRowCount(); i++) {
row = (EAMMaterialResultTableVORowImpl)iterator.getRowAtRangeIndex(i);
row.setReference(sequencVal.toString());
public void checkButton(OAPageContext pageContext,
OAWebBean webBean) {
throw new OAException("Go Button Clicked", OAException.WARNING);
Regards,
Haroon.
Edited by: Haroon Afridi on Jan 11, 2011 6:08 AM

Hi Haroon,
You are calling at the start of the PFR super.processFormRequest(pageContext, webBean);//This will alway call your Parent Controller & hence your extended code will not get executed.
Put it at the end of the PFR.
public void processFomeRequest(OAPageContext pageContext,
OAWebBean webBean) {
super.processFormRequest(pageContext, webBean);
if (pageContext.getParameter("EamSubmitButton")!=null) {
setSequenceValue(pageContext, webBean);
else if (pageContext.getParameter("FndGoButtonSubmit")!=null) {
checkButton(pageContext, webBean);
else
throw new OAException("Else if Selected", OAException.WARNING);
public void setSequenceValue(OAPageContext pageContext,
OAWebBean webBean) {
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OADBTransaction transaction = am.getOADBTransaction();
OAViewObject vo =
(OAViewObject)am.findViewObject("EAMIssueMaterialResultTableVO");
System.out.println("Number of Rows are:" + vo.getRowCount());
Number sequencVal = transaction.getSequenceValue("TEST_SEQ_MAT");
EAMMaterialResultTableVORowImpl row = null;
RowSetIterator iterator = vo.createRowSet("iterator");
iterator.setRangeStart(0);
iterator.setRangeSize(vo.getRowCount());
System.out.println("OK!");
for (int i = 0; i < vo.getRowCount(); i++) {
row = (EAMMaterialResultTableVORowImpl)iterator.getRowAtRangeIndex(i);
row.setReference(sequencVal.toString());
Regards.
Gyan

Similar Messages

  • Controller class extension ignored

    Hi,
    in R12, I'm tryng to extend controller in page /oracle/apps/ap/payments/ps/webui/SelectedPsPG 120.9.
    Controller : SelectedPsCO
    Application Module: PsrAM
    To extend oracle.apps.ap.payments.ps.webui.SelectedPsCO I created a new controller in a new package oracle.apps.ap.cust.payments.ps.webui.XxmySelectedPsCO.
    I compiled and deployed it on server.
    In personalization page I updated contoller class value from oracle.apps.ap.payments.ps.webui.SelectedPsCO to oracle.apps.ap.cust.payments.ps.webui.XxmySelectedPsCO.
    I add in custom controller code, on click existing "save" button, a raise of an exception, just to try it.
    I tested my extension but it means not catch the change of controller and ignore the custom raise exception.
    I bounced all services.
    Please help me.
    Lou

    Thanks RMH,
    I activated diagnostic and put messages in controller class.
    Unluckly it doesn't appear.
    After click on svae button I didn't see neither my custom message "MYprocessFormRequest" nor the standard message "processFormRequest".
    Instead I can see "processRequest" and some referement to my custom CO
    [25]:PROCEDURE:[fnd.profiles.Profiles]:getProfileOptionValue: name=FND_DISABLE_OA_CUSTOMIZATIONS; levelID=10002; levelValue=200; levelValueApplID=0
    [25]:PROCEDURE:[fnd.profiles.Profiles]:getProfileOptionValue: name=FND_DISABLE_OA_CUSTOMIZATIONS; levelID=10001; levelValue=0; levelValueApplID=0
    -->*[26]:EVENT:[ap.xxcust.payments.ps.webui.XxinSelectedPsCO]:OAF LOG: Event : Call Process Request, in: oracle.apps.ap.xxcust.payments.ps.webui.XxinSelectedPsCO: Entering Process Request*
    -->*[26]:PROCEDURE:[ap.xxcust.payments.ps.webui.XxinSelectedPsCO]:processRequest - begin*
    -->*[26]:PROCEDURE:[ap.xxcust.payments.ps.webui.XxinSelectedPsCO]:processRequest - begin*[26]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:queryPsrSummary - begin
    [29]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:queryPsrSummary - end
    [29]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:queryCurrTotals - begin
    [32]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:queryCurrTotals - end
    [32]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:querySelectedPs - begin
    [37]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:querySelectedPs - end
    *-->[38]:PROCEDURE:[ap.xxcust.payments.ps.webui.XxinSelectedPsCO]:processRequest - end*
    [39]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:queryPsrSummary - begin
    [41]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:queryPsrSummary - end
    [42]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:queryCurrTotals - begin
    [44]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:queryCurrTotals - end
    [44]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:querySelectedPs - begin
    [49]:PROCEDURE:[ap.payments.psr.server.PsrAMImpl]:querySelectedPs - end
    *-->[50]:PROCEDURE:[ap.xxcust.payments.ps.webui.XxinSelectedPsCO]:processRequest - end*
    So my personalisation seems picked up but processFormRequest is not fired.
    cheers
    Lou

  • BSP Controller Class Enhancement - calling problem while execution

    Hi all,
    We are having a requirement in the EREC-Publication.
    We have to insert 2 Droop-down fields on screen providing the F4 help for them.
    BSP is modified to add the required fields.
    Also, the Controller class methods are enhanced so that the given F4 list table is populated.
    Here the issue is, when we call the BSP application a fresh and go to the required page, F4 help gets populated and the list is displayed. This means that the Enhancement is also being called. - Confirmed after inserting a break-point.
    Then if i navigate to "Previous page" or "Initial page" using the link that is generated by the SAP Standard. Then when i come back to the same page again. the Enhancement for filling the F4 help list is not called and as a result the F4 help remains empty...
    Is there any solution for the same i am not able to figure out what is exactly going wrong?
    Thanks and Regards,
    Kunjal Patel

    Hi Sharmila,
    The BSP Application in concern is a SAP Standard and hence, we need to enhance the same.
    What you say is correct that we need to do it in the DoInit method. However, as far as possible Modification of SAP Standard code should be avoided. For the same, we have used the Implicit Enhancement point to enhance the required Method of the class.
    This Enhancement is not called every time the class method is called. Hence, the worry.
    Any suggestions?
    Thanks and Regards,
    Kunjal Patel

  • How to retrieve content from DAO Class and process in Controller Class?

    Hello
    This is for the experts.
    What is the best approach to passing a large set of data from Class A to Class B? I have a DAO Class that connects to a database to retrieve data. I tried saving the data in a collection (map) and passing the collection to Class B. The problem here is that the data is may be too large for a collection without increasing the heap size, it could cause out of memory exception. Instead I'd like to pass the data (row by row) on to the "Controller" Class where which will process each row. I am not sure how to do this without using a collection or some sort. Some tips will be much appreciated.
    Note: MVC Rules dictates that Controller cannot call the DAO Class directly, it has to go through the Model which talks directly with the DAO Class.
    Thanks
    Edited by: 875864 on 30-Oct-2011 15:05

    875864 wrote:
    Hello
    This is for the experts.
    What is the best approach to passing a large set of data from Class A to Class B? I have a DAO Class that connects to a database to retrieve data. I tried saving the data in a collection (map) and passing the collection to Class B. The problem here is that the data is may be too large for a collection without increasing the heap size, it could cause out of memory exception. Instead I'd like to pass the data (row by row) on to the "Controller" Class where which will process each row. I am not sure how to do this without using a collection or some sort. Some tips will be much appreciated.
    Note: MVC Rules dictates that Controller cannot call the DAO Class directly, it has to go through the Model which talks directly with the DAO Class.
    Thanks
    Edited by: 875864 on 30-Oct-2011 15:05if its a large set of data, and is fetched from DB and you are sure that it is too large and chances of getting out of memory exception then why you are passing it over request.
    If the data is fetched based on some filter criteria, then just pass the filter criteria from class A to class B, and fetch the data from DB based on the filter criteria in class B.

  • Extended controller class error

    Hi,
    I have extended the CompetenciesCO.class file by creating java class in the jdev, after that i written my logic then i saved and transfered that specific file
    to server (where the CompetenciesCO is located).
    But while i run the page, it says could not create java file:
    after that i changed that extended controller file to .class file, but again same problem.
    What should i do?
    Thanks in advance,
    SAN

    I can't understand about custom top under $JAVA_TOP.
    what i did is, i paced the extended Controller file in the same location where the original controller available.
    Now what should i do?
    why my extended class is problem?
    I changed the controller class file in the Region also using personalization.
    but i didn't bouce the application after i made this, is it needed?

  • New controller classes for Web IC views

    Hi
    Could anyone help out with the following:-
    I 'inherited' a customer's Web IC implementation to support recently.  The system hasn't been properly documented, I'm new to Web IC and they've just applied support packages to the system which has caused some problems.
    The specific issue is as follows:-
    I search for, identify and confirm a business partner.
    I call up view IHistResult (via Interaction History from the NavBar) - this was copied from the standard CRM_IC application and has a Z controller associated with it.  There is an XML controller replacement in place to call this view.
    When the view is called, I get a syntax error - CX_SY_MOVE_CAST_ERROR.  The cast that occurs is from a variable referencing CL_BSP_CONTROLLER to my Z class - which does have a relationship to CL_BSP_CONTROLLER through super classes.
    If I make the controller class the SAP standard class (CL_CRM_IC_IHISTRESULT_IMPL) then everything is fine.  I created a new, clean Z class with CL_CRM_IC_IHISTRESULT_IMPL as the super class, no redefinitions, no changes and assigned this to the view.  Then I get the syntax error in the view.
    I don't see what the problem with casting to my Z class can be - it's a subclass of CL_CRM_IC_IHISTRESULT_IMPL with absolutely no changes. 
    If anyone could suggest any ideas or solutions I'd be grateful.
    Thanks
    Ben

    Found my own solution to this one.  Hadn't updated the .do file - only the .htm.
    Sorry for any time wasted.

  • Update a column value from Controller class

    Hi,
    hope you are well.
    i am facing a problem.
    i want to update a schema object's column value i.e:update emp set id=2 where id=:1;
    how can i do it from Controller Class.
    i would like to bind a variable in this :1.
    i would like to avoid pl/sql stored procedure.
    so please suggest.
    regards
    Mofizur

    Mofizur,
    import oracle.apps.fnd.framework.server.OAViewObjectImpl;//Import this into your controller
         OAViewObject opsVO = (OAViewObject) am.findviewObject("getisOpsOrNonOps1");
          if(!opsVO.isPreparedForExecution())
            opsVO.setWhereClause(null);
            opsVO.setWhereClauseParam(0,null);
            opsVO.executeQuery();
          }

  • Controller Class: Search functionality.

    Hello,
    Here is a snapshot of the Controller class what NetBeans have created by default which interacts with the entity class. I need to add a search functionality to this bean which a JSF search form can utilize. Can anyone help me out to add without breaking it's structure.
    public class ProductController {
        private Product product = null;
        private List<Product> products = null;
        @Resource
        private UserTransaction utx = null;
        @PersistenceUnit(unitName = "ExApp")
        private EntityManagerFactory emf = null;
        public EntityManager getEntityManager() {
            return emf.createEntityManager();
        public int batchSize = 15;
        private int firstItem = 0;
        private int itemCount = -1;
        public SelectItem[] getProductsAvailableSelectMany() {
            return getProductsAvailable(false);
        public SelectItem[] getProductsAvailableSelectOne() {
            return getProductsAvailable(true);
        private SelectItem[] getProductsAvailable(boolean one) {
            List<Product> allProducts = getProducts(true);
            int size = one ? allProducts.size() + 1 : allProducts.size();
            SelectItem[] items = new SelectItem[size];
            int i = 0;
            if (one) {
                items[0] = new SelectItem("", "---");
                i++;
            for (Product x : allProducts) {
                items[i++] = new SelectItem(x, x.toString());
            return items;
        public Product getProduct() {
            if (product == null) {
                product = getProductFromRequest();
            if (product == null) {
                product = new Product();
            return product;
        public String listSetup() {
            reset(true);
            return "product_list";
        public String createSetup() {
            reset(false);
            product = new Product();
            return "product_create";
        public String searchSetup() {
            reset(false);
            product = new Product();
            return "product_search";
        public String create() {
            EntityManager em = getEntityManager();
            try {
                utx.begin();
                em.persist(product);
                utx.commit();
                addSuccessMessage("Product was successfully created.");
            } catch (Exception ex) {
                try {
                    if (findProduct(product.getId()) != null) {
                        addErrorMessage("Product " + product + " already exists.");
                    } else {
                        ensureAddErrorMessage(ex, "A persistence error occurred.");
                    utx.rollback();
                } catch (Exception e) {
                    ensureAddErrorMessage(e, "An error occurred attempting to roll back the transaction.");
                return null;
            } finally {
                em.close();
            return listSetup();
        public String detailSetup() {
            return scalarSetup("product_detail");
        public String editSetup() {
            return scalarSetup("product_edit");
        private String scalarSetup(String destination) {
            reset(false);
            product = getProductFromRequest();
            if (product == null) {
                String requestProductString = getRequestParameter("jsfcrud.currentProduct");
                addErrorMessage("The product with id " + requestProductString + " no longer exists.");
                String relatedControllerOutcome = relatedControllerOutcome();
                if (relatedControllerOutcome != null) {
                    return relatedControllerOutcome;
                return listSetup();
            return destination;
      private Product getProductFromRequest() {
            String theId = getRequestParameter("jsfcrud.currentProduct");
            return (Product) new ProductConverter().getAsObject(FacesContext.getCurrentInstance(), null, theId);
        private String getRequestParameter(String key) {
            return FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(key);
        public List<Product> getProducts() {
            if (products == null) {
                products = getProducts(false);
            return products;
        public List<Product> getProducts(boolean all) {
            EntityManager em = getEntityManager();
            try {
                Query q = em.createQuery("select object(o) from Product as o");
                if (!all) {
                    q.setMaxResults(batchSize);
                    q.setFirstResult(getFirstItem());
                return q.getResultList();
            } finally {
                em.close();
        private void ensureAddErrorMessage(Exception ex, String defaultMsg) {
            String msg = ex.getLocalizedMessage();
            if (msg != null && msg.length() > 0) {
                addErrorMessage(msg);
            } else {
                addErrorMessage(defaultMsg);
        public static void addErrorMessage(String msg) {
            FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, msg);
            FacesContext.getCurrentInstance().addMessage(null, facesMsg);
        public static void addSuccessMessage(String msg) {
            FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, msg, msg);
            FacesContext.getCurrentInstance().addMessage("successInfo", facesMsg);
        public Product findProduct(Integer id) {
            EntityManager em = getEntityManager();
            try {
                Product o = (Product) em.find(Product.class, id);
                return o;
            } finally {
                em.close();
        public int getItemCount() {
            if (itemCount == -1) {
                EntityManager em = getEntityManager();
                try {
                    itemCount = ((Long) em.createQuery("select count(o) from Product as o").getSingleResult()).intValue();
                } finally {
                    em.close();
            return itemCount;
        public int getFirstItem() {
            getItemCount();
            if (firstItem >= itemCount) {
                if (itemCount == 0) {
                    firstItem = 0;
                } else {
                    int zeroBasedItemCount = itemCount - 1;
                    double pageDouble = zeroBasedItemCount / batchSize;
                    int page = (int) Math.floor(pageDouble);
                    firstItem = page * batchSize;
            return firstItem;
        public int getLastItem() {
            getFirstItem();
            return firstItem + batchSize > itemCount ? itemCount : firstItem + batchSize;
        public int getBatchSize() {
            return batchSize;
        public String next() {
            reset(false);
            getFirstItem();
            if (firstItem + batchSize < itemCount) {
                firstItem += batchSize;
            return "product_list";
        public String prev() {
            reset(false);
            getFirstItem();
            firstItem -= batchSize;
            if (firstItem < 0) {
                firstItem = 0;
            return "product_list";
        private String relatedControllerOutcome() {
            String relatedControllerString = getRequestParameter("jsfcrud.relatedController");
            String relatedControllerTypeString = getRequestParameter("jsfcrud.relatedControllerType");
            if (relatedControllerString != null && relatedControllerTypeString != null) {
                FacesContext context = FacesContext.getCurrentInstance();
                Object relatedController = context.getApplication().getELResolver().getValue(context.getELContext(), null, relatedControllerString);
                try {
                    Class<?> relatedControllerType = Class.forName(relatedControllerTypeString);
                    Method detailSetupMethod = relatedControllerType.getMethod("detailSetup");
                    return (String) detailSetupMethod.invoke(relatedController);
                } catch (ClassNotFoundException e) {
                    throw new FacesException(e);
                } catch (NoSuchMethodException e) {
                    throw new FacesException(e);
                } catch (IllegalAccessException e) {
                    throw new FacesException(e);
                } catch (InvocationTargetException e) {
                    throw new FacesException(e);
            return null;
        private void reset(boolean resetFirstItem) {
            product = null;
            products = null;
            itemCount = -1;
            if (resetFirstItem) {
                firstItem = 0;
        private Map<Object, String> asString = null;
        public Map<Object, String> getAsString() {
            if (asString == null) {
                asString = new HashMap<Object, String>() {
                    @Override
                    public String get(Object key) {
                        if (key instanceof Object[]) {
                            Object[] keyAsArray = (Object[]) key;
                            if (keyAsArray.length == 0) {
                                return "(No Items)";
                            StringBuffer sb = new StringBuffer();
                            for (int i = 0; i < keyAsArray.length; i++) {
                                if (i > 0) {
                                    sb.append("<br />");
                                sb.append(keyAsArray);
    return sb.toString();
    return new ProductConverter().getAsString(FacesContext.getCurrentInstance(), null, (Product) key);
    return asString;
    Thank you.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Can you tell us what "not working" means? Can you give us some more detail to try and narrow down the problem? Also you say the search works on your local machine. Have you tried running the help from the generated / published location yourself?

  • Cannot locate custom controller class after applying OIE.K  patch.

    Hi,
    I am trying to search all the region level personalizations(on Update Allocations Page in iExpenses while creating Expense Reports) to find out where our custom controller class is being called(it was personalized at site level). But no luck until now.
    Nevertheless, we were able to locate our custom controller class in an instance where the OIE.K oracle patch was not applied. Seems like after applying this patch, the seeded region names are changed too. Our custom code also works but cannot figure out where our CO is being called.
    Any suggestions please?
    Thanks,
    Swati.

    Guys,
    Using "About the Page" link on UpdateExpenseAllocationsPG, I found SplitCriteriaTblCO controller class instead of UpdateKffCO class, that was extended to HumUpdateKffCO custom class.
    Our custom code is still intact even though we do not find our custom CO. Probably we have to look elsewhere to find it, no idea!.
    I just need to know how to remove our iExpense extension. In order to remove the iExpense extensions in the instance where the OIE.K was not applied, we just removed the personalization at site level, where the controller HumUpdateKffCO was called and that took care of it.
    --Swati.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Error while extending controller: class name is wrong or not included

    Hi All,
    I am getting this error while I port my extended controller class to the custom top and assign this controller to the page. I have made sure its the class file that is copied. The directory is correct, the permissions were given using chmod 775. There exists a soft link betwen the custom top and the oracle top as well. What else am I missing here?
    Error: oracle.apps.fnd.framework.OAException: Could not create Java class: (oracle.apps.ap.oie.entry.webui.XXEntryFlowPageCO) associated with region: (GeneralInformationPG). This is probably because the class name is wrong or not included in project.

    :( Started out with that Gyan. If i do give the path with xx. appended to it, it lets me save and when i log back in and there are no changes to the page. I go to the personalise option to find the modification has been overwritten. I was told that this is so because Oracle doesnt recognise the xx.path and since there exists a soft link already the standard path with the new controller name should work.
    i have really tried both of these options and am not sure what could be wrong. thanks for all your attempts to help. anything else i can try?

  • How to get the parent window in sub-child controller class in javafx?

    how to get the parent window in sub-child controller class in javafx?

    You can get the window in which a node is contained with
    Window window = node.getScene().getWindow();Depending when this is invoked, you might want to check the Scene is not null before calling getWindow().
    If the window is a stage that is owned by another window, you can get the "parent" or "owner" window with
    Window owner = null ;
    if (window instanceof Stage) {
      Stage stage = (Stage) window ;
      owner = stage.getOwner();
    }

  • How to get the function name in controller class

    Hi experts ,
    I am new to the OAF framework.
    i have created the two functions and bot he the function have the same controller class .i want to capture the function name or function id in the controller class.
    can you please let me know how to get the function id or function name in the controller class.

    Hi apurba,
    Thanks for the quick reply.
    i am trying to get the function name from the FunctionSecurity class,
    However in FunctionSecurity class there is no such method defined as getFunctionName();
    my requirement is ,i have two functions functionA and functionB defined.
    both the function has the same controller class.in controller class ,i need to get the function name ,based on the function name
    i will redirect the page to respective page.
    looking forward for you response.
    appreciate your help
    Thanks,
    KT

  • How to Find Controller class of  BSP application for particular Iview

    Hi  All,
    Any one please  help me  to find a Controlller class of BSP for an  I view.
    http://Host Name :Port No/sap/bc/gui/sap/its/wosm-cr-->this is for sap retail,
    My requirement  is to change some source code in that particular iview.
    i goine with SE80 Tcode
    with package called WOSM>ITS service>Topic 90-->which contain Mime Objects,Html Templates.
    but i dint find any
    Point will be given!!!

    Hi All,
    My question is where should i find Controller class ?
    i gone with Tcode  SE80>packages>WOST>ITS service>WOSM>Topic90>which contain Mime Objects,HTML Templates.
    i dint find any controller class.
    regards
    Naresh

  • Deploying the extended controller class file on server

    Hi OAF Experts,
    I am working on the already extended controller file.
    I have made the changes and was able to comiple the controller class file.
    I have one uestion for you. Now to put the class file on the server i am following the below steps:
    1) Putting the new class file on the server where it is already present. This is done using Unix commands
    2) Bouncing the server.
    I hope this will reflect the new changes. Is there any thing else i need to do?
    Thanks,
    Samarth

    Hi,
    Yes. These are only required steps to reflect the changes.
    --Sushant                                                                                                                                                                                   

  • How to Use JavaScript in Controller Class...

    Hi All,
    Can any one tell me how to use JavaScript in Controller Class.
    Requirement is:
    I have
    Radio Group(RG1),
    Two Radio Buttons(RB1,RB2),
    Two messageTextInput(MTI1,MTI2),
    if i click RB1 i should Prompt to the end user to "Enter value for MTI1" or
    If i click RB2 i should prompt "Enter value for MTI2" while submitting page.
    Please let me know the steps to use JavaScript and the above client validation...
    Regards
    Alem...

    Using javascript is against the standard. I can tell you a workaround instead of you setting the javascript, check if that would be acceptable.
    You can use PPR and set the required property on the messageTextInput on clicking of the radio button. By doing this you will let UIX generate the javascript for you to handle the client side validation. But the validation will happen only on click of the submit button. The visual indicator is good enough to tell that the value has to be entered to the item.

Maybe you are looking for