Run the report to PL/SQL with the branch to another page

I have an application which, at various times, I run a PL/SQL procedure to perform an action, and then we must run a report while also navigating away from the current page. The actions are performed on a button click.

I tried several methods, but for the life of me cannot get the system to do the two things (ie. run the report and the direction to another page). I tried to put in page 0 (to be executed after the treatment on the click of a button) a branch with a request line to print the report, followed by a branch to the other page (also to run after the treatment on the button click) - and only the branch page 0 runs in fact. Also tried a branch to the other page only, with the print in the request parameter request - but only runs the report, do not create a branch to the other page.

I also tried to put the call to run the report in the PL/SQL code, using utl_http.start_request (url), but that came with a "Bad Request" error. Also tried to use the owa_util.redirect_url call, but also no chance.

I'm pulling my hair out at this time, especially because I am under pressure to get the system in very short time.

Any suggestion would be appreciated.

You can run queries report of their URL (f? p = & APP_ID.: 0: & SESSION.: PRINT_REPORT =)

So one approach would be to
The button click, call a JS function which

  • 1 use the Ondemand/recall process in order to perform the processing workflow (file selection box)
  • 2 open the report in a popup (from your IR page)
  • 3 redirect leaves the IR page to another page?
    ------
    Another approach:
  • 1. IR report submits the page
  • 2. in the PLSQL block, you do the treatment
  • 3. the branch redirects to a URL that would point to the report URL.
    OR
  • 3. do you have a JS onload which runs only when demand is demand for BUTTON and opens a page that points to the report.
    ------

    Still another way is to use htp.p in PLSQL block which made the treatment of workflow
    So your code PLSQL

    BEGIN
      --Do the workflow processing here
      --End workflow processing
      htp.p('');
    END;
    
  • Tags: Database

    Similar Questions

    • How can I move these indicator and the control to another page?

      How can I move these indicator and the control to another page? I page Kontrol and those on Installningar page, move!

      Or I want to hide them Kontrol page, how can I do

      Thank you

      Hi q8.

      move: select the controls, move them out of the container tab, drag them into the appropriate page of the tab container

      Hide: Terminal controls (!) right click, select "hide"...

    • I can't run the desk top of page icons exe files,

      I think that I down loaded a bug in a prog 'windows allways open maximally'
      I need is when I installed ie8 NOTHING that I would keep to the max.
      If you can help please keep things simple!

      Hello

      Try Mode safe mode with networking - repeatedly, press F8 that you start.

      The best two methods allow scanners to run and/or AV.exe out of the way or removing.
      Following message shows how to restore the .exe function after removing the malware.

      1.
      CTRL SHIFT ESC - task manager OR right click on the taskbar - task manager

      Process tab - complete the process on AV. EXE and continue with the uninstall Guide.

      If necessary use start - computer or Windows Explorer to navigate to

      C:\Program Malwarebytes Anti - Malware\mbam.exe or where it is installed - if
      necessary right click on the shortcut of Malwarebytes - Properties - tab - target line to see where it
      is installed.

      Right-click on it and rename it to ZZMbam.COM (or something different than now), then
      Double-click it and run it like this. You can rename it back later. Do the same with others
      programs as needed. Use this method for other necessary - DO NOT ASSUMER one
      program removes all or that there is no other malware.

      ---------------------------------------------------

      2.
      Another method is to use them:

      Use Process Explorer to "Suspend" the process will not stop

      Then use AutoRuns to delete the malicious program startup items.

      Now use UnLocker to delete the files in the malware.

      You may need to do a file at a time.

      Process Explorer - free
      http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

      AutoRuns - free
      http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx

      UnLocker - free (do not install the adaware Ebay)
      http://www.Softpedia.com/get/system/system-miscellaneous/unlocker.shtml

      AV.exe

      ==============================================

      There are MANY varieties of these with many names, but all can be eliminated with the same methods:

      Win 7 Antispyware 2010 XP Internet Security 2010 and Vista Antivirus 2010 is rogue antivirus.
      scams to get you to pay for them while they have no advantage at all.

      How to remove all THE varieties of this malware - please read carefully the removal Instructions.
      http://www.bleepingcomputer.com/virus-removal/remove-antivirus-Vista-2010

      RENAME this as necessary to allow them to perform: (use a different name with the extension .COM instead of .exe)

      It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run the
      in the regular when windows you can.

      Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone. (If Rootkits
      UnHackMe execution)

      Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

      Malwarebytes - free
      http://www.Malwarebytes.org/

      Run the malware removal tool from Microsoft

      Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

      You should get this tool and its updates via Windows updates - if necessary, you can download
      here.

      Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
      (Then run MRT as shown above.)

      Microsoft Malicious - 32-bit removal tool
      http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

      Microsoft Malicious removal tool - 64 bit
      http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

      also install Prevx to be sure that it is all gone.

      Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

      Prevx - Home - free - small, fast, exceptional CLOUD protection, working with other security programs.
      It is a single scanner, VERY EFFICIENT, if it finds something to come back here or use Google to see
      How to remove.
      http://www.prevx.com/   <-- information="">
      http://info.prevx.com/downloadcsi.asp  <-->

      Choice of PCmag editor - Prevx-
      http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

      Try the demo version of Hitman Pro:

      Hitman Pro is a second scanner reviews, designed to save your computer from malicious software (viruses,
      Trojan horses, rootkits, etc.). that has infected your computer despite all security measures that you have
      taken (such as the anti-virus software, firewall, etc.).
      http://www.SurfRight.nl/en/hitmanpro

      --------------------------------------------------------

      If necessary here are some free online scanners to help the

      http://www.eset.com/onlinescan/

      http://OneCare.live.com/site/en-us/default.htm

      http://www.Kaspersky.com/virusscanner

      Other tests free online
      http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

      --------------------------------------------------------

      Also do to the General corruption of cleaning and repair/replace damaged/missing system files.

      Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

      Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

      Enter this at the command prompt - sfc/scannow

      How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
      generates in Windows Vista cbs.log
      http://support.Microsoft.com/kb/928228

      Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

      How to run the check disk at startup in Vista
      http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

      -----------------------------------------------------------------------

      If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

      http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

      I hope this helps.

      Rob - bicycle - Mark Twain said it is good.

    • No model output module custom when you run the script from another process

      Hello

      I have a following problem:

      Try to automate the video rendering. When I run extend script of the program that is launched at windows startup, there is no custom output module template. If the script is started manually, it works perfectly.

      Trying to applyTemplate output module in the results of item renderer error queue.

      I use AE 2014 (13.1.1.3) and windows server 2012 standard r2.

      Thanks for help.

      Sounds like a permissions problem, you will need to set your user contexts and escalate privileges before running the script.

      Mylenium

    • Passing the value with coma inside to another page

      Hi all, need your help.

      I have trouble to clarify how to pass value with coma to another page.

      For example, I have a P2_NAME field: with the current value: Test, name

      When I'm passing this on page 3 I get only from Test. I do not understand why, but I do not know how to deceive the APEX?

      var url = ' f? p = & APP_ID.:3: & SESSION.: NO::P2_NAME: "+ $v ('P3_NAME');

      Window.Open (url, "name", "height = 600, width = 800, toolbar = no, directories = no, status = no, menubar = no, scrollbars = no, resizable = no, modal = yes");

      Thank you very much

      Andrei

      Hello

      This might help

      2.5 understanding URL syntax

      List of values of the element used to define the session state in a URL.

      Item values cannot include settlers, but may contain commas with backslashes.

      To change a comma in a value element, place the characters with the backslashes. For example:

      \123,45\

      Kind regards
      Jari

    • To access the APEX_COLLECTIONS on another page

      Use: APEX 5

      One of my app pages (Page 12), I have a dynamic action that calls upon request AJAX callback process.

      The code of the dynamic action has the javascript call:

      var arr_f01 = [];

      () $("input[name='f01']:checked").each

      function() {}

      arr_f01.push ($(this).) Val());

      });

      (apex). Server.Process

      "Lines Checked process."

      {f01: arr_f01},

      {the data type: 'text',}

      Async: false,

      success: {function (pData)}

      $s ("P12_SELECTED", pData);

      }

      });

      The recall AJAX process is:

      Controlled process lines

      declare

      l_f01 varchar2 (2000);

      Start

      APEX_COLLECTION. () CREATE_OR_TRUNCATE_COLLECTION

      p_collection_name = > 'TEST_COLLECTION');

      l_f01: = ";

      delete from lrg_symptoms_select;

      because me in 1.APEX_APPLICATION. Loop G_F01. Count

      insert into lrg_symptoms_select values (APEX_APPLICATION. G_F01 (i));

      l_f01: = l_f01 | APEX_APPLICATION. G_F01 (i) | «, » ;

      end loop;

      APEX_COLLECTION. ADD_MEMBER)

      p_collection_name = > 'SPLIT_SYMPTOMS ',.

      p_c001 = > l_f01);

      Select c001 in: l_f01 of APEX_COLLECTIONS where collection_name = "TEST_COLLECTION";

      HTP.PRN (l_f01);

      commit;

      end;

      I have 2 questions here:

      1. After this process, I call a modal dialog (Page 9) page at the click of a button. The modal dialog box is to have an area of report that is supposed to display the data of this APEX_COLLECTION

      Select c001 in APEX_COLLECTIONS where collection_name = 'TEST_COLLECTION';

      But I get the following error

      Failed to parse the SQL query:

      ORA-00933: SQL not correctly completed command.

      How can I access the collection on the page of the modal dialog box?

      2. the value of the page (P12_SELECTED) in dynamic action element is not visible in the session state.

      The value is displayed on the page but when I check it in the session, it is null. Also when I pass this value to another page, it is delegated to as NULL.

      How to set the value of page element in the session?

      Thanks in advance

      Hina

      844372 wrote:

      Update your forum profile with a recognizable username instead of "844372": Video tutorial how to change username available

      I have 2 questions here:

      1. After this process, I call a modal dialog (Page 9) page at the click of a button. The modal dialog box is to have an area of report that is supposed to display the data of this APEX_COLLECTION

      Select c001 in APEX_COLLECTIONS where collection_name = "TEST_COLLECTION";

      But I get the following error

      Failed to parse the SQL query:

      ORA-00933: SQL not correctly completed command.

      How can I access the collection on the page of the modal dialog box?

      Remove the ';' the query.

      2. the value of the page (P12_SELECTED) in dynamic action element is not visible in the session state.

      The value is displayed on the page but when I check it in the session, it is null. Also when I pass this value to another page, it is delegated to as NULL.

      How to set the value of page element in the session?

      Set the value of the element in the recall process and use it as the return value:

      :p12_selected := ...;

      I can't integrate it in your code because I don't understand. Why the TEST_COLLECTION is created and used in a query, but the data added to the collection of SPLIT_SYMPTOMS?

    • Copy the value of the item to another page of the apex in a field

      I have a main table and adds a new button.

      In my master table, there is a client code.

      If I press this button again, I will be referred to another form on another page where I can create log files.

      For the moment, I have to insert the client code in this form.

      How is it possible to copy the customer ID, if I press the new button in the main table, if this customer code (value) will be copied

      in another article on my other page?

      Hello

      What version of APEX are you using?

      Solution for this should be simple.

      Just edit the button element. Assign it "Action when the button is clicked" "redirect to the page of this application.

      "Then set: Set on these elements ' with the name of the target element and the 'with these values" with the name of the source element.

      The same works also for reports. But instead of the nom_element, you must add the column name as: #COLUMN_NAME # for 'with these values.

      Concerning

      J

    • passing the value of the item to another page

      Hello!

      I have a few questions while passing the value of the item to another presentation page and page refreshes.

      I have a page (page n ° 2) with more areas where users can fill data in some articles (text box, popups,...), then I have a region report report and button to enter a new item. When users, click the button is it redirects to another page (page no. 21), where the user enters the values to other elements (popup, text box,...) then I have 3 buttons on this page ('Cancel', "create one", "create an and create another") and now I don't know how to handle the button ' create a. Action for the button "create one" I want is that when button "create one" is clicked in a table (in my DB) should be inserted some values of page 2 and certain values on page 21, then users should be redirected to page 2, where you can see everything that you see before the user has clicked 'enter a new element button' (so all the values in the elements of the page 2 must be visible) + in this report in the region must be updated (so you can see the inserted elements on page 21)

      I hope you understand what I mean and you can help me. And sorry again for my English.

      Kind regards
      Dragan

      You can create a collection and use it in this way:

      IF apex_collection.collection_exists ("YOUR_COLLECTION") = TRUE THEN
      apex_collection.delete_collection (p_collection_name-online 'YOUR_COLLECTION');
      END IF;
                               
      apex_collection.create_collection (p_collection_name-online 'YOUR_COLLECTION');

      -Value added to the collection
      apex_collection.add_member ("p_collection_name-online 'YOUR_COLLECTION', p_c001 => ' value to save");

      -get the value of collection
      Select C001 in apex_collections where collection_name = "YOUR_COLLECTION";

      Go through this link to learn more about the collections http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_collection.htm

      OR

      as you say if its only id you want to perform, then simply create an item hidden in your page 2 =>: P2_ID_SO, then capture the value in your 2 page deal and use it in page 21.

      -Manu

    • How to change the value from another page

      I'm filtering province in my application based on a province selected in the home page (P16), however the user can submit a form that has a province that and after that, all the content must be filtered according to the selected province 'new '. So I'm in the P7 and after submitting the form, I would need to change the P16_PROVINCE - which belong to another page (P16).

      but do not know how,
      Any help?

      Mehrdad says:
      Thanks, VC, but I need to have a trigger to change the P16_PROVINCE after submitting the form, so that one must be changed according to what the user does on a form...
      After he submit the form, I have my game P7_PROVINCE, which is fine, but AFTER the selection, I need to change the P16_PROVINCE (which is used as a global variable to filter my records...)

      Add a plsql page 7 page process and submit the game it runs - as below

      //assign the value of P7_PROVINCE into P16_PROVINCE
      :P16_PROVINCE := :P7_PROVINCE;
      

      See http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/concept_ses_val.htm#HTMDB03012

    • How to make a 'yes' or 'no' radio button in a single page and "sync" the two to another page?

      Hello

      How the option button mirrored the choice made on page 3 of the 10 page? Thank you.

      Page 3:

      Page 10:

      Simply copy the fields from one page and paste them into the other. Just do

      of course, you check the option that says "buttons with the same name and choice".

      are selected in unison"under properties, Options tab.

    • Search criteria in a page, the results of the query in another page?

      Hi, can I search criteria in a page and get query results in another page?

      Need help

      Thanks in advance

      Karman

      Hello

      Yes you can.
      Create the page corresponding to your article (s) where user define the search criteria.
      Create another page is where your first report and use in where clause page elements.

      Then, on the first page create button submit the page and creates a branch to the second page where is your report.

      Kind regards
      Jari

    • Set the value to the field on another Page

      Hello

      I'm still a little new to this, through forums, that I managed to learn a lot of things. But I met another difficulty. I have

      I created a form in LiveCycle with two pages. On page 1, the fees are calculated by multiplying Field1 * Field2 and by adding the value of another. I managed to accomplish this with the following code:

      This.rawValue = Field3.rawValue + (Field1.rawValue * Field2.rawValue)

      As I said, that seems to work.

      To Page 2, I have a drop down list with five options. In the object > value tab I checked specify point values but has not changed a thing. If the value of the option range from 1 to 5.

      When option 5 is selected I want to set a value for a field that is Page 1. I tried with the following script:

      If (this.rawValue = 5) {}

      Page1.positionedSubform.field3.rawValue = 149;

      } else {}

      Page1.positionedSubform. Field3.rawValue = 0;

      }

      I'm now writer at all, but it seems to work somehow. Not that I want to :-).

      When I saw the PDF that it auto sets the value of Field3 and the drop to 149 field.

      I want to first Field3 on page 1 to 0 by default (entered in the object > field value tab 3) and set it to 149 if you have selected the option with the value of 5 in the drop down list on page 2.

      Any ideas?

      (Sorry for the bad explanation, don't know how to explain it better is if)

      Hello

      Did you use the calculate event in the drop-down list? If so, move the script to the output of the dropdown event.

      Niall

    • Passing parameters from one page to the OFA to another PAge of the OFA

      Hello

      I was wondering, if there is a possibility of passing parameters to the request from one page to another page in EBS (eBusiness Suite).
      I tried to use the following

      (a) PageContext.putParamater ('MyParamater', 'ParamaterValue')
      (b) I have addded above the line of code by extending a controller on the page of OAF and personalized page

      When I retrieve the value of getParameter() on the next page. I am also unable to access the parameter in the following page.

      I tried the above code while trying to create expenses in the module I have costs... I would like the ReportHeaderId from one page to another page for customization purposes. I am not able to get the ReportHeaderId in the ReviewPAge... There is no Business Objects in the review page... try the idea of putParameter.

      Any help will be much appreciated

      Thank you

      Yes, the value will remain unless the root AM is released or remove you it with oapagecontext.removeTransactionTransientValue ("myParam");

      Glad to hear it works for you! Also, please mark your messages as helpful or correct answers as it will help others.

      Thank you
      LC

    • Fill a field from the value on another page

      Hi all

      I do not have a form, I'm, and I all the other scripts I have written about this work except one. There is a field of calculation based on its value, it checks the box on a page depending on the range. This calculated is read-only. I wrote the following code and put on the output event, but it does not work. Please can someone help me with why it isn't workiong.

      if ((form1. Page5.raterec1.RawValue> =1)& &(form1. Page5.raterec1.RawValue<2)) { }

      rrun1.rawValue==1;

      }

      if ((form1. Page5.raterec1.RawValue> =2)& &(form1. Page5.raterec1.RawValue<5)) { }

      rrsuccess1.rawValue==1;

      }

      if ((form1. Page5.raterec1.RawValue> =5)& &(form1. Page5.raterec1.RawValue< =6)) { }

      rrout1.rawValue==1;

      }

      Thank you

      v/r

      LucPian

      Hello

      I think that we are approaching:

      The user selects dropdown > This sets the value of raterec > script in the menu drop-down looks at the value of raterec and then sets the values for the checkboxes.

      I think what is happening is that the script sets the value of the correct raterec. BUT continues with the script of box BEFORE rawValue of raterec is set to the new value.

      So I share the script.

      Have the script in the box calculate event resembling the rawValue of raterec (see previous post). The rawValue of raterec changes, the script in the boxes is automatically activated.

      Then the script from the drop-down list changes just the rawValue of raterec.

      Box script looks like to > raterec.rawValue

      ^

      ^

      list dropdown script games ^

      (diagram of garbage)

      Niall

      Ensure the dynamics

    • Pass the value of the item to another page of link

      Dear,

      I would like to pass a value of item to another page.
      I use:
      http://xxxxx:7777/pls/apex/f?p=200:46:80254239052108::NO::P46_TEST,P46_TABLE:#LABEL#,&P56_HW
      # is wel #label moves to the next page but no P56_HW.

      Could someone help me?

      THX.

      Celio

      Hello

      You are missing the point in the end, it should be & P56_HW. (with the full stop), which is part of the syntax of substitution.

      See you soon

      Ben

    Maybe you are looking for

    • How can I restore my default browser

      I have problems with my email Go Daddy account. Go daddy said that I need to restore my default browser. I already deleted my history, cookies and cache settings. How can I restore firefox default.

    • All the links on Wikipedia has an icon after it

      I just got a new computer (Dell XPS15 running Windows 7). After you install Firefox 8, I noticed that every single link on Wikipedia now has an icon after him. This is the icon that USED only to appear after links off site, but now it appears after e

    • Satellite M30-104 - cannot set a good resolution on external monitor

      Hello world I have a Satellite M30-104 with a nvidia GeForce FX5200.This works well but when I plug in an external monitor, which is a widescreen 1440 * 900, I can not put the correct resolution, even if I install the latest driver. What can I do? Th

    • Can I connect wireless and cable?

      I work with a HP Officejet 6700 Premium, newly bought and installed in my older desktop that is wired. I would like to be able to print from my two laptops wireless as well. Is this possible? And if so, how?

    • bugs of energy management

      I get the following error when I shut down or restart the computer after disabling "Smart CPU for energy savings" in power management settings: Energy Management.exe - Application error The instruction at 0 x 80001700 referenced memory at 0 x 8000170