Export to Excel, via a link on the page of action

I have two questions.

(1) how can I export to excel, via a link.  For example I have a form, a user clicks submit, and I've got cfoutput data in a table on the same page (action page is identical to the entry page).  Now, once the output data, I'd like a link on this page so that the user can click and it will export the table to Excel.

I tried:

    <cfheader name="Content-Disposition" value="attachment; filename=test.xls">
    <cfcontent type="application/msexcel">
    <cfoutput query="qTest">
    <table>
    <tr>
    <th>Account</th>
    <th>Amount</th>
    </tr>
    <tr>
    <td>#qTest.ACCOUNT#</td>
    <td>#NumberFormat('#qTest.TotalAmt#', "_(999,999,999.99)")#</td>
    </tr>
    </table>
    </cfoutput>

But once the page is loaded, he tries to export automatically.  How can I get to export via a link?

Also, someone suggested wrapping the cfoutput in a < cfsavecontent variable = "xyz" > tag, but once I have it, how do I insert the variable 'xyz' in the tag < cfcontent >?  Or where can I use it?

Thank you guys

The variable that contains the output table.  Just put another #session.export # in the appropriate place in your logic will be displayed on the screen using the scenario.

Tags: ColdFusion

Similar Questions

  • Green letter 'K', almost all links on the page

    Any page that I opened - it displays green letter K almost all links on the page. How to remove it? Thank you!

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).

  • How can I return to the 'parent' source after following a link in the page source?

    After following a link in the page source, I would like to be able to return to the source 'parent '. The only option I found is the source is completely closed and open the source of the page once more. A 'return' option would be useful here...

    I just tried to look at the source of the page and the previous/next buttons on my mouse worked.

    If this isn't an option for you, another option is to view the Page Source to use an external application of your choice who has previous/next buttons the value. Dafizilla ViewSourceWith can be used to define an external application to view the source. You can also define an external application by changing hidden preferences 2, the following 2 links show what to change:

  • Column link to the page on the right calendar

    Dear all,

    I would like to create a link from a date column in a report page (e.g. page 10) to a calendar page (e.g. page 2).

    Let's say you have 15-dec-2015 in the data column, so I would like to open with this link to the page of the month of December in 2015.

    If the date value January 14, 2016 and then the page for the month of January in 2016.

    I did research on the internet, but this was not successful so far. I need some help here.

    I tried the following:

    In the section target the date column:

    Page: 2

    Set items:

    Value name

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

    P2_CALENDAR_TYPE M

    P2_CALENDAR_DATE #EVENT_START_DATE #.

    Clear Max: Clear Cache

    This gives error because of the P2_CALENDAR_TYPE existing does not in page 2.

    I use APEX 5.0.1.00.06 on the 11g database.

    Kind regards

    Cafer

    Hi Thibault,

    I suggest to have two pages from the point P2_STARTYEAR, P2_STARTMONTH in your calendar page and use the function gotoDate after setting the month and year in these elements of the page. Set the static id of your MyCalendar calendar and try this code in page loading section:

    $(document).ready(function() {
       // Get Year and Month
        var year = $("#P2_STARTEAR").val();
        var month = $("#P2_STARTMONTH").val()-1;
       // Goto the date
        var d = new Date();
        d.setFullYear(year);
        d.setMonth(month);
        $('#MyCalendar').fullCalendar('gotoDate', d);
    });
    

    I hope that helps you.

    Concerning

    Mahmoud

  • How to assign URLs dynamically using button/link on the page of peoplesoft? Please provide detailed instructions.

    How to assign URLs dynamically using button/link on the page of peoplesoft? Please provide detailed instructions.

    1. define the URL, the Z_URL1 or the Z_URL2 definitions

    2. in the change of field button:

    If true Condition then

    ViewURL (URL. Z_URL1);

    On the other

    ViewURL (URL. Z_URL2);

    End - if

  • Is it possible to duplicate a link to the page on several pages, for example in a table of contents?

    Is it possible to duplicate a link to the page on several pages, for example in a table of contents?  I have a 140 document and each page needs a link to the table of contents.  I am familiar with how to add the link on each page, but I hope that there is a way to reproduce it, save me time.

    Are you really something under Label, on the Options tab?

  • ADF necessary validation is triggered when you click on ANY link off the page

    I have a couple of fields of text on a page and I put the validation 'Real' = required on them so that when I click on a button that calls a pageflow validation method is device when there is no data in the field.

    The problem is that it is also device when I click on any other button navigation or link off the page. Is it possible that I can do the required validation related only to a particular button?


    In addition, this jsff belongs to a taskflow which is deployed in Webcenter spaces so some think that the reason that has something to do with it.

    Any help is appreciated.

    Hello
    Make the other buttons property immediate = "true", then he ignores all validation on the client side.

    For example:-If you want to do validation on the first button's click, but you don't want to do any validation on the second button's click, then place the immediate property = "true" on the second button and you're done.

  • Link on the page does not work

    I can't get a link on my page to work.  http://jeannettedutton.com/MLVC/   The image of UPCOMING EVENTS (under the sign of Lobby hours) will not link to the page.  I am sure that the problem lies in the rotating image code, but I don't know why.  Help!  I can't understand it.

    Jeannette

    I revise this provision of the Center a bit to move the 'turning-item2.

    outside the 'turning-point-wrapper ".
    . Its never a good idea to put anything in a wrapper that is affected by a jquery script that didn't need to be.

    Make a backup of your page before you try the fix below.

    First add the below css inline style to the opening "turning point-item2.

    tag. Then select the HTML cut and paste after closing
    tag of the item_wrapper 'turning point '.

    Lobby Hours


      http://jeannettedutton.com/MLVC/images/upcomingEvents1.png"" onmouseover="this.src='images/upcomingEvents2.png" "onmouseout="this.src='images/upcomingEvents1.png'"border="none"/ >"

    Then add a style to your 'turn-point-wrapper' opening css inline

    tag, as shown below:

    Finally, add a
    Clearing solution (see below) to your code directly before the 'content '.



  • Navigation and link to the Page of content query

    Hello

    In my navigation model, I need my top-level link to be a link to the page at allResources.jspx. The sub-navigation must be a content query from one folder to the Complutense University of MADRID.

    The only way I was able to do so far is to add a query of content for the link to the page... but then I have two levels in my browsing when I only want one.

    At this point my gaze of pop ups of navigation like this:
    Link to page > name of content query > content query results

    I want it to be like this:
    Link to page > content query results

    How can I accomplish this?

    Thank you!
    Mitch

    When you add a content query, you have a checkbox "insert the contents of the files. Check this and you should have the result you want :)
    By checking this box, you ask the navigation it will add all the nodes in the content query directly in the navigation without creating a sub-level.

  • link to the page on the press to play the swf animation

    Hello

    I'm sure I can do this in Flash but didn't do in Dreamweaver for SEO purposes.

    When you press each link on the page the animation will play, obviously before going to the directed page.

    Any pointers?

    Many thanks and best regards, Damien

    Hello

    You can use javascript or jQuery to capture and prevent the default action for a length of time while playback of the animation, then navigate to the location of the links once completed.

    PZ

  • Convert links to the Page references

    Hi all

    I have to create documents printed from a webhelp project and convert internal hypertext links to the page references. There was a method that I have used before around that converting links to page references in Word, but I can't seem to find it. Can someone point me to it please?

    M | S

    See this page on my site. You can download a Word macro to add page numbers after the hyperlink.

    http://www.Grainge.org/pages/authoring/Word/word_macros.htm

  • create a link to the page html to images and css

    A customer wanted a change to one of the pages on their website. So, I opened the page in DW and "recorded under ' another name of the same page (in order to keep a copy of the original page) in the same folder of the site. I made the changes and it was going on well in the browser preview. I then renamed this revised page identical to the original page back. I made this name change in the file to the desktop folder (could this be the problem?). When I downloaded from the site, it looked like all connections to the doc .css and the folder of images are no longer there. So, I pulled it in offline mode and now I am trying to find a way to re-establish links the .css and the images. Everything seems fine when open in Dreamweaver and when I preview it in mode browser, however in the thumbnail preview shows question marks when the images are supposed to be, and when I download it, it looks like hell.

    Any ideas as to how I can restore links?

    Thank you.

    rigoliarts wrote:

    I made this name change in the file to the desktop folder (could this be the problem?).

    Yes, that would be the problem. You should never work via the files Panel > window > files. If then, you make changes to a file or move to another location in the folder root of the Dreamweaver site will ask you if you want to update the links with this file assocaiated.

    rigoliarts wrote:

    Any ideas as to how I can restore links?

    Unless you have a backup of the original file, you may need to update the links manually. If you have the orginal file back to its original location, and then perform updates through the control panel site.

  • How to create an active link in the Pages?

    I use Pages 5.6.2. I type a paper and try to include active links in the text (for example, 'the Church', which would take the player to a certain image/site). But by following the instructions to this effect in the "Help menu", my attempts to always default link on www.apple.com. Any suggestions? Thank you very much.

    Hi EdMusical,

    I understand you are trying to add links to your Pages document, but they are default Apple.com. I know it's nice to enrich your documents in this way, so I'm happy to help you.

    Because your links go to Apple.com, by default, looks like you can not be remove the sample text in the box when you prompt for what URL you want the link to train. This page provides more details on the use of this feature:

    Pages for Mac 5.0: link text in a document

    Turn text into a link

    You can use a word or an expression as a link without displaying the URL or e-mail address in your document.

    1. Select the text, click on inserer insert in the toolbar, and then choose Add a link.

      The window opens with the selected text in the display area.

    2. Enter the full URL in the link field.

    3. Click open to check the link.

  • When I click on the link on the page of the Add-ons Manager to check the updates it still works without any result. How to solve this problem?

    The Flash Player has been blocked. I tried to use the update on the Manager of Plug-ins page link, but the tool just ran and ran without ever showing any results.

    It seems that the plugin check page is to have general questions of support (server-side) at the moment...

  • Send list drop-down page or a link in the page not activated

    By clicking on the Page button and access the drop-down list the link send the list and send the page options are not enabled. I can add to the toolbar, but why they are not activated as they once used to be?

    By clicking on the Page button and access the drop-down list the link send the list and send the page options are not enabled. I can add to the toolbar, but why they are not activated as they once used to be?

    Just in case, please check if Internet Explorer has all its flaws.

    t-4-2

Maybe you are looking for

  • Has anyone else been contacted by a representative of Tech-care-Windows?

    They have a legitimate Web site seem legitimate. However, they give names that doesn't sound right as Steve Watson, etc. and say that they are in Las Vegas or California. I would like to hear from others on this. Thank you.

  • Replace the call button and hang up

    Hello To overrride the button back on a smart blackberry phone I override the onClose() method. Is there one or more similar methods for buttons (green) call and hangup (red)? I want to just make sure that whenever the user leaves the application exi

  • IPS Inline Mode span configuration

    In Inline Mode IPS V5, the second interface (where a package goes out) a paired interface must be configured as a span port or a regular port? Where can I find more information about it? Thank you.

  • Free CD/DVD Labeler Software

    I lost the function of my Nero OEM Suite that included Nero Cover Designer, which came with my Lightscribe software, when I bought a DVD player. It has been run on XP, now I have Win 7... I have the Nero disc and tried to insall on my computer, but s

  • PL5060N 50 '' plasma

    I need to know what size screws are used to attach the speakers to the PL5060N 50 '' plasma