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 !

Similar Messages

  • Hello, I am a user of the iPhone is not the place for bi çıkıcak turkey apple brand products and product support and equipment does not work as it used to fix and send back waiting for your help. Please support me in this regard quit

    Hello, I am a user of the iPhone is not the place for bi çıkıcak turkey apple brand products and product support and equipment does not work as it used to fix and send back waiting for your help. Please support me in this regard quit

    We are all iphone users just like you.
    Do you have a question for fellow iphone users?

  • Data lost after using my external drive as backup drive

    Hi
    I've make a backup of all my files in my external hard drive, after that I formatted my Mac.
    I connected my external hard drive the Mac asked if I want to use it as a backup drive I said Yes, now I cant see my files I've lost all my data.
    Any one could help please?

    See V.K.'s post in this thread: https://discussions.apple.com/message/11044944?messageID=11044944#11044944?messa geID=11044944

  • I purchased the gaming app from app store and I used it for some time but now suddenly the app is not working properly it's not starting properly and just dies down after the start and comes Back to homepage need help please guys help me out with this!

    Guys needed your help with my real racingHD game app it's not working properly even after paying for it I don't know why it's not working having trouble with it cause it won't star smooth need help guys

    Read Mitch's post on the sad ipod in this thread:
    http://discussions.apple.com/message.jspa?messageID=2369954#2369954

  • I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.

    I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.??

    You can find the backup files and then copy them to a safe place if you are worrying about this.
    iTunes places the backup files in these places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    The "~" represents your Home folder. If you don't see Library in your Home folder, hold Option and click the Go menu.
    Windows Vista, Windows 7, and Windows 8: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    To quickly access the AppData folder, click Start. In the search bar, type %appdata%, then press Return.
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    To quickly access the Application Data folder, click Start, then choose Run. In the search bar, type %appdata%, then click OK.

  • Data lost after several days running!

    data lost after several days running
    ENV:
    Service Pack 1 for Crystal Reports for Eclipse 2.0
    Tomcat5.5
    Problem:
    There is no problem to export the report as PDF files in the first few days after i upgraded the CR4E.
    But after several days running,the problem appeared : the exported PDF file was incomplete!
    It's supposed to 3 pages,but only 1 page(the first page) exported actually.
    When i restarted the tomcat,the problem disappeared.In several days running,
    the problem appeared again...
    Code:
    reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(Messages.getString("tmpltPath")+tmplt_name, OpenReportOptions._discardSavedData);     
    RptHelp  rptHelp = new RptHelp();
    rptHelp.setDatabaseCtrl(reportClientDoc);
    rptHelp.addDiscreteParameterValue(reportClientDoc,"","userName","admin");
    rptHelp.addDiscreteParameterValue(reportClientDoc,"","start_date",start_date);
    rptHelp.addDiscreteParameterValue(reportClientDoc,"","end_date",end_date);
    for(int i=0;i<6;i++){
         if(!p_name<i>.equals("")){
              rptHelp.addDiscreteParameterValue(reportClientDoc,"",p_name<i>,p_value<i>);
    String exportPath = Messages.getString("reportExportPath");
    String exportName = "test";
    rptHelp.export(reportClientDoc, exportPath+exportName, file_extention);
    File file = new File(exportPathexportName"."+file_extention);
    FileInputStream in = new FileInputStream(file);
    int len = (int)file.length();
    byte[] data = new byte[len];
    int read = 0;
    while (read <len) {
        read += in.read(data, read, len-read);
    in.close();
    response.setContentType("application/x-msdownload");
    response.setHeader("Content-Disposition", "attachment; filename="+ URLEncoder.encode(exportName"."file_extention,"ISO-8859-1"));
    OutputStream ops = response.getOutputStream();
    ops.write(data);
    ops.flush();
    ops.close();
    out.clear();
    out = pageContext.pushBody();

    What is the data? What is displaying the data (graph or chart)? What does your code look like? Why did you post a 4M image to the forum?
    NaN in the data will appear as gaps in plots.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Overhead calculation not happening after using Overhead key and orgin group

    overhead calculation not happening after using Overhead key and orgin group.
    There was a runtime error earlier related to u201Cdefine credit u201C IMG node under costing sheet component and we have applied SAP note 769946 and that error was gone out of the way
    We want to apply/add Overhead to SFG/FG materials.
    We are using PP order with PCC(product cost collector) as the cost object , i.e costing by period.(system ECC 6)
    But our problem is with material standard cost estimate process.
    We have assigned overhead keys to the percentage rates in costing sheet for material standard costing and assigned the origin groups to the credits of costing sheet. But after running the cost estimate overhead is not taking into account for standard cost calculation.
    In the define credit entry table key field is valid to date strangly and actually system should allow one than one entry with same valid to date and same sec.Cost element(type-41) for different cost centers.
    But if we without using overhead key and origin group, the entire cost in that supporting cost center will come to all materials (SFG/FG) and we can not distinguish between different product materials(SFG /FG).
    We have checked all things as mentined below.
    Firstly that the correct costing sheet is assigned to the valuation
    variant.
    That the costing sheet is entered for the appropriate material type:
    Finished and semi finished or material components.
    All of the above can be checked and verified via transaction OKKN.
    In addition make sure that the base value maintained is present in the
    costing, for example the base may include an Origin group, is that
    origin group part of the materials being costed?
    Similarly if the base is found and values exist how is the overhead
    rate of the costing sheet set up, is it valid etc.
    And finally do a similar check for the credit.
    we doubt this as a programm error...
    So, request all experts to have ur feedback..

    Dear,
    Check your origin group & material unit of mesaurement is same.
    some time in costing sheet origin group is maintain in different unit & for materail it's maitain in other unit of mesaurement.
    You can see unit of measure for material in Additional data - unit of measure.
    Check BOM component material unit also.
    Check same  unit of measure is maintain in KZS2
    I hope above will useful.
    GOPAN

  • I  used to have an OLD Photoshop cd but it has been lost and my program is no longer on cd. I talked with some photographer friends and this is what one of them told me to get: Adobe Photoshop Lightroom and CS CC... HELP please?

    I  used to have an OLD Photoshop cd but it has been lost and my program is no longer on cd. I talked with some photographer friends and this is what one of them told me to get: Adobe Photoshop Lightroom and CS CC... HELP please?

    If you still have your serial number, look at OLDER previous versions http://www.adobe.com/downloads/other-downloads.html
    Otherwise, the US$ 9.99 plan is what is current at Cloud Plans https://creative.adobe.com/plans

  • My iphone is stuck,  it says connect to itunes, and when I aconnect it to my pc, my pc says restore data but everything will be erased and I don't wanna lose everything. please help me

    my iphone is stuck,  it says connect to itunes, and when I aconnect it to my pc, my pc says restore data but everything will be erased and I don't wanna lose everything. please help me

    If you have a graphic of iTunes and a cable displayed on your iDevice then it is in Recovery mode.
    Check this to try an "exit"
    http://osxdaily.com/2011/01/08/iphone-recovery-mode/

  • Last night i have used my ipod and in morning i found it dead please help me its not responding at all i have tried evry thing

    last night i have used my ipod and in morning i found it dead please help me its not responding at all i have tried evry thing

    Charge the battery.
    If necessary, restore the iPod >  iTunes: Backing up, updating, and restoring your iPhone, iPad, or iPod touch software

  • Never once has my phone updated without deleting everything. It says "iTunes has detected an iPhone in recovery mode. You must restore this iPhone before it can be used with iTunes. I can't call for help because my phone is frozen on the screen with iTune

    Never once has my phone updated without deleting everything. It says "iTunes has detected an iPhone in recovery mode. You must restore this iPhone before it can be used with iTunes. I can't call for help because my phone is frozen on the screen with iTunes. On line live chat won't chat until I give them my serial number which I can't get to because its frozen and can't call for the same reason!!  Omg!  Someone please help me!?

    Morning AppleHlumamkhululi,
    Thanks for using Apple Support Communities.
    In most cases, the connected iPod needs to be restored.
    For more information on this, take a look at this article:
    iTunes has detected an iPod in recovery mode - Use iTunes to restore
    http://support.apple.com/kb/ts1456
    Best of luck,
    Mario

  • If I buy an unlocked iphone 6 in the uk and have a uk sim card in it initially, will i be able to use my german sim card in it when i'm in germany and return back to my UK sim card on my return?

    If I buy an unlocked iphone 6 in the uk and have a uk sim card in it initially, will i be able to use my german sim card in it when i'm in germany and return back to my UK sim card on my return?

    Yes. But make sure you buy it at an Apple Store. Other stores selling SIM free iPhones will sell those that will usually lock to the carrier whose SIM is used to first activate the phone. Then you will be stuck.

  • HT4367 I turned off the power to my apple tv whilst updating and now it will not work, i have tried to restore using usb but it says unable to find. any help please?

    I turned off the power to my apple tv whilst updating and now it will not work, i have tried to restore using usb but it says unable to find. any help please?

    Welcome to the Apple Community.
    Are you following these instructions.
    Remove ALL cables from Apple TV. (if you don't you will not see Apple TV in the iTunes Source list)
    Connect the micro USB cable to the Apple TV and to your computer.
    Reconnect the power cable (only for Apple TV 3)
    Open iTunes.
    Select your Apple TV in the Source list, and then click Restore.

  • Data flow task error failed validation and return validation status "VS_NEEDSNEWMETADATA"

    I have ETL with ~800 tables that I moving from Oracle to SQL Server (Prod Oracle -> Prod SQL)
    Now the Oracle/SQL new version was came from vendor that I need to test, and for that I created new DEV environments for Oracle and SQL , the update includes updated new columns in exists tables and new tables . (DEV Oracle -> DEV SQL)
    So what I tried to do is to take the old ETL(PROD) to change the connection to DEV servers.
    Then I executing the packages from local laptop it's working, and if I trying to execute the packages from job schedule it's giving me errors : "Data flow task error failed validation and return validation status "VS_NEEDSNEWMETADATA"
    I went to each table to check the columns if something different, and I was dropping some of the tables and recreated them in the destination but the error still shows. I also tried to change the package to "DelayValidation" to True but without
    success.

    I do not understand the difference between "... if I going to change the Connection Manager to new connection" and "didn't change the Connection Manager, only changed inside the Server name / user/ pass" 800 tables.
    What I see is some tables your packages sees in Dev (laptop) is not of the same schema once the package is deployed hence the metadata error.
    Arthur
    MyBlog
    Twitter

  • I am having trouble saving my swatches and brushes that I create. After I close Illustrator, and come back later my swatches and brushes are gone.

    I am having trouble saving my swatches and brushes that I create. After I close Illustrator, and come back later my swatches and brushes are gone.

    Once you have a document with the swatches, brushes, symbols that you want, save it as a new Document Profile.
    Document profiles can be found (and saved) in Library > Application Support > Adobe > Adobe Illustrator 18 (if you have CC) > your language folder > New Document Profiles.
    Next time you create a document you will find it in the list of profiles.

Maybe you are looking for