CO Extension - dialog page issue

Hi Gurus,
Requirement :
To show a dialog page with 'Yes' and 'No' button in a STANDARD OAF Page on the Click of 'Submit' button.
On click of 'Ok' button, standard process should happen i.e submit action.
I used "super.processFormRequest(oapagecontext, oawebbean);" inside ok button click logic, but it didn’t work. it redirects back to original screen from where i clicked submit button.
Please find the code below:
if (oapagecontext.getParameter("submit") != null)
        OADialogPage dialogPage = null;
        OAException mainMessage = new OAException("XX", "XX_TIME_WARNING");
        dialogPage = new OADialogPage(OAException.WARNING, mainMessage, null, "", "");
        dialogPage.setOkButtonItemName("WarningYesButton");
        dialogPage.setOkButtonToPost(true);
        dialogPage.setNoButtonToPost(true);
        dialogPage.setPostToCallingPage(true);
        dialogPage.setOkButtonLabel("Yes");
        dialogPage.setNoButtonLabel("No");
        oapagecontext.redirectToDialogPage(dialogPage);
if (oapagecontext.getParameter("WarningYesButton") != null)
      super.processFormRequest(oapagecontext, oawebbean);
    }Please help. Thanks.

Hi,
Instead of writing super.processFormRequest() in Ok Button method , write all the code called in Submit Button of the seeded CO.
Thanks,
Gaurav

Similar Messages

  • OAF : Dialog page issue

    Hi All,
    I am tyring to code dialog page , on 'SUBMIT' button click ( I call it 'POST TO GL' button ).
    But the below code, does not call the posing PLSQL procudeure on 'YES' button click.
    Can some one throw light if I am missing anything ?
    ------------ PFR CO code ----------------------       
            if (pageContext.getParameter("GLPost") != null) {
              //  am.invokeMethod("glPostt");  --- This call works
                    OAException descMesg = new OAException("FND", "FND_CANCEL_ALERT");
                     OAException instrMesg = new OAException("FND", "FND_CANCEL_ALERT");
                     OADialogPage dialogPage = new OADialogPage(OAException.WARNING
                                                   , descMesg
                                                   , instrMesg
                dialogPage.setOkButtonItemName("postYes");
                dialogPage.setNoButtonItemName("postNo");                                              
                     dialogPage.setOkButtonToPost(true);
                     dialogPage.setNoButtonToPost(true);
                     dialogPage.setPostToCallingPage(true);
                pageContext.redirectToDialogPage(dialogPage);                            
                if (pageContext.getParameter("postYes") != null)
                    am.invokeMethod("glPostt");  // This call is not working
                else if (pageContext.getParameter("postNo") != null)
                    System.out.println("do nothing");

    Hi bhuvam,
                  You need to change a little bit as below.
    if (pageContext.getParameter("GLPost") != null)
              //  am.invokeMethod("glPostt");  --- This call works
                    OAException descMesg = new OAException("FND", "FND_CANCEL_ALERT");
                     OAException instrMesg = new OAException("FND", "FND_CANCEL_ALERT");
                     OADialogPage dialogPage = new OADialogPage(OAException.WARNING
                                                   , descMesg
                                                   , instrMesg
                dialogPage.setOkButtonItemName("postYes");
                dialogPage.setNoButtonItemName("postNo");                                             
                     dialogPage.setOkButtonToPost(true);
                     dialogPage.setNoButtonToPost(true);
                     dialogPage.setPostToCallingPage(true);
                pageContext.redirectToDialogPage(dialogPage);                           
      /******* This portion should be out of if (pageContext.getParameter("GLPost") != null) *****/
                if (pageContext.getParameter("postYes") != null)
                    am.invokeMethod("glPostt");  // This call is not working
                else if (pageContext.getParameter("postNo") != null)
                    System.out.println("do nothing");
    Otherwise " if (pageContext.getParameter("postYes") != null)" will not fire at all.
    Try this.

  • Problem in CO extension to return to main page from Dialog Page

    Dear All,
    I extended a CO and Over rode PFR.
    My intention is to show a dialog page when "Submit" button is clicked. I am able to show a dialog page, but i am not able to return to the main page upon clicking "OK" in the dialog page.
    Please find the code below in the PFR:
    if (oapagecontext.getParameter("HrSubmit") != null)
              MessageToken[] tokens = { new MessageToken("MESSAGE", "Please add attachments")};
              OAException mainMessage = new OAException("AK","XX_CUST_MSG", tokens);
              OADialogPage dialogPage = new OADialogPage(OAException.ERROR, mainMessage, null, "", null);
              dialogPage.setRetainAMValue(true);
              dialogPage.setOkButtonItemName("OK");
              dialogPage.setOkButtonToPost(true);
              dialogPage.setPostToCallingPage(true);
              oapagecontext.redirectToDialogPage(dialogPage);     
    if (oapagecontext.getParameter("OK") != null)
                   super.processFormRequest(oapagecontext, oawebbean);
    Though i am calling super.processFormRequest, the page is errroring out as soon as i press OK button in the dialog page.
    Please let me know where i went wrong??
    Thanks
    Raj

    Hi Centinul,
    Thanks for the reply. I changed the code as you told, but it did not work.
    Please find the below Code of PFR:
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
              super.processFormRequest(oapagecontext, oawebbean);
              OAApplicationModule rootam =oapagecontext.getRootApplicationModule();
              OAApplicationModule applicationModule = oapagecontext.getApplicationModule(oawebbean);
              String absType = (String)oapagecontext.getTransactionValue("AbsenceAttendanceTypeId");
              String absDur = (String)oapagecontext.getTransactionValue("DurationDays");
              String return_value,emp_name;
              int personId= oapagecontext.getEmployeeId();
              int absDays= Integer.parseInt(absDur);
              if (oapagecontext.getParameter("HrSubmit") != null)
                   if (("65".equals((String)absType))&& (absDays>1))
                             try{
                                  OADBTransaction txn = (OADBTransaction)applicationModule.getOADBTransaction();
                                  OracleCallableStatement cs =(OracleCallableStatement)txn.createCallableStatement("Call xx_msft_loa_ppattach(?,?)", 10);
                                  cs.setInt(1,personId);
                                  cs.registerOutParameter(2,Types.CHAR);
                                  cs.execute();
                                  return_value = new String(cs.getString(2));
                                  cs.close();
                                  }//try
                             catch(Exception e)
                                  System.out.println("error..... " + e.getMessage());
                                  OAException confirmMessage = new OAException(e.getMessage(),OAException.ERROR);
                                  throw OAException.wrapperException(confirmMessage);
                                  }//catch
                        if ("NO".equals (return_value))
                             try{
                             OADBTransaction txn1 = (OADBTransaction)applicationModule.getOADBTransaction();
                             OracleCallableStatement cs1 =(OracleCallableStatement)txn1.createCallableStatement("Call xx_msft_loa_ppfullname(?,?)", 20);
                             cs1.setInt(1,personId);
                             cs1.registerOutParameter(2,Types.CHAR);
                             cs1.execute();
                             emp_name = new String(cs1.getString(2));
                                  }//try
                             catch(Exception e)
                                  System.out.println("error..... " + e.getMessage());
                                  OAException confirmMessage = new OAException(e.getMessage(),OAException.ERROR);
                                  throw OAException.wrapperException(confirmMessage);
                                  }//catch
                             MessageToken[] nameTokens = {new MessageToken("EMP_NAME", emp_name)};
                             OAException mainMessageName = new OAException("AK","MSFT_LOA_PP_MSG", nameTokens);
                             OADialogPage dialogPageName = new OADialogPage(OAException.ERROR, mainMessageName, null, "", null);
                             dialogPageName.setOkButtonItemName("OK");
                             dialogPageName.setOkButtonToPost(true);
                             dialogPageName.setPostToCallingPage(true);
                             oapagecontext.redirectToDialogPage(dialogPageName);
                        }//NO if
                   }//65 if
                   }//HrSubmit if
    else if (oapagecontext.getParameter("OK") != null)
                        oapagecontext.forwardImmediatelyToCurrentPage(null, true, null);
         }//PFR
    Upon checking some conditions , i am redirecting to a dialog page after the submit button is pressed, in which i am showing a custom message and a OK button. My intention is after pressing the OK button, it should return back to the original page. i used 'forwardImmediatelyToCurrentPage' whihc is not working.
    As soon as i press OK button, the page is erroring out, with out even showing the error stack. It only shows
    'You have encountered an unexpected error. Please contact the System Administrator for assistance.'
    Please let me know where i went wrong
    Thanks
    Raj

  • Custom Dialog Page Forwarding Issues

    Hi,
    It would be much appreciated if someone is able to offer advice, I am trying to create a dialog page with an ok button which when selected returns the user to the standard e-business homepage.
    In my processFormRequest of the main calling page I am capturing the selection of a save button, committing the changes and then running the following code;
    OAException confirmMessage = new OAException("Your record has been successfully updated ");
    OADialogPage dialogPage = new OADialogPage(OAException.CONFIRMATION, confirmMessage,null,"","");
    dialogPage.setPageButtonBarRegionRefName("/xxx/oracle/apps/per/sw/webui/ConfButtonBarRN");
    pageContext.redirectToDialogPage(dialogPage);The called region being specified in the call setPageButtonBarRegionRefName is of the type page button bar and has one button named OkButton, I have given the region a controller and within the processFormRequest I have placed the following code
    if ( pageContext.getParameter("OkButton") != null) 
                 pageContext.forwardImmediately
                   ("OA.jsp?page=/oracle/apps/fnd/framework/navigate/webui/HomePG",
                      null,
                      OAWebBeanConstants.KEEP_MENU_CONTEXT,
                      null,
                      null,
                      false, // retain AM
                      OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    }I have also tried placing this code in the calling pages processFormRequest however in each instance I get an error page stating that the page cannot be displayed;
    You cannot complete this task because one of the following events caused a loss of page data:
    •     Your login session has expired.
    •     A system failure has occurred.
    If anyone has any suggestions as to how I can get this dialog page to redirect the user back to the home page after selecting the ok button it would be very much appreciated as I have tried various different combinations to no avail.
    Many Thanks,
    Mike

    Ok I think I may have been looking at this for too long yesterday...
    I was able to get it to work by adding the following line to the calling of the dialog page and adding the handling of the response to the calling page;
    dialogPage.setPostToCallingPage(true);However I have now replaced the SubmitButton with a Button and set the URL to the homepage, skipping the calling page althogether and going direct to the homepage. In the code calling the dialog page I have added the following line as at the point of calling the dialog page I no longer require the AM.
    dialogPage.setRetainAMValue(false);Thanks for your quick response,
    Mike

  • How to open a new window from submit button &dialog page in current window?

    We have a requirement, wherein we have a OAF search page for PO lines with search criteria, Go button to search ,result region (table layout) and a submit button(Create new expedite).
    1. Now user can select some lines from result region and click on Submit button.
    2. On click of submit button we need to pop up a window or may be a dialog page asking that " Do you want open supplier web link portal or not?".
    3. If user clicks yes(in Dialog page) then first fetch the URL from a look up maintained in Oracle EBS on the basis of supplier of the lines selected and then open that URL in a new window and side by side we need to open a dialog page in search page asking "whether user has updated the expedite info in supplier portal or not?". On basis of this we need to updated some count in custom tables.
    So in step 3 i am facing problem, that how to open an URL in a new window through a submit button and side by side want to open a dialog page in the current window also.
    Hope a quick response from you all.
    Note:- To open a custom page we can have a link or button(button of type button and not submit button) on base page with destination url property as following javascript:
    javascript:var a = window.open('OA.jsp?page=/XXX/oracle/apps/xxx/......&retainAM=Y', 'a','height=500,width=900,status=yes,toolbar=no,menubar=no,location=no'); a.focus();
    So the question is how to do the same for submit button on OAF page???

    Antriksh,
    You just need to attach a submit action in button bean and not submit button bean, based on the output of confirm type of alert in javascript.
    Here is code u need to put in destination url of the button:
    //replace <confirm message> by message you want to show.
    javascript:input=confirm('<confirm message>');if(input==true){submitForm('DefaultFormName',0,{XXX:' abc'});}" Now in the process request of the base page CO, u can get parametre 'XXX' from the pagecontext....so
    if((("abc").equals(pageContext.getParameter("XXX"))))
    {/// custom LOGIC }
    The same i have replied in your mail. I hope this resolves the issue.
    --Mukul

  • Dialog page in a new page

    Hi all,
    I created a new page and create an update functionality in which the fields can be updated on click of a button. Everything is working fine but when i use a OADialogpage for confirmation of the click of the update button, i am not getting any error but the data is not getting saved.
    Can anyone has any idea why this is happening??
    Thank you
    PK

    Kumar,
    What do u mean by using "commit" in dialog page?? the user is talking about OADialog page, and prior using OADialog page, the data was getting saved, so naturally transaction.commit(), is there in his code.
    PK,
    The only possible reason I can see the data is not saving can be because of two facts :
    1)In process request this code is missing
    if (!vo.isPreparedForExecution())
    //your method is invoke the vO query
    vo.executeQuery();
    The reason for inserting the above check upon executeQuery() is because if a post (form submit) action occurs on a page that is different from the page where the last request was issued, OA Framework tries to re-enter the processRequest() phase to synchronize the state on the middle tier with the state on the client browser. The logic above handles cases where the request is redirected to another JVM as well. In such cases, processRequest() is entered to rebuild the web bean hierarchy.
    2)
    setPostToCallingPage(true) is missing in your code.
    If you have done both still your code is not working ahre the code, we will review and let you know the error.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Show new Dialog page on click of Submit in Standard PO page.

    Hi Gurus,
    Requirement :
    to show a dialog page with 'Ok' and 'cancel' button in the STANDARD Purchase Orders OAF Page on the Click of 'Submit' button i.e. before Approval.
    Design:
    1) write new CO xxCO to extend the standard OrderCO
    2) Put dialog page code on click on submit button before super.processFormRequest on xxCO.
    3) handle OK on Dialog page, write the code in xxCO to submit the PO (i.e. same code as in Orders CO on click of submit).
    Above approach is not upgrade safe and not very much suggested.
    Can you please suggest a better approach.
    Thanks and Regards,
    Sumana.

    Hi,
    Can anyone tell me the significane of using pageContext.putParameter. I was trying to implement a solution using this command for the above issue.
    ===============================================
    Intial solution without the use of pageContext.putParameter
    ===============================================
    //Standard Code - Order Co
    If pageContext.getParameter("SubmitButton")!=null{
    -- calls abc method.(private)
    //custom controller - xxOrderCO
    If pageContext.getParameter("YesButton")!=null{
    -- calls abc method. (copy the private method)
    else {
    super.processFormRequest
    Instead of rewriting the standard code in custom controller on click of yes button of Dialog page.
    i'll try to set explicity that submit button is clicked. So that it is always handled in super.processFormRequest.
    ===============================================
    solution with the use of pageContext.putParameter
    ===============================================
    //custom controller - xxOrderCO
    If pageContext.getParameter("YesButton")!=null{
    pageContext.putParamter("SubmitButton","Clicked")
    super.processFormRequest
    Please provide your valuable suggestions on this.
    Regards,
    Sumana.

  • R12.2.4 Data lost after using Dialog Page and return back to calling page.(Help Please! )

    Hi Team,
    I am new to OAF and is working on a requirement to add some custom validations when the user clicks on a Button in a standard seeded page.
    The approach I took was to Extend the seeded Controller object that handled this button press event and put my custom logic in the extended controller and override the standard controller via personalization.
    The standard flow was that upon pressing the Complete Button in Page A ,user was taken to the next seeded page (Page B) to perform certain operations based on the records that were selected in Page A.
    Part of the custom validation requirement was that if certain validations were not met then the user needs to be shown a Pop-up asking if they really wanted to proceed and if they selected Yes then continue with the standard seeded flow(move to page B)  and if they selected NO then just stay on the current page.
    I was able to use OADialogPage and do this partially , the issue I am running into is that once the user selects the one or more records  using a check box from a multi-record (table) region and hits the Complete Button on page A and if the validation fails then a modal page is shown and the user makes a selection i.e.either Yes or No from the modal page and when they return to calling page (i.e. Page A) , All the Data (records ) that they selected previously is lost (Page is refreshed). Based on what I see on this forum I suspect that it is because after clicking on Yes on the modal page and while returning to the original page the processRequest fires again and VO data is queried again and all selections on the page A are lost. Since I am trying to alter the flow in seeded pages based on user intervention I am kind of lost as to how this issue can be fixed. i.e. either prevent the page refresh or preserve the selections that were made prior to navigating to the modal page. Any Help is truly appreciated !!
    My Code :
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    if (oapagecontext.getParameter("completeOps") != null) {
    if (warnCount > 0) {
      //OAException message = new OAException("Not in Sequence...", OAException.WARNING);
      //oapagecontext.putDialogMessage(message);
      OAException message = new OAException("Rule XYZ Violated .Do you want continue ?",OAException.WARNING);
      OADialogPage dialogPage = new OADialogPage(OAException.WARNING, message, null, "","");
      String yes = oapagecontext.getMessage("AK", "FWK_TBX_T_YES", null);
      String no = oapagecontext.getMessage("AK", "FWK_TBX_T_NO", null);
      dialogPage.setOkButtonItemName("ConYesButton");
      dialogPage.setNoButtonItemName("ConNoButton");
      dialogPage.setOkButtonToPost(true);
      dialogPage.setNoButtonToPost(true);
      dialogPage.setPostToCallingPage(true);
      dialogPage.setOkButtonLabel(yes);
      dialogPage.setNoButtonLabel(no);
      oapagecontext.redirectToDialogPage(dialogPage);
    if (oapagecontext.getParameter("ConYesButton") != null)   {
              // Write Action code for Yes Button
              oapagecontext.putParameter("completeOps", "Continue");
    if (oapagecontext.getParameter("ConNoButton") != null){
                // Write Action code for No Button
                String errormsg = "Rule Violations have occured ";
                throw new OAException(errormsg);
       super.processFormRequest(oapagecontext, oawebbean);

    I was able to work around this issue by adding a simple check in the processRequest method of my extended Controller to prevent the call to super.processRequest incase when the control returns to the page after the user has made a selection in the Dialog Page
    if((oapagecontext.getParameter("ConYesButton") == null) && (oapagecontext.getParameter("ConNoButton") == null)) {
      super.processRequest(oapagecontext, oawebbean);
    Thanks !

  • The Popup dialog Page needs two times to return the selected value[10.1.3]

    Hi All,
    I have problem in an JSF Application that uses the EMP and DEPT tables .
    the Application contains two pages
    page 1 : a calling page uses EmpView as ADF Table .
    page 2 : a popup List of Values (LOV) dialog page uses DeptView
    These cause the popup dialog page to return to the calling page and to set the selected value into the Deptno attribute .
    the calling page includes :deptno and dname columns as
    <af:column headerText="#{bindings.EmpView1.labels.Deptno}">
    <af:selectInputText value="#{row.Deptno}"
    required="#{bindings.EmpView1.attrDefs.Deptno.mandatory}"
    columns="#{bindings.EmpView1.attrHints.Deptno.displayWidth}"
    action="dialog:ChooseDept1" id="deptnoField"
    autoSubmit="true">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.EmpView1.formats.Deptno}"/>
    </af:selectInputText>
    </af:column>
    <af:column headerText="#{bindings.EmpView1.labels.Dname}">
    <af:inputText value="#{row.Dname}" simple="true"
    required="#{bindings.EmpView1.attrDefs.Dname.mandatory}"
    columns="#{bindings.EmpView1.attrHints.Dname.displayWidth}"
    partialTriggers="deptnoField" autoSubmit="true"/>
    </af:column>
    and popup dialog page includes : Submit Button to return selected value to calling page :-
    <af:tableSelectOne text="Select and">
    <af:commandButton text="Submit">
    <af:returnActionListener value="#{row.Deptno}"/>
    <af:setActionListener from="#{row.Deptno}"
    to="#{bindings.Deptno.inputValue}"/>
    </af:commandButton>
    </af:tableSelectOne>
    the problem is
    I have to press ( two times ) the select button in the calling page to
    return the selected value into the Dname attribute .
    best regards,

    Hi,
    However, I am using the Jdeveloper 10.1.3.3, but still getting this error. I could not find any threads related to this problem and hence I wrote up here. Anyway I have also logged an SR #7179012.993 for the same with the testcase. I hope the issue will be resolved soon.
    Thanks,
    Neeraj

  • Dialog Formatting Issue

    Ran into a dialog formatting issue - namely that it will leave a character name and paranthetical at the bottom of one page, then put the dialog (with the character name again) on the next page when it should instead push all of it automatically to the next page. Makes no sense.
    For example, if writing this at the bottom of the page: 
                   Juliet
         (sotto)
    Romeo, Romeo, where for art thou, Romeo.
    It would leave this on one page:
                   Juliet
         (sotto)
                   (MORE)
    And put this on the next page:
                   Juliet (CONT'D)
    Romeo, Romeo, where for art thou, Romeo.
    Need to fix that. Thanks.

    Hi,
    Thanks for reporting this issue.
    This is a known issue to us, we already have this in our To-Do list.
    We have a couple of other high priority things lined up at the moment.
    We will let you know as soon we resolve this issue.
    Thanks again,
    - Priyank
    Adobe Story Team

  • How to remove NO Button on dialog page

    Hello friends,
    i want to remove no button on my dalog page how to do? my code is below , below this code still i can see on dialog page no button.. can any one help me out..
    OADialogPage dialogPage = new OADialogPage(OAException.WARNING,descMesg, null,"" ,"" );
    dialogPage.setOkButtonLabel("ok");
    dialogPage.setOkButtonItemName("YesButton");
    dialogPage.setOkButtonToPost(true);
    dialogPage.setPostToCallingPage(true);
    System.out.println("Entering To Delete");
    pageContext.redirectToDialogPage(dialogPage);
    Thanks
    krish.

    You can specify your own button bar with the required buttons.
    Extract from Developer's guide.
    The setFooterNestedRegionCode and setFooterNestedRegionApplicationID methods in the OADialogPage class have been deprecated.
    If you use the standard OK/NO buttons provided on the dialog page, you do not need to make any changes.
    However, if you are using the OADialogPage.setFooterNestedRegionCode and OADialogPage.setFooterNestedRegionApplicationID methods to render customized buttons under the footer region, you must update your code to use the new method OADialogPage.setPageButtonBarRegionRefName instead. This new method lets you set a reference to a page button bar region, built declaratively with OA Extension. You can add any number of custom buttons to the page button bar region. OA Framework renders the page button bar region under the footer. Adding your custom content to a page button bar region allows the page buttons to be rendered and positioned in the proper places specified by the latest UI standards. To render the Return To navigation link under the footer, use the existing setReturnToLinkLabel and setReturnToLinkURL methods in OADialogPage.
    To render a nested region, created with OA Extension, under a dialog page header, use the new OADialogPage.setHeaderNestedRegionRefName method.

  • My Safari Extensions preference page is blank. How do I resolve it? (Safari 5.1.2 on Lion 10.7.2)

    I found my extensions window blank back when I used Snow Leopard. I thought Lion and new updates will eventually solve it. But it is still there. I tried everything I can. I tried downloading Safari 5.1.2 and reinstalling it. It didn't work. Then I uninstaled safari using CleanMyMac and then tried installing it from scratch. It didn't work. When I googled I found that deleting some plist file resolves the problem on some older version of Safari. But I cannot locate that plist file on Lion. How can I get back my extensions preference page?

    Delete the following items:
    /Library/Application Support/SIMBL
    /Library/LaunchAgents/net.culater.SIMBL.Agent.plist
    /Library/ScriptingAdditions/SIMBL.osax
    Log out and log back in.
    Make sure you never reinstall SIMBL, as it’s one of the worst articles of crapware on the Mac platform. It’s likely to come bundled with some other modfication that depends on it. If you want trouble-free computing, avoid software that makes miraculous changes to other software, especially built-in applications. The only real exception to that rule is Safari extensions, which are mostly safe, and are easy to get rid of when they don’t work. SIMBL and its dependents are not Safari extensions.

  • JBO-35007: Row currency has changed.. when Rollback fom a Dialog page

    Hi All,
    From a page with an ADF Readonly table, I press 'Edit' button to edit some fields (not all) in an edit page as a Dialog page. Both page use same View Object Instance. Edit page has Commit and Rollback button.
    Since it is a dialog page , I add af:returnActionListener to the Rollback button
    If I press Commit its fine. But If I press Rollback, when I back to originating page I get this error :
    1. JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[IV 2107 SIU01 ]
    2. JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[IV 2107 SIU01 ]
    How to solve this problem ?
    Thank you for your help,
    xtanto

    Doing a rollback by default clears the caches. This causes view objects to be requeried the next time they are needed, and causes the current row to be reset to the first row in the view object instance's default row set.
    This error means that the row that was current when the browse page was rendered is now no longer the current row. Token validation is set on the page definition for a JSF page. By default, token validation is on.
    To adjust the setting for token validation:
    1. Open the page definition file for the page.
    2. In the Structure window, select the root node for the page definition itself.
    3. In the Property Inspector, use the dropdown list for the
    EnableTokenValidation attribute to set validation to true to turn on token
    validation, or false to turn off token validation.
    Alternatively, if you cause a partial-page update on the base page, it should update it's notion of the current row and that is another way to avoid this error.

  • How to send a request parameter to a dialog pages with jsf

    I'm using the dialog framework of oracle, java server faces.......
    I need to open a url on a dialog page(request scope), and I must to pass request parameters. I put <f:param> objects inside the commandLink who I click.....
    If the page is not dialog, it woks fine, but when I put in a dialog way.... nothing work
    =[
    anyone know what I have to do?
    thanks

    Hi, I suppose you have already seen the ADF DIalog Framework, isn't it?
    I think there tells how to pass parameter
    A workaround is to save them in your session and then get them back and remove

  • After deletion of record the dialog page is coming back to source page

    Dear all
    Good Morning
    i have creation page user will enter it will call to view mode,in that user will click on edit button again it will call to creation page with editable mode.
    in that creation page editable mode user click on delete button it willl call to dialog page buttons "Yes" AND "NO"
    user will click on yes the record is deleted but again after deletion of record again it is calling to creation page and creating blank record
    but my requirement is after click on yes button it will delete the record and navigate to search page
    how is it?
    in my case again it is coming to creation page.
    /*in edit page user click on delete button it will call to dialog page*/
    if ("Delete".equals(pageContext.getParameter(EVENT_PARAM)))
    String oid = pageContext.getParameter("oid");
    OAException msg = new OAException("PO", "XX_DELETE_SUPPSITE_CONFIRM");
    OADialogPage dpage =
    new OADialogPage(OAException.WARNING, msg, null, "", "");
    dpage.setOkButtonToPost(true);
    dpage.setOkButtonLabel("Yes");
    dpage.setOkButtonItemName("DeleteYes");
    dpage.setPostToCallingPage(true);
    dpage.setNoButtonToPost(true);
    dpage.setNoButtonItemName("DeleteNo");
    Hashtable ht = new Hashtable(1);
    ht.put("d1", oid);
    dpage.setFormParameters(ht);
    pageContext.redirectToDialogPage(dpage);
    /*If user click on No button it will call to editable mode*/(previuos page)
    if(pageContext.getParameter("DeleteNo")!=null)
    System.out.println("User will click on this button....");
    String oppoid = (String)pageContext.getSessionValue("xxoppoid");
    HashMap hp=new HashMap();
    hp.put("Purpose","Edit");
    hp.put("oppoid",oppoid);
    pageContext.setForceForwardURL("OA.jsp?page=/crm/oracle/apps/xxcrm/crmmgmt/quotationmgmt/webui/xxcrmquotationcreationPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null, hp, false, null,
    OAWebBeanConstants.IGNORE_MESSAGES);
    /*if user will click on delete yes button*/ after delete i want to call search page but it is going to search page internally it is coming to creation page and blank record is created.*/
    if (pageContext.getParameter("DeleteYes") != null)
    String s1 = pageContext.getParameter("d1");
    am.xxDeleteQuotation(s1);
    pageContext.setForceForwardURL("OA.jsp?page=/crm/oracle/apps/xxcrm/crmmgmt/quotationmgmt/webui/xxcrmquotationsearchPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null, null, true, null,
    OAWebBeanConstants.IGNORE_MESSAGES);
    I hope u understand my question
    Regards
    Sreekanth

    Hi Gaurav,
    Already i am using what u saying that way.
    That way also,am getting the error
    My Co Code is,
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    xxcrmItemMgmtAMImpl am = (xxcrmItemMgmtAMImpl)pageContext.getApplicationModule(webBean);
    String valid = pageContext.getParameter("Dialog");
    System.out.println("the value of valid is"+valid);
    if(valid!=null)
    pageContext.setForwardURL("OA.jsp?page=/crm/oracle/apps/xxcrm/crmmgmt/quotationmgmt/webui/xxcrmItemsAddPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,null,false,OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    String itemid=pageContext.getParameter("itemid");
    pageContext.putSessionValue("itemid",itemid);
    System.out.println("the item id in additem viewco is"+itemid);
    am.xxeditAddItem(itemid);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    xxcrmItemMgmtAMImpl am = (xxcrmItemMgmtAMImpl)pageContext.getApplicationModule(webBean);
    if("Delete".equals(pageContext.getParameter(EVENT_PARAM))) {
    String itemid=pageContext.getSessionValue("itemid").toString();
    OAException msg=new OAException("PO","XX_DELETE_SUPPSITE_CONFIRM");
    OADialogPage dpage=new OADialogPage(OAException.WARNING,
    msg,null,"","");
    System.out.println("this is delete block1");
    dpage.setOkButtonToPost(true);
    dpage.setOkButtonLabel("Yes");
    dpage.setOkButtonItemName("DeleteYes");
    dpage.setPostToCallingPage(true);
    dpage.setNoButtonToPost(true);
    Hashtable ht=new Hashtable();
    ht.put("d1",itemid);
    dpage.setFormParameters(ht);
    pageContext.redirectToDialogPage(dpage);
    System.out.println("this is delete block2");
    if(pageContext.getParameter("DeleteYes")!=null) {
    String itemid=pageContext.getParameter("d1");
    Serializable[] d1={itemid};
    am.invokeMethod("xxDeleteItem",d1);
    HashMap hm=new HashMap();
    hm.put("Dialog","Yes");
    String test=hm.get("Dialog").toString();
    System.out.println("the dialog page value is"+test);
    pageContext.forwardImmediatelyToCurrentPage(hm,false,null);
    }

Maybe you are looking for

  • Photos 1.0 not showing all images from Photos Library.photoslibrary folder/file after update install

    I installed the update that changed my iPhoto to Photos 1.0, and the new Photos program is not showing all images from Photos Library.photoslibrary file/folder (not sure to call it file or folder since it is actually a folder with all my pics but it

  • JBO-33008 Error finding application context

    Can anyone explain what causes JBO-33008 or where I can find more information on the exception. I have been unable to find any documentation (even the help in JDev goes from 34001 to 55001). Any information would be greatly appreciated. Thanks in adv

  • Why do I have 2 photos libraries?

    Hi, After updating to OS X 10.10.3, my iPhoto library seemed to have converted without any hick-ups into its Photos counterpart. But inside my Users/~/Pictures folder I now have 2 separate Photos libraries. One named "Photos Library.photoslibrary" th

  • Photoshop cc keeps shutting down

    i just bought a package of photoshop and lightroom, the moment i start the photoshop program it shuts down... I am clueless... please help!

  • Mac-compatible digital recorders?

    Hello all, I"m a college student going back to school in a few days, and I'm looking for a digital voice recorder that will let me record lectures and then play them on my Mac, preferably in iTunes. I've seen a bunch of different recorders on the int