OAF problem

hi experts,
i have a problem on oracle application framework(OAF).
as per our client requirement ,page is there in particular day(like sunday or saturday) some columns should be disable stage.
i need a logic for this how to approach. if you provide any kind of code it should be most appreciable.
please help me out priroty is very high.

Please ask this question in the [OA Forum|http://forums.oracle.com/forums/forum.jspa?forumID=210]
Timo

Similar Messages

  • Problem with RTF Report Generation From OAF Page

    Hi,
    I have a requirement where from OAF page, on a button click, a RTF report should be generated. Template has been already defined for the same. If I want to generate report in .xls or pdf, it is working fine but in case of RTF it is showing that "Word cannot start the converter mswrd632" and then onclick of ok, it is displaying some junk data in word doc.
    Below is the code written in PFR-
    else if((outputType != null) && (outputType.equalsIgnoreCase("RTF")))
           outputType = "application/vnd.msword";//"application/vnd.ms-word.document";//"application/vnd.ms-word";
           ext = ".doc";
    if ((outputType != null) && (outputType.equalsIgnoreCase("RTF")))
          TemplateHelper.processTemplate(txn.getAppsContext(), "XXCUST", templateName, txn.getUserLocale().getLanguage(), txn.getUserLocale().getCountry(), in, TemplateHelper.OUTPUT_TYPE_RTF, null, pdfout);
    else
          TemplateHelper.processTemplate(txn.getAppsContext(), "XXCUST", templateName, txn.getUserLocale().getLanguage(), txn.getUserLocale().getCountry(), in, (byte)btype, null, pdfout);
    Please help urgently by sharing your ideas about solving this problem.
    Thanks,
    Annie

    hi Annie,
    Please check the links may be it will help you:
    https://forums.oracle.com/thread/2185528
    https://forums.oracle.com/thread/2545516
    https://forums.oracle.com/thread/2543842
    https://forums.oracle.com/thread/2342141
    if you get the right solution please mention here, it will help others.
    Regards
    Mahesh

  • URGENT please !!! Problem with XML Publisher , OAF Integration

    Hi,
    I am trying to integrate an XML Publisher Report into OA Framework but running into issues.
    If you could help me or give any pointers I would greatly appreciate it.
    When run the report through Concurrent Manager, it runs without any problem. But, when I run
    it from OAF, nullpointer exception is raised at this statement i.e. datatemplate.processData();
    I did go through many threads related to this topic, but couldn't get any help.
    This is what I have done
    ========================
    1. Wrote a PLSQL package to generate XML output.
    BEGIN
    open c_person;
    fetch c_person into v_last_name;
    close c_person;
    fnd_file.put_line(FND_FILE.OUTPUT,'<?xml version="1.0" encoding="UTF-8"?>');
    fnd_file.put_line(FND_FILE.OUTPUT,'<QUALIFICATION_REPORT>');
    fnd_file.put_line(FND_FILE.OUTPUT,'<CANDIDATE>');
    fnd_file.put_line(FND_FILE.OUTPUT,'<CANDIDATE_NAME>'||v_last_name||'</CANDIDATE_NAME>');
    fnd_file.put_line(FND_FILE.OUTPUT,'<QUALIFICATIONS_LIST>');
    FOR c1_Rec IN c_qual LOOP
    fnd_file.put_line(FND_FILE.OUTPUT , '<QUALIFICATION>');
    WritetoXMLForRTF('NAME' , c1_rec.name);
    WritetoXMLForRTF('CATEGORY' , c1_rec.category);
    WritetoXMLForRTF('START_DATE' , c1_rec.start_date);
    WritetoXMLForRTF('END_DATE' , c1_rec.end_date);
    WritetoXMLForRTF('SUBJECT' , c1_rec.subject_meaning);
    WritetoXMLForRTF('GRADE_ATTAINED' , c1_rec.grade_attained);
    WritetoXMLForRTF('HQ_STATUS' , c1_rec.hq_status);
    fnd_file.put_line(FND_FILE.OUTPUT , '</QUALIFICATION>');
    END LOOP;
    fnd_file.put_line(FND_FILE.OUTPUT,'</QUALIFICATIONS_LIST>');
    fnd_file.put_line(FND_FILE.OUTPUT,'</CANDIDATE>');
    fnd_file.put_line(FND_FILE.OUTPUT,'</QUALIFICATION_REPORT>');
    retcode := 0;
    END;
    2. Defined a concurrent program to call this PLSQL package/procedure.
    3. Defined a RTF template.
    4. Registered both the data definition and report template using XML Publisher Admin.
    5. Within OA Framework, I have coded as follows.
    Controller
    Process Form Request
    Added a button to invoke the report.
    if (pageContext.getParameter("AddlQualRptBtn") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String p1 = "17965";
    String TemplateApplicationShortName = "CPC";
    String TemplateCode = "CPC_QUAL_RPT" ;
    BlobDomain result = (BlobDomain) getXMLData(p1,pageContext,webBean);
    Properties prop = new Properties();
    prop.put("html-image-dir",pageContext.getTemporaryImageLocation());
    prop.put("html-image-base-uri",pageContext.getTemporaryImageLocation());
    try {
    DocumentHelper.exportDocument( pageContext,
    TemplateApplicationShortName,
    TemplateCode,
    "en" , //Language
    "US" , //Territory
    result.getInputStream(),
    Template.TEMPLATE_TYPE_RTF, //OutputType,
    prop);
    } catch (Exception e)
    throw new OAException("Exception" + e.getMessage(),OAException.ERROR);
    getXMLData
    public BlobDomain getXMLData(String pPersonId, OAPageContext pageContext, OAWebBean webBean)
    BlobDomain blobDomain = new BlobDomain();
    OAApplicationModule oaapplicationmodule = pageContext.getApplicationModule(webBean);
    OADBTransaction oadbtransaction = oaapplicationmodule.getOADBTransaction();
    try
    String dataDefCode = "CPC_IREC_QUALIFICATION_RPT" ;
    String dataDefApp = "CPC";
    DataTemplate datatemplate = new DataTemplate(((OADBTransactionImpl)oaapplicationmodule.getOADBTransaction()).getAppsContext(), dataDefApp,dataDefCode );
    Hashtable parameters = new Hashtable();
    parameters.put("p_person_id",pPersonId);
    datatemplate.setParameters(parameters);
    datatemplate.setOutput(blobDomain.getBinaryOutputStream());
    datatemplate.processData();
    catch(SQLException e)
    throw new OAException("SQL Error=" + e.getMessage(),OAException.ERROR);
    catch (XDOException e)
    throw new OAException("XDOException" + e.getMessage(),OAException.ERROR);
    catch(Exception e)
    throw new OAException("Exception" + e.getMessage(),OAException.ERROR);
    return blobDomain;
    6. When I run the report from OAF the statement "datatemplate.processData();" generates Null Pointer Exception error.

    Hi TyskJohan,
    Thanks a lot for your reply, I appreciate it !!
    Here is the full error stack. I added many debug statements and identified that it exactly fails at datatemplate.processData();
    I did run the PLSQL procedure and it does creates the XML output properly. Also, the report works fine if I run it through Concurrent Manager. Is there any other way I can check from within OA Framework?
    Thanks again.
    [031108_031818343][][EXCEPTION] java.lang.NullPointerException
         at oracle.apps.xdo.dataengine.DataTemplateParser.GetNodeNumChildren(DataTemplateParser.java:345)
         at oracle.apps.xdo.dataengine.DataTemplateParser.templateParser(DataTemplateParser.java:277)
         at oracle.apps.xdo.dataengine.XMLPGEN.setDataTemplate(XMLPGEN.java:599)
         at oracle.apps.xdo.dataengine.DataProcessor.setDataTemplate(DataProcessor.java:193)
         at oracle.apps.xdo.oa.util.DataTemplate.<init>(DataTemplate.java:136)
         at pgcps.oracle.apps.per.irc.selfservice.webui.pgcpsIrcAddlQualRptCO.getXMLData(pgcpsIrcAddlQualRptCO.java:114)
         at pgcps.oracle.apps.per.irc.selfservice.webui.pgcpsIrcAddlQualRptCO.processFormRequest(pgcpsIrcAddlQualRptCO.java:81)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processFormRequest(OAHeaderBean.java:408)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2675)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1682)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
         at OA.jspService(OA.jsp:34)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    --------------------------------------------------------------------------------------------------------------------

  • Problem with getting affected row only in AdvancedTable in OAF(It is very Urgent, I hope you will help)

    Hai,
                   I have problem in advancedTable in oaf.   I don't know how to get last clicked row events in advancedTable. I construct the advancedTable using VO without EO.   I want to save last modified record into database. But I can't do.  This is my code below.
    Controller code
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
       super.processFormRequest(pageContext, webBean);
        try{      
              OAApplicationModule am = (OAApplicationModule) pageContext.getRootApplicationModule();         
              if ("update".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM))) {
                String budgetName = pageContext.getParameter("Budget");
               System.out.println("Budget Name :"+budgetName);
               Serializable[] params ={budgetName};     
                am.invokeMethod("budgetName", params);
            if(pageContext.getParameter("save1")!= null){
            OAViewObject vo = (OAViewObject)am.findViewObject("BudgetCeilingVO1");
            System.out.println("vo :"+vo);
            if(vo !=null){    
                Row row[] = vo.getAllRowsInRange();
                                   System.out.println("rowcount  :"+row.length);
                                   for (int i=0;i<row.length;i++)
                                     BudgetCeilingVORowImpl rowi = (BudgetCeilingVORowImpl)row[i];
                                      String account =   rowi.getAccount();
                                      System.out.println("account :"+account);
                                      String currentYearBudget = rowi.getAttribute1();
                                      System.out.println("currentYearBudget :"+currentYearBudget);
                                      if(account!=null &&currentYearBudget!=null){
                                          Serializable[]   paramsValue ={account,currentYearBudget};
                                          String flag =(String)am.invokeMethod("saveBudgetCeiling",paramsValue);
                                          System.out.println("Success flag is :"+flag);
                                      }else {                                     
            }else{           
        }catch(Exception e){
            e.printStackTrace();

    Hi sandeepM,
                   I used advancedTable to display all records.  When I enter value into messageTextInput to save into database.
    I created View Object (VO). I didn't create any Entity Object(EO). When I press the save button, it save all the 20000 records into db. I want to save only one records at the time, whatever I entered into messageTextInput.
    VO:BudgetCeilingVO1
    Attribute name:Account
    This is my Controller code:
      public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
       super.processFormRequest(pageContext, webBean);
        try{     
              OAApplicationModule am = (OAApplicationModule) pageContext.getRootApplicationModule();        
              if ("update".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM))) {
                String budgetName = pageContext.getParameter("Budget");
               System.out.println("Budget Name :"+budgetName);
               Serializable[] params ={budgetName};    
                am.invokeMethod("budgetName", params);
            if(pageContext.getParameter("save1")!= null){
            OAViewObject vo = (OAViewObject)am.findViewObject("BudgetCeilingVO1");
            System.out.println("vo :"+vo);
            if(vo !=null){   
                Row row[] = vo.getAllRowsInRange();
                                   System.out.println("rowcount  :"+row.length);
                                   for (int i=0;i<row.length;i++)
                                     BudgetCeilingVORowImpl rowi = (BudgetCeilingVORowImpl)row[i];
                                      String account =   rowi.getAccount();
                                      System.out.println("account :"+account);
                                      String currentYearBudget = rowi.getAttribute1();
                                      System.out.println("currentYearBudget :"+currentYearBudget);
                                      if(account!=null &&currentYearBudget!=null){
                                          Serializable[]   paramsValue ={account,currentYearBudget};
                                          String flag =(String)am.invokeMethod("saveBudgetCeiling",paramsValue);
                                          System.out.println("Success flag is :"+flag);
                                      }else {                                    
            }else{          
        }catch(Exception e){
            e.printStackTrace();

  • Date format Problem in OAF R12 Urgent Please help!!!

    We have acustom application in OAF which was developed in 11i. Now we migrated the same to R12.
    In this there are two date fileds getting dispayed on the page and the query for the same is
    SELECT TO_CHAR (SYSDATE, 'dd-mm-yyyy') AS CURRENT_DATE, UPPER (TO_CHAR (SYSDATE - 10, 'mon-yy')) AS g_period, UPPER (TO_CHAR (SYSDATE + 5, 'mon-yy')) AS gnext_period, TO_CHAR (sysdate,'dd-mon-yyyy') as today_date, TO_CHAR (sysdate - 1,'dd-mon-yyyy') as yesterday_date FROM DUAL
    In 11i version the output is dispaying correctly but in R12 the current date is dispayed as
    Start Date 04-Nov-5242
    End Date 04-Nov-5241
    As per logic it should be
    Start Date 09-Feb-2012
    End Date 10-Feb-2012
    Please help..Urgent issue.

    Here are the answers to your problems :
    1. Once u restart , the oracle services and the database is not mounting automatically.That is because, when you install the Oracle Oracle8i Standard Edition Release (8.1.7), the two key services namely
    OracleOraHome81TNSListner and
    OracleService<your SID name>
    are configured as manual start ( check the NT --> start>setting>control panel>services. )
    For the database to start automatically the next time you start your machine, these two services will have to be put into "Automatic Start" mode.
    < for this double click on the respective service, select the "Automatic" radio button and click on ok>.
    Now when you restart the machine, your database will be automatically mounted.
    2. this as explained above is a corollory to the above problem. you can start or stop your database on NT using the "Services" window....
    hope this helps.
    bye.
    Hi All,
    I have installed Oracle Oracle8i Standard Edition Release (8.1.7) from technet site.
    I have installed it on windows NT 4.0 .
    Installation is fine.
    I can access or get into SQL prompt .
    I have created a database also.
    1st problem
    My problem is once I restart the Machine and try to access SQL plus .it gives me an error
    ORA-01034: Oracle not available
    ORA-27101: shared memory realm does not exist.
    2nd problem
    I dont know how to start and stop the database , as there is nothing to do that in the start menu of Oracle .
    How do i do this .
    This is very urgent please help.
    regards,
    Preeti

  • Validation problem when update a row in OAF

    created a application using OAF. No problem to create a row, when tried to update the row, received the following error message:
    oracle.jbo.RowValException: JBO-27012: Row validation method validation() failed for row with key oracle.jbo.Key
    2) Steps to Reproduce
    select a row from search result page for update, after change the value and apply it, received the following error message:
    oracle.jbo.RowValException: JBO-27012: Row validation method validation() failed for row with key oracle.jbo.Key

    yes. it is the EO based VO page. Create and Update used same VO and no problem to create the row, had problem when update the row.

  • Problem in OAF Search Tutorial, In Step 2.6 Create an EO

    I have applied a patch 7523554 for JDeveloper. I am using Jdeveloper 10.1.3.3.0 for R12 OAF development. Trying to learn OAF through given Tutorials in the patch. I have completed Hello Word Tutorial Successfully. However facing problem in Search Tutorial, In Step 2.6 Create an Employee Entity Object (EO). I am not able to view any single database schema object in Entity Object Wizard. Database Scema Check boxes are grayed out. I can connect to the data base successfull though Jdeveloper.
    Edited by: user11936331 on Sep 24, 2009 12:10 AM

    SOLUTION: I have been having this problem in version 10.1.3.3.0 for e-biz 12.0.6 and also 12.1
    If you have been following the tutorial, note that stages 2.1 - 2.2 are no longer required (in V10). However, if you go to stage 2.3 you have not manually created the BC4J packages and have thus not connected to the database. (Manually connecting in the connections section does not help here!)
    Thus when trying to create the EO (stage 2.6) the database schema checkboxes are greyed out. To overcome this:
    1. before trying to create the EO, open NEW/Business tier/ADF Business Components/Business Components from Tables.
    2. Click OK and it will ask you to connect.
    3. Do this now and then cancel out of the wizard
    You are now connected, so that whengoing back and trying to create an EO, the checkboxes are now visible and the table can be chosen and all it's attributes visible in the next stage.

  • Problem in XML Publisher Report submission from OAF Pages

    Hi,
    I am trying to submit Concurrent Program from OAF Page which is an XML Publisher Report.
    The request is Submitting and Completing successfully but when we open to view the out put we are able to view the HTML tags.
    We checked the same Concurrent program by submitting from the SRS window After completing if we click on view output the rtf file is getting opened correctly.
    I tested with normal rdf report it is working fine with standard Concurrent program used in OAF
    So my doubt is
    Does the Standard Concurrent program used in OAF supports the rtf reports.
    Please suggest if any modifications to be done in the Concurrent program
    Krishna

    Krishna
    Modified your code a little bit.Use this
        public int submitCPRequest(String shipmentId) {
        System.out.println("into submitCPRequest");
            OAPageContext pageContext;
            OAWebBean webBean;
        try {
    OAApplicationModule am =pageContext.getApplicationModule(webBean);
        OADBTransaction tx = (OADBTransaction)am.getOADBTransaction();
        java.sql.Connection pConncection = tx.getJdbcConnection();
        ConcurrentRequest cr = new ConcurrentRequest(pConncection);
        String applnName = new String("XXAPL"); //Application that contains the concurrent program
        System.out.println("ApplName"+ applnName);
        String cpName = new String("XXAPLPOSMPRD"); //Concurrent program name
        System.out.println("Concc Name"+ cpName);
        String cpDesc = new String(" APL PO Shipping Material Pickup Request"); // concurrent Program description
        // Pass the Arguments using vector
        // Here i have added my parameter headerId to the vector and passed the
        //vector to the concurrent program
        Vector cpArgs = new Vector();
        cpArgs.addElement(shipmentId);
        System.out.println("Args"+ cpArgs);
        // Calling the Concurrent Program
        int requestId = cr.submitRequest(applnName, cpName,cpDesc, null, false, cpArgs);
        cr.addLayout("XXAPL", "XXAPLPOSMPRT", "ENG", "US" , "RTF");
        System.out.println("Req Id"+ requestId);
        tx.commit();
        return requestId;
            catch (RequestSubmissionException e) {
            System.out.println("Into Exception");
            OAException oe = new OAException(e.getMessage());
            oe.setApplicationModule(this);
            throw oe;
            catch(Exception exception)
            throw OAException.wrapperException(exception);
        }Thanks
    AJ

  • OAF pages in different browsers--problem

    Does the page behave differently on different browsers? For instance,we have a page that loads fine in mozilla, but in IE lay out goes awry. Do we have any special setting to do?
    Kindly reply asap

    Check the reply in thread Clock in OAF page
    Please elaborate, what exactly is the issue? What do you mean by "but in IE lay out goes awry"?
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Problem in Popup Window in OAF

    Hi,
    We are populating a table results page in OAF based on the search items. In the Results table, we have a link(to a new page that has only one table region) on a column(itemstyle: link) so that it should open in a popup modal window. On closing the same, I should be able to conduct a new search.
    But what happens here is, after closing the popup window, we are not able to conduct a new search on the same page; the Result table is populated based on the previous search values (that is the master page still holds the old search values and when Go button is clicked the results based on the previous values would be displayed). Even if I click ‘Go’ button, the process form request method is not being called. Also the firePartial actions such as making a field mandatory are not working. This happens only after opening the link & closing the popup window. If we do not click to open the pop up window, we are able to make n number of searches.
    The link to open the popup window is:
    javascript:openWindow(top,'OA.jsp?page=/ikn/oracle/apps/ak/webinv/webui/SearchCompPG&param1={@param1}&param2={@param2}&retainAM=N &addBreadCrumb=N', 'modal', {width:750, height:350},true, 'dialog', null);void(0);
    Please let me know the fix for this issue.
    Thanks in advance.

    Ah, the daily OAF post.
    There is an [url http://forums.oracle.com/forums/forum.jspa?forumID=210]OA Framework Forum for these types of questions.
    Regards,
    John

  • Problem in retaining OAF Personalizations

    Hi ,
    I have done personalizations to an OAF screen . When the page is opened afresh, all the personalizations are seen .
    When I navigate to another screen from the personalized screen and navigate back to the same screen, the changes done through personalization would not be seen.
    Can anyone let me know how to retain the personalizations done to a screen.
    Thanks ,
    Chandrika

    I guess your losing personalization context while navigating the screen.
    At what level you have done the personalization? functional, responsibility or site...
    --Prasanna                                                                                                                                                                                                                                                                                                                                                           

  • OAF Custom popupwindow problem

    hi
    my requirment is
    the OAF standard page shd load with a popwindow saying that Clock is running .....with button as stop if i stop it the popup-window shd beclosed and the base shd be focusedor enabled
    OAPageLayoutBean pagelay=(OAPageLayoutBean)webBean.findChildRecursive("PageLayoutRN");
    String page1 ="/oracle/apps/csd/ro/search/webui/ClockRunning&retainAM=Y&addBreadCrumb=Y";
    String destURL = APPS_HTML_DIRECTORY + OAWebBeanConstants.APPLICATION_JSP + "?"+ OAWebBeanConstants.JRAD_PAGE_URL_CONSTANT+ "=" + page1;
    OABoundValueEmbedURL jsBound = new OABoundValueEmbedURL(pagelay,"openWindow(self, '", destURL, "' , 'longTipWin', {width:"+200+", height:"+200+"}, true); return false;");
    pagelay.setAttributeValue(oracle.cabo.ui.UIConstants.ON_CLICK_ATTR, jsBound);
    Edited by: Naveenapps on Dec 4, 2008 4:20 AM

    Hi,
    These kind of popups are not recommended by Oracle.
    As per BLAF standard you should use OADialog Page to achieve this functionality
    So try implementing that using OA dialog page.
    If you want any help in that, please go through "Delete" exercise in "toolbox tutorials" which contains some sample code.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • AddRow problem in a OAF page

    Dear all,
    Hope you are well.
    i am facing a problem whiling adding a row in Table by clicking a AddRow button.
    the problem is when i click AddRow button then previous rows are also showing as well as adding a new row.
    but i am not executing that VO so why should show the previous rows.
    i am required only when i click a button then a new row will be generated.
    please suggest.
    Regards
    Mofizur

    Hi Mofizur
    You can create a submit button for Add rows and write below code for creating a new row
    //in AM
      public void addRow()
        OAViewObject vo = getYourVO1();
        if (!vo.isPreparedForExecution())    
        vo.setWhereClause("1=0");
          vo.executeQuery();
      Row row = vo.createRow();
       vo.insertRow(row);
       row.setNewRowState(Row.STATUS_INITIALIZED);
    }Call above method from controller on ADD Rows button event.
    Thanks
    AK

  • OAF page: problem with insert data

    Hi,
    I have created a table with 1 sequence value.
    I am able to add a sequence value in that table when I click on Apply  button in the page. But I am not able to insert other attribute values in the table.
    InsertEOImpl.java
    package PD08.oracle.apps.fnd.XXSR.server;
    import oracle.apps.fnd.framework.server.OAEntityImpl;
    import oracle.jbo.AttributeList;
    import oracle.jbo.Key;
    import oracle.jbo.domain.Char;
    import oracle.jbo.domain.DBSequence;
    import oracle.jbo.domain.Date;
    import oracle.jbo.domain.Number;
    import oracle.jbo.domain.RowID;
    import oracle.jbo.server.AttributeDefImpl;
    import oracle.jbo.server.EntityDefImpl;
    import oracle.apps.fnd.framework.server.OADBTransaction;
    // ---    File generated by Oracle ADF Business Components Design Time.
    // ---    Custom code may be added to this class.
    // ---    Warning: Do not modify method signatures of generated methods.
    public class InsertEOImpl extends OAEntityImpl
      public static final int ROWID1 = 0;
      public static final int EMPLOYEENO = 1;
      public static final int USERNAME = 2;
      public static final int OPTIONNAME = 3;
      public static final int DESCRIPTION = 4;
      public static final int REQUESTSTATUS = 5;
      public static final int LASTUPDATEDATE = 6;
      public static final int LASTUPDATEDBY = 7;
      public static final int CREATIONDATE = 8;
      public static final int CREATEDBY = 9;
      public static final int LASTUPDATELOGIN = 10;
      private static InsertEODefImpl mDefinitionObject;
      /**This is the default constructor (do not remove)
      public InsertEOImpl()
      /**Retrieves the definition object for this instance class.
      public static synchronized EntityDefImpl getDefinitionObject()
        if (mDefinitionObject == null)
          mDefinitionObject = (InsertEODefImpl)EntityDefImpl.findDefObject("PD08.oracle.apps.fnd.XXSR.server.InsertEO");
        return mDefinitionObject;
      /**Add attribute defaulting logic in this method.
      public void create(AttributeList attributeList)
        super.create(attributeList);
    //added below code to get the sequence value.
    OADBTransaction transaction = getOADBTransaction();
    Number value1 = transaction.getSequenceValue("xxcbl.row_id_seq");
    setAttributeInternal(ROWID1, value1);
      /**Add entity remove logic in this method.
      public void remove()
        super.remove();
      /**Add Entity validation code in this method.
      protected void validateEntity()
        super.validateEntity();
      /**Gets the attribute value for RowId1, using the alias name RowId1
      public DBSequence getRowId1()
        return (DBSequence)getAttributeInternal(ROWID1);
      /**Sets <code>value</code> as the attribute value for RowId1
      public void setRowId1(DBSequence value)
    setAttributeInternal(ROWID1, value);
      /**Gets the attribute value for EmployeeNo, using the alias name EmployeeNo
      public String getEmployeeNo()
        return (String)getAttributeInternal(EMPLOYEENO);
      /**Sets <code>value</code> as the attribute value for EmployeeNo
      public void setEmployeeNo(String value)
        setAttributeInternal(EMPLOYEENO, value);
      /**Gets the attribute value for UserName, using the alias name UserName
      public String getUserName()
        return (String)getAttributeInternal(USERNAME);
      /**Sets <code>value</code> as the attribute value for UserName
      public void setUserName(String value)
        setAttributeInternal(USERNAME, value);
      /**Gets the attribute value for OptionName, using the alias name OptionName
      public String getOptionName()
        return (String)getAttributeInternal(OPTIONNAME);
      /**Sets <code>value</code> as the attribute value for OptionName
      public void setOptionName(String value)
        setAttributeInternal(OPTIONNAME, value);
      /**Gets the attribute value for Description, using the alias name Description
      public String getDescription()
        return (String)getAttributeInternal(DESCRIPTION);
      /**Sets <code>value</code> as the attribute value for Description
      public void setDescription(String value)
        setAttributeInternal(DESCRIPTION, value);
      /**Gets the attribute value for RequestStatus, using the alias name RequestStatus
      public String getRequestStatus()
        return (String)getAttributeInternal(REQUESTSTATUS);
      /**Sets <code>value</code> as the attribute value for RequestStatus
      public void setRequestStatus(String value)
        setAttributeInternal(REQUESTSTATUS, value);
      /**Gets the attribute value for LastUpdateDate, using the alias name LastUpdateDate
      public Date getLastUpdateDate()
        return (Date)getAttributeInternal(LASTUPDATEDATE);
      /**Sets <code>value</code> as the attribute value for LastUpdateDate
      public void setLastUpdateDate(Date value)
        setAttributeInternal(LASTUPDATEDATE, value);
      /**Gets the attribute value for LastUpdatedBy, using the alias name LastUpdatedBy
      public Number getLastUpdatedBy()
        return (Number)getAttributeInternal(LASTUPDATEDBY);
      /**Sets <code>value</code> as the attribute value for LastUpdatedBy
      public void setLastUpdatedBy(Number value)
        setAttributeInternal(LASTUPDATEDBY, value);
      /**Gets the attribute value for CreationDate, using the alias name CreationDate
      public Date getCreationDate()
        return (Date)getAttributeInternal(CREATIONDATE);
      /**Sets <code>value</code> as the attribute value for CreationDate
      public void setCreationDate(Date value)
        setAttributeInternal(CREATIONDATE, value);
      /**Gets the attribute value for CreatedBy, using the alias name CreatedBy
      public Number getCreatedBy()
        return (Number)getAttributeInternal(CREATEDBY);
      /**Sets <code>value</code> as the attribute value for CreatedBy
      public void setCreatedBy(Number value)
        setAttributeInternal(CREATEDBY, value);
      /**Gets the attribute value for LastUpdateLogin, using the alias name LastUpdateLogin
      public Number getLastUpdateLogin()
        return (Number)getAttributeInternal(LASTUPDATELOGIN);
      /**Sets <code>value</code> as the attribute value for LastUpdateLogin
      public void setLastUpdateLogin(Number value)
        setAttributeInternal(LASTUPDATELOGIN, value);
      /**getAttrInvokeAccessor: generated method. Do not modify.
      protected Object getAttrInvokeAccessor(int index,
                                             AttributeDefImpl attrDef) throws Exception
        switch (index)
        case ROWID1:
          return getRowId1();
        case EMPLOYEENO:
          return getEmployeeNo();
        case USERNAME:
          return getUserName();
        case OPTIONNAME:
          return getOptionName();
        case DESCRIPTION:
          return getDescription();
        case REQUESTSTATUS:
          return getRequestStatus();
        case LASTUPDATEDATE:
          return getLastUpdateDate();
        case LASTUPDATEDBY:
          return getLastUpdatedBy();
        case CREATIONDATE:
          return getCreationDate();
        case CREATEDBY:
          return getCreatedBy();
        case LASTUPDATELOGIN:
          return getLastUpdateLogin();
        default:
          return super.getAttrInvokeAccessor(index, attrDef);
      /**setAttrInvokeAccessor: generated method. Do not modify.
      protected void setAttrInvokeAccessor(int index, Object value,
                                           AttributeDefImpl attrDef) throws Exception
        switch (index)
        case ROWID1:
          setRowId1((DBSequence)value);
          return;
        case EMPLOYEENO:
          setEmployeeNo((String)value);
          return;
        case USERNAME:
          setUserName((String)value);
          return;
        case OPTIONNAME:
          setOptionName((String)value);
          return;
        case DESCRIPTION:
          setDescription((String)value);
          return;
        case REQUESTSTATUS:
          setRequestStatus((String)value);
          return;
        case LASTUPDATEDATE:
          setLastUpdateDate((Date)value);
          return;
        case LASTUPDATEDBY:
          setLastUpdatedBy((Number)value);
          return;
        case CREATIONDATE:
          setCreationDate((Date)value);
          return;
        case CREATEDBY:
          setCreatedBy((Number)value);
          return;
        case LASTUPDATELOGIN:
          setLastUpdateLogin((Number)value);
          return;
        default:
          super.setAttrInvokeAccessor(index, value, attrDef);
          return;
      /**Creates a Key object based on given key constituents
      public static Key createPrimaryKey(DBSequence rowId1)
        return new Key(new Object[]{rowId1});
    Please help.
    Thanks,
    Prajakta

    Ok, not to put to fine a point on it, but you might what to learn to use the tool.
    goggle "php oci_bind_by_name()" and you will get this: http://php.net/manual/en/function.oci-bind-by-name.php
    Cj is gong to ignore you because 1, you are not listening, just demanding an answer and 2. you don't seem to be willing to help yourself.
    Getting data from $_POST is simple $someVar = $_POST['some_value'] .
    One way to try and troubleshoot this is to simply run it from the cli eg: php name_ot_script.php this will tell you if you have any syntax errors, which is the most likely problem since you say the script reports nothing, just a blank screen.
    After each call to OCI test for errors and display them if any.
    Do your homework and you will find that things work rather well with OCI8

  • DFF Problem in OAF(R12) page

    Hi all,
    In 11i OAF Iexpense page,when i click on the about this page i get the following details in FLEXFIELD REFERENCE
    "+Flexfield References+
    +Show All Details | Hide All Details+
    +Details Item Application Flexfield Name Segment List+
    +Hide tableLayout: Additional Information SQLAP AP_EXPENSE_REPORT_HEADERS+
    +Segments+
    +Context: (Attribute) , (ColumnName) ATTRIBUTE_CATEGORY, (ValueSet-ListType) OIE_EXPENSE_TEMPLATES-1+
    +EXPENSE PURPOSE: (Attribute) displayed required, (ColumnName) ATTRIBUTE14, (ValueSet-ListType) OFS_AP_IN_EXPENSE_PURPOSE-2+
    +Start Date: (Attribute) displayed, (ColumnName) ATTRIBUTE1, (ValueSet-ListType) FND_STANDARD_DATE-2+
    +End Date: (Attribute) displayed, (ColumnName) ATTRIBUTE2, (ValueSet-ListType) FND_STANDARD_DATE-2+
    +Country of Travel: (Attribute) displayed, (ColumnName) ATTRIBUTE3, (ValueSet-ListType) OFS_FND_TERRITORIES-2+
    +Proof of Travel: (Attribute) displayed, (ColumnName) ATTRIBUTE4, (ValueSet-ListType) OFS_OIE_PER_DIEM_PROOF_DOC-2+"
    But in R12 this Flexfield References
    "+Flexfield References+
    +Show All Details | Hide All Details+
    +Details Item Application Flexfield Name Segment List+
    +Hide tableLayout: Additional Information SQLAP AP_EXPENSE_REPORT_HEADERS+
    +Segments+
    +Context: (Attribute) , (ColumnName) ATTRIBUTE_CATEGORY, (ValueSet-ListType) OIE_EXPENSE_TEMPLATES-1+"
    I imported all the personalizations from 11i to R12 but why these details are not coming
    "_*EXPENSE PURPOSE: (Attribute) displayed required, (ColumnName) ATTRIBUTE14, (ValueSet-ListType) OFS_AP_IN_EXPENSE_PURPOSE-2_*
    *_Start Date: (Attribute) displayed, (ColumnName) ATTRIBUTE1, (ValueSet-ListType) FND_STANDARD_DATE-2_*
    *_End Date: (Attribute) displayed, (ColumnName) ATTRIBUTE2, (ValueSet-ListType) FND_STANDARD_DATE-2_*
    *_Country of Travel: (Attribute) displayed, (ColumnName) ATTRIBUTE3, (ValueSet-ListType) OFS_FND_TERRITORIES-2_*
    *_Proof of Travel: (Attribute) displayed, (ColumnName) ATTRIBUTE4, (ValueSet-ListType) OFS_OIE_PER_DIEM_PROOF_DOC-2_"*
    how to import these flexfield details(Due to this the above fields are also not coming in R12)?
    Regards,
    Debadutta Das

    Hi Sunit,
    Please tell how to personalize it directly.Because there is no such personalization for these DFF in 11i.But still there are lovs and Date fields which are mapped to these DFFs.
    And also in about this page i can find entry for DFF in 11i.
    Regards,
    Debadutta

Maybe you are looking for

  • My Viewsonic monitor won't work with the Imac using the Mini Port to DVI adapter.

    My Viewsonic monitor won't work with the Imac using the Mini Port to DVI adapter. I also tried the HDMI to DVI adapter ane the Mac-Mini with same result. The monitor does work on my older Macbook Pro that has the DVI connector. Is it a Software/Drive

  • FCE crashes with canvas playback

    I installed FCE 3.5 by bypassing the installation check and everything is fine until I choose canvas playback and FCE crashes evey time. (audio meters are active) In the system settings audio capture is dimmed. There is also an audio plug in that is

  • Firewire target disk mode install leopard

    Does anyone know if it is possible to install Leo via dvd to another computer booted in target disk mode? My work computer somehow lost some important OS files during an system update, and now I can't get past single user mode, nor can I seem to boot

  • Connecting iPod to new laptop - trying to.

    I have installed iTunes and tired plugging in my iPod, but my laptop doesn't see my iPod. It doesn't see it in iTunes, My Computer, or Disk Management. I have turned off the Power Management on my USB ports and I have tired connecting in Disk mode, b

  • Hinding code with Optional Regions

    I am getting an error: HERE I know why, it is because I have to use: <body onload="load()" onunload="GUnload()"> in the line: <body class="thrColFixHdr" onload="P7_TMclass();P7_TMopen();load()" onunload="GUnload()","P7_TMclass();P7_TMopen();MM_preloa