Refresh page before branch/redirect to report download  page

Hi Team,
I have to download a report.
For this I had made a Report region with template set to export:CSV.
I am branching to this page from another page say page4
When I redirect/branch to this page browser remains at page4, and prompts for download file occurs.
But my problem is that I have to display a message/some text in page4 before this prompt occurs.
Kindly suggest me on this.
Thanks and Regards,
Rajendra Yadav

Hi,
From the Apex docs:
Selecting export: XML prevents the Application Express engine from rendering the page and dumps the content to an XML file.
I assume the same applies to export: CSV. So this is the expected behavior.
I see these options:
- Display the message in the same page (page4 in your example) using apex_application.g_print_success_message or some other method.
- Create an intermediate page that will contain only the message and code similar to the code below in the onload event. This code will call the report page:
// The time out is needed because onload may be triggered before
// all the page referenced files (CSSs, Javascripts etc) have been loaded
setTimeout('window.open("f?p=&APP_ID.:YOURREPORTPAGE:&SESSION.", "_self")', 1000);I personally find this type of solution ugly, maybe someone else has a better idea...
- A mix of those two: the branch will set a flag and navigate the same page, which will display the message and open the report page using the code above.
I hope this helps
Luis

Similar Messages

  • Error while updating table before branching to a report

    Hi,
    I have an apex form screen where on click of a button, i need to change a few flags on the screen and then display a bi publisher report.
    when the user clicks the PRINT Button a javascript function is called, which will set the flags and submits the form. I have the default process row of table process to update the form fields.
    in the branch i gave the BI publisher report url.
    everything works fine so far.
    if i click the print button again for a second time, i get a checksum ... error as shown below.
    ORA-20001: Error in DML: p_rowid=982-000790, p_alt_rowid=_ID_NUMBER, p_rowid2=, p_alt_rowid2=. ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "BD63FDD3142B79017CCD2C8DA8ED8CA7" application checksum = "B2FD7581A9478214E59264F9C1CFAF96"
    Error Unable to process row of table .
    OK
    Any idea how to fix this?
    What i am trying to do is:
    when the print button is clicked then i need to set the Print flag in the screen and database to true.I am using the default row update process generated by apex for a table form.
    Thanks
    Knut

    Hi Scott,
    example 1
    I have a demo at the following url
    http://apex.oracle.com/pls/otn/f?p=30091:6:1206476651563662::NO:::
    1. page 6 is the report and page 7 will be the details form.
    2. select a record from the report click edit and it will take you to the details screen page 7.
    3. on page 7 i have 2 select boxes with YES/NO flag. Initially set them to NO.
    save changes.
    4. click on the print button. it will reset the select lists to YES and opens a report.
    5.now go and edit anything on the screen and click apply changes.
    we will get the an error.
    All i am trying to do is update the flags to YES before displaying the report which works fine. but if i try to edit any data and save it throws an error.
    is my table.
    CREATE TABLE "DEMO_MINISTER"
    (     "MINISTER_ID" VARCHAR2(12),
         "NAME" VARCHAR2(50),
         "CERT_FLAG" VARCHAR2(1),
         "LABEL_FLAG" VARCHAR2(1)
    MINISTER_ID" is the primary key generated using a sequence. (i have to actually generate it with - year prefix etc hence a varchar)
    example 2:
    http://apex.oracle.com/pls/otn/f?p=30091:1:607292687304632:::::
    i have another page page 1 with demo_customers list. here the id is a number here. on edit it displays page 5 where i tried the same print reset flag stuff here and it works.
    Table Data Indexes Model Constraints Grants Statistics UI Defaults Triggers Dependencies SQL
    CREATE TABLE "DEMO_CUSTOMERS"
    (     "CUSTOMER_ID" NUMBER NOT NULL ENABLE,
         "CUST_FIRST_NAME" VARCHAR2(20) NOT NULL ENABLE,
         "CUST_LAST_NAME" VARCHAR2(20) NOT NULL ENABLE,
         "CUST_STREET_ADDRESS1" VARCHAR2(60),
         "CUST_STREET_ADDRESS2" VARCHAR2(60),
         "CUST_CITY" VARCHAR2(30),
         "CUST_STATE" VARCHAR2(2),
         "CUST_POSTAL_CODE" VARCHAR2(10),
         "PHONE_NUMBER1" VARCHAR2(25),
         "PHONE_NUMBER2" VARCHAR2(25),
         "CREDIT_LIMIT" NUMBER(9,2),
         "CUST_EMAIL" VARCHAR2(30),
         "PRINT_FLAG" VARCHAR2(1),
         "PRINT_LABEL_FLAG" VARCHAR2(1),
         CONSTRAINT "DEMO_CUST_CREDIT_LIMIT_MAX" CHECK (credit_limit <= 5000) ENABLE,
         CONSTRAINT "DEMO_CUSTOMERS_PK" PRIMARY KEY ("CUSTOMER_ID") ENABLE
    So what should i do to get the example 1 to work.
    Thanks
    knut

  • Removing Items from Gridview and refreshing the gridview without redirecting to the same Page.(Windows Phone 8.1 Xaml)

    I have a gridview with a Usercontrol as its itemtemplate. In the Usercontrol I have a flyout attached to it using which the user can choose to delete the entry. After deletion how do I remove the entry from the gridview without redirecting to the samePage
    and removing the backstack entry?
    Please note that I am deleting/modifying the itemssource in the usercontrol's codebehind.

    Hi Rajiv,
    Where you have attached flyout. Which UI control. Is it border?? What type of UI control inside the DataTemplate?
    As normal, when user clicked on the delete item, you can retrieve the selected entry as single item of an observablecollection and pass into your ViewModel class and remove it. 
    The item will be removed at Runtime without refreshing or redirecting and there will a animation (transition) in the GridView when it removing.
    If this content doesn't match your answer. Please ask me again.
    Thank you

  • Heads up to QT/iTfW troubleshooters: standalone download page changes

    to be precise, there isn't a separate standalone download page any more. the QT for Windows download page comes now with two options: an itunes/QT installer bundle, and the QT standalone directly below it:
    http://www.apple.com/quicktime/download/win.html
    all my links (and presumably all your links) to the old standalone page have been redirected to the new page.
    since the QT/iTfW bundle is the default download setting, we're going to have (for a while) folks reading through the old posts/threads and downloading the bundle by mistake. be on the lookout for reports of -3s coming from a supposedly standalone QT install ... it'll probably be being caused by the confusion due to our old links.

    (marking this one as answered just to get it out of my unresolved questions ... no new news here.)

  • CRVS2010 beta - New Page Before option non consistent

    Hello,
    The New Page Before option is on the paging tab on the section expert.
    If I select this option on a group header report section, a new page is not inserted at the beginning of the report like it did in the previous version. Instead the first group prints on the first page.
    On a report that has 2 group header sections, the new page before option does insert a blank page at the beginning of the report.
    I've tried it with the "Keep Together" option on the common tab, selected and not selected and both of above situations still happen.
    I guess my question is whether or not the code for the New Page Before option has been changed since CR2008 first came out. I know that there are service pack upgrades, but when I was using CR2008, I didn't install any of them.
    Any help would be greatly appreciated.
    Thank you

    I re-tested this again and still notice the same thing.
    Below is how I tested.
    I opened a report that only has one group. When I applied the new page before option for the group header section, the page break was created in the right place.
    When I used a report that has 2 groups, regardless of which group header section that I applied the "new page before" option to, the page break was not right, as explained below
    When applied to the group header 1 section, the first page of the report is blank
    When applied to the group header 2 section, the first page prints the page header info and the group name and no detail records.
    For reports with more than one group, it doesn't seem like the new page before option works as I thought it would (meaning that the page break is applied properly), so I created a formula for the new page before option.
    What I'd like to know is if the output that I described above for reports with at least 2 groups is the way that the "new page before" option is suppose to work or if the option is really only meant to be used on reports that only have one group.
    Thank you
    Tracy

  • How can i redirect to another JSP page automatically after some event

    I am developing a Tic-Tac-Toe game which can be played between two players who are on two different machines.
    When the first player comes to the Welcome page he will redirected to a Waiting Page when he clicks on the 'Start' button.
    When the second player comes to the Welcome page he will be redirected directly to the Game page, on clicking the 'Start' button.
    So how can i redirect the first player to the Game page after the second player is available for the game.
    And if i want to manage multiple instances of my game how can i do that//
    I am using JSP, javascript and MySQL for developing my project, and I am new to all these tools, but i would still like to carry on with all these only

    This is a bit of a challenge because of the nature of the web. Generally the web is "pull only" meaning that the browser has to initiate any interactions - the server can't push data to the browser if it wasn't asked to.
    The easiest way to solve this is using AJAX via JavaScript to periodically poll the server for any status changes. There are other ways (the Comet protocol is one) but they start to get a bit difficult and are still a bit new and not completely supported in a standards way. And to be honest they are still basically polling though in a more efficient way.
    Are you using a JavaScript framework? Most of the JavaScript frameworks that I've used have built in support for polling in the background. You'd have to have the JSP/servlet side be able to handle these polling requests from the browser and, when another person joins the game, the server indicates that and sends that back to the browser.
    As far as multiple instances I would have the server automatically pair up users as needed. So when the first player arrives he has to wait for another player. When the second player arrives a new game is created for those two players. Now a third player arrives and waits until a fourth player shows up. When player 4 joins another separate game is created. Presumably the conversation between the browser and the server will need to include a "game number" or other unique number so that the server can keep track of the games.

  • HELP! Safari says cant open the page, too many redirects occurred trying to open (web address) when trying to access research paper sites - doesnt happen elsewhere

    Hi there,
    Ive been trying to open research articles through google scholar, when i click to open the page it doesnt load and comes up with Safari cant open the page, too many redirect occured trying to open (then the web address). This might occur if you open a page that is redirected to open another page which is then redirected to open the original page.
    This also happens when i access the databases through my universitys library web page - and it still wont let me load even the actual webpage let along particular article.
    This is happening on my ipad as well - but this is not happening on my iphone or on my other lap top which is not an APPLE.
    i know its not my internet as i used the same internet on the other comp and i also used it as wifi and without out wifi on my iphone.
    PLEASE HELP! i need to study!!
    thanks

    Safari 6
    Empty Caches
    Safari > Preference > Advanced
    Checkmark the box for "Show Develop menu in menu bar".
    Develop menu will appear in the Safari menu bar.
    Click Develop and select "Empty Caches" from the dropdown.
    Remove website data.
    Safari > Preferences > Privacy > "Remove All Website Data".
    http://support.apple.com/kb/TS3320

  • Why the request to download Pages?

    If I open on my iMac or MacBookPro in iCloud the iWork option Pages I get the message to download Pages for IOS.
    I have Pages for IOS already installed and used for some time.
    I have Lion and the latest version of Pages on my computers.
    So, why the message?
    Goos Bakker.

    I am facing the same issue. Did you resolve it?

  • I need to read Pages files but  I can't install Pages on osx 10.6

    I  need to read Pages files, but I can't install Pages because I have OSX 10.6.  Is there some version that will work?

    You can get iWork 09 on the net. You haven't had Pages before? Who is sending you Pages documents? Ask them to export the document to Word or Rtf and you will be able to read the documents in TextEdit, which you have on your computer

  • Submit page before launching report link

    When I define a link on a column in a report region declaratively (using Report Attributes) and point it to the same page (or another page), it creates the link using a URL redirect type of thing. The current page is not submitted before launching the new page.
    This is causing me grief since changes on my page that the launched link needs are not stored in session state. How can I submit the current page before launching the link?
    Thanks

    Vikas,
    Redirecting is no different from clicking on any hyperlink anywhere on the web, a link doesn’t submit form data, it just goes to another page and might set some data via URL. But form data is not submitted. If you want to have your form data sent to the server, you need to submit an HTML form. HTML DB lets you do that e.g. by calling doSubmit. But this doSubmit call must not be accompanied by a redirect. Just a plain submit, and a branch that lets you define where to go next (e.g. same page). So setting any values via URL will not work when submitting the page. Submitting calls wwv_flow.accept, not f?p. This is why you need to set a form item (page item) on the client via Java Script first before calling doSubmit so that you can referebce that form item later to identify the proper row in your report. To give you an example, just take a look at how I implemented to reports attributes page. Edit any report, go to reports attributes and look at the report that shows your columns. There’s an edit icon on each row. Hover over with your mouse and note that this calls Java Script: setColumnIDAndSubmit. Look at the HTML code, find that function and look how it sets a page item value to the current column ID.
    Marc

  • How to redirect to a page (without branching and without pl/sql)

    Hi,
    Have a requirement where when a user log into the application, the APP_USER must be checked against the list of users maintained in a database table, if APP_USER name exist in the table, the user must be redirected to the home page else user must be redirected to the Registration page.
    Tried the branching concept:
    Branch Point: On Load: Before Header
    Condition: NOT Exists (SQL Query returns no rows)
    Expression1 : select * from users_tab where name = v('APP_USER')
    When this condition is given, though the user name does not exist in the users_tab, the page is redirected to page 1 instead of the Registration page.
    Where is the problem here?
    How can it be resolved?
    Is there an alternative way to implement this?
    Edited by: 935799 on Jun 7, 2012 6:51 AM

    935799 wrote:
    Hi,
    Have a requirement where when a user log into the application, the APP_USER must be checked against the list of users maintained in a database table, if APP_USER name exist in the table, the user must be redirected to the home page else user must be redirected to the Registration page.
    Tried the branching concept:
    Branch Point: On Load: Before Header
    Condition: NOT Exists (SQL Query returns no rows)
    Expression1 : select * from users_tab where name = v('APP_USER')
    When this condition is given, though the user name does not exist in the users_tab, the page is redirected to page 1 instead of the Registration page.
    Where is the problem here?
    How can it be resolved?
    Is there an alternative way to implement this?
    Edited by: 935799 on Jun 7, 2012 6:51 AMThe above should work, try this
    select * from users_tab where upper(name) = nvl(:APP_USER,'X')

  • ITunes store redirected me to download itunes page

    Hi,
    I am unable to access the itunes store or authorize my PC to share purchases. It keeps giving me the error 50. We could not complete your itunes store request. An unknown error has occurred (-50).
    I have tried a complete uninstall of itunes (by uninstalling itunes,quicktime, apple services etc.). It still does not solve the problem.
    Another issue is when i try to access the iTunes store, it redirects me to the page telling me to download iTunes 9 now. Thus , i believe it can't access itunes.apple.com. Any idea how to resolve this issue?
    Heres my network log:-
    Microsoft Windows 7 x64 Business Edition (Build 7600)
    System manufacturer System Product Name
    iTunes 9.2.1.5
    QuickTime 7.6.6
    FairPlay 1.8.20
    Apple Application Support 1.3
    iPod Updater Library 9.2d4
    CD Driver 2.2.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 3.1.0.62
    Apple Mobile Device Driver 1.49.0.0
    Bonjour 1.0.6.2 (214.3)
    iTunes Serial Number 236C72330CA9458D
    Current user is an administrator.
    The current local date and time is 2010-08-19 21:29:10.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is supported.
    Video Display Information
    NVIDIA, NVIDIA GeForce GTX 460
    ** External Plug-ins Information **
    Plug-in Name: TuneUp Companion
    Plug-in Loaded: Yes
    Plug-in Version: 0.0.5
    Plug-in File Version: 1.0.9.0
    Plug-in Path: C:\Program Files (x86)\iTunes\Plug-ins\iTuneUp.dll
    iPodService 9.2.1.5 is currently running.
    iTunesHelper is currently not running.
    Apple Mobile Device service 3.1.0.0 is currently running.
    ** Network Connectivity Tests **
    Network Adapter Information
    Adapter Name: {CB9CDF84-527C-4F42-A8B6-EFFC2F9AEB9C}
    Description: TAP-Win32 Adapter V9
    IP Address: 0.0.0.0
    Subnet Mask: 0.0.0.0
    Default Gateway: 0.0.0.0
    DHCP Enabled: Yes
    DHCP Server:
    Lease Obtained: Thu Jan 01 08:00:00 1970
    Lease Expires: Thu Jan 01 08:00:00 1970
    DNS Servers:
    Adapter Name: {0D5A71A2-0A90-4E78-BAC4-3BA4929E06CF}
    Description: Marvell Yukon 88E8056 PCI-E Gigabit Ethernet Controller #2
    IP Address: 192.168.1.65
    Subnet Mask: 255.255.255.0
    Default Gateway: 192.168.1.254
    DHCP Enabled: Yes
    DHCP Server: 192.168.1.254
    Lease Obtained: Thu Aug 19 21:22:27 2010
    Lease Expires: Fri Aug 20 21:22:27 2010
    DNS Servers: 165.21.83.88
    165.21.83.88
    165.21.100.88
    Adapter Name: {0FEDB158-1AC9-439C-8E0D-2583F7F5B3CC}
    Description: Marvell Yukon 88E8056 PCI-E Gigabit Ethernet Controller
    IP Address: 0.0.0.0
    Subnet Mask: 0.0.0.0
    Default Gateway: 0.0.0.0
    DHCP Enabled: Yes
    DHCP Server:
    Lease Obtained: Thu Jan 01 08:00:00 1970
    Lease Expires: Thu Jan 01 08:00:00 1970
    DNS Servers:
    Active Connection: LAN Connection
    Connected: Yes
    Online: Yes
    Using Modem: No
    Using LAN: Yes
    Using Proxy: No
    SSL 3.0 Support: Enabled
    TLS 1.0 Support: Enabled
    Firewall Information
    Windows Firewall is on.
    iTunes is enabled in Windows Firewall.
    Connection attempt to Apple web site was successful.
    Connection attempt to iTunes Store was successful.
    Secure connection attempt to iTunes Store was successful.
    Secure connection attempt to iPhone activation server was successful.
    Last successful store access was 2010-08-19 21:27:08.

    Somebody else posted about this. At least, it seems similar to me especially if you aren't using Internet Explorer. If you're already using IE, I don't know what to tell you.
    http://discussions.apple.com/message.jspa?messageID=12062795#12062795
    IE8 seems to be the only browser that will open itunes store links on Windows 7. You can report it to Apple.
    itunes menu > help > provide itunes feedback

  • Firefox 32.0.1. Win7. When I click on a tab Firefox immediately refreshes the page. Before this the last copy of page stayed until I manually refreshed.

    In the last couple of days since the last upgrade to Firefox I've noticed a major change in behaviour.
    It used to be that when I started Firefox and clicked on one of my tabs I would be presented with the web page as it looked the last time I looked at it. I then had the option to refresh the web page either by forcing it to load again or by selecting an option within the web page.
    Since the last automatic upgrade in the last couple of days ago when I click on a tab after starting firefox it's immediately going off and reloading the web page from the html address.
    This has two problems:
    On some sites I have configured information within the page about my preferences. Normally I click buttons within the page to go forward or back a page. With the new bejaviour I'm takne to default page and have to manually re-enter all my preferences and filters again.
    Second problem is on many sites I can a list of where I was at the last time. I then know which articles I;ve already looked and can then remember where I was at the last before updating. With the new behaviour I don't know where I was.
    How can I get the old behaviour back ?
    I'm running Firefox 32.0.1 on up to date Win7 .

    I've kept investigating this further.
    I've now found that this is a cache management issue.
    I found that the cache options (Tools-Options-Advanced-Network ).
    The Cache file on Firefox was set to a limit of 350 MB and the Cache was using 350 MB of storage.
    I tried clearing the cache.
    After I cleared the cache I found that when I had loaded a web page after I shut down Firefox and restarted and went back to the tab it loaded the web page as it had been the last time I visited.
    This suggests that the problem I was encountering was that the cache was full and that rather than clearing out old content from the cache that once the cache filled up Firefox stopped writing new data to the cache.
    I also note that the button labelled "Override automatic cache management" was ticked. That would tend to suggest that Firefox was being told not to delete old content when the cache filled.
    I've now unticked the "Override automatic cache management" box and will see how I get on.

  • Czn't download Calendar from cableone?? The page isn't redirecting properly Firefox has detected that the server is redirecting the request

    Cannot download Calendar from cableone.net???
    The page isn't redirecting properly
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    Does this happen on just one site or does it happen more often?<br>
    First I would delete the contents of the cache and delete all current cookies and try again. If clearing does not help, I would try safe mode.<br>
    Did you try to start Firefox in the Firefox Safe Mode? If it works when in safe mode, then this problem is probably caused by a broken add-on. If the safe mode does not help, that may be an indication that the server is sending some broken headers.

  • Can't download any Adobe plug-in updates - get redirected to another Adobe page over and over.

    FF Add-ons Manager tells me that 1) Shockwave Flash (11.9 r900), 2) Adobe Shockwave for Director Netscape (12.0.4.144) and 3) Adobe Acrobat (10.1.9), and are all vulnerable and that the last two are outdated.
    When I click update on any of them, the appropriate download page comes up in a tab.
    But when I click on download, nothing is downloaded and I'm directed to another Adobe page (the main home page I believe): http://www.adobe.com/
    This page has a list of downloadable links at the bottom. When I go to them I'm taken (again) to the download page for that add-on, but (again) when I click download, I'm redirected back to the Adobe home page.
    I've tried this about 15 times over 6 weeks. My feelng is that malware has compromised my FF and is blocking the update. I'm running AVG free and Windows Vista firewall.
    My computer is running Windows Vista on an AMD powered desktop and Firefox 26.0. I've included (I think) the trouble-shooting info.

    For Windows Vista, Adobe is not supporting the current Adobe Reader 11 / Adobe Acrobat 11 series, so what you have is the latest for your system. Mozilla's plugin check site currently does not recognize 10.1.9 as current, so you'll have to trust Adobe to keep you up-to-date and disregard the plugin site on this one.

Maybe you are looking for

  • My macbook air camera does not work

    I have a macbook air 11" mid 2011   running OSX Yosemite 10.10.1   I need to use the facetime camera, but it says no camera is available.  what I have done (6 hours or research and grief later): After reading a plethora of forums,  I have tried: Migr

  • Security issues when using the file adapter

    I want to use the file adapter, and in the documentation it states that you can use "directories" and "ftp". I want to transfer a file secure and both of these options are not really secure. Directory reading is not really secure when you read files

  • MIGO - Item Overview Field Columns

    Dear all, I've an issue on my company's Dev system whereby in the standard MIGO transaction screen, the Item Overview section (the middle table) seems to be missing columns starting from "Material Short Text" all the way until before "Text" column. M

  • Payment not Valid in the AppStore

    Every time since an hour ago, I'm experiencing a pop up saying Verification Required when I'm purchasing apps and ever time I verify it it says that my payment method is not valid. this never happened before. Earlier this morning I was able to downlo

  • Need display advice 23 or larger

    looking for a display, 23 inches or larger.  My budget is $400.00.  I can find plenty of used Apple Cinema Displays used for $400 in 23 inches, but these are of course older models and I question how they will look/hold up next to another manufacture