Calling csv export from button not link?

Gday,
I was wondering if it is possible to call the export csv functionality via a button and the default hyperlink functionality?
Cheers

Hi,
You actually need to mess with two templates - the region one and a new button one.
Firstly, update the report's region template to include the following at the top of the "Template" setting:
<script type="text/javascript">
var regionid="#REGION_ID#"
</script>Note that this must be done on the report's template even if you put your button into another region as we need the report's REGION_ID value
Now create a new Button template called, say, "Export Button". The "Template" setting for this should be:
<a href="javascript:void(0)" class="t12Button" onclick="doExport();">Export</a>This was based on a standard "Button" button template. If you use another style of button, adjust it accordingly - you need the same href and onclick attributes as shown above, but anything else can be left unchanged.
Finally, on the page's HTML Header setting, add in:
<script type="text/javascript">
function doExport()
var url = 'f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:FLOW_EXCEL_OUTPUT_' + regionid + '_en';
document.location.href=url;
</script>You can now change your button to a Template Based Button using the new Export Button.
Note that, as we are assigning REGION_ID to a javascript variable, only 1 such button can exist on a page.
Andy

Similar Messages

  • Multiple CSV exports from the one button or pl/sql procedure?

    I need to have multiple csv exports from the one press of a button. The easiest way I found to do this is it to use javascript to popup three windows, each as a CSV link. This is a bit ugly though, and leaves the browser popup windows open when the file has been downloaded.
    I guess I could also make a solution based on branching, but I think that would be difficult to maintain and reeks of bad design (im not a fan of this spagetti GOTO style code!).
    I implemented Scott's custom CSV as found here: http://spendolini.blogspot.com/2006/04/custom-export-to-csv.html
    However I would like to know if its possible to download more than one file using this method. I could not work out how to do this .
    Has anyone got any ideas? Simply repeating the code puts the second table into the original csv file. Is there a way to 'reset' the htp writer or smoething?
    Any help greatly appreciated,
    Alex

    Sorry for the confusion - I guess I mean its easy in .NET because you can simply compress files together and then send 1 zip file down as the response. See http://www.developer.com/net/net/article.php/11087_3510026_2 for details.
    I guess I could ask how to do this in APEX - but it seems to me that my original wording addresses the concept at a much more abstract level. I may not find the best solution for my problem if I just asked 'how can I dynamically zip together three tables as seperate files and send them to the client?'. I also suspect that this method is not possible in APEX without custom packages. Please prove me wrong!
    I guess even if I could find some kind of javascript that didnt open a new window, but was a direct download to the CSV, that would be a good compromise. At the moment when you click on the link, three windows come up and stay blank until the files are ready for downloading. Then after the files have been downloaded the windows must be shut manually. Yes, I could use javascript to make the windows 1x1 pixel perhaps, and then shut them after a predetermined timeframe - but this is hardly an elegant solution!
    Thanks for your responses.

  • File Download In Button not link

    Hi
        I want to download a file from my application for that i have used the file download UI element but that file download looks like a link but i want it to look like a button not link for that i tried to change its type property but it don't give me looks like button so please help me out in downloading the file by clicking a button (not link)
    Thanks in advance

    Hi Ninad,
    Insert button, for action handler put something like:
         final byte[] content = //get content of the file;
         final IWDCachedWebResource resource = WDWebResource.getWebResource(content, WDWebResourceType.<APPROPRIATE_MIME_TYPE>);
         try {
              final IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(
         resource.getAbsoluteURL(), "Window title", false);
              window.open();
         } catch(Exception e) {
              wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(e), false);
    Best reagrds, Maksim Rashchynski.

  • Calling a procedure from a dynamic link

    I have the following situation-
    I have a report created using SQL Query.
    I need to call a Stored Procedure(move_to_portal) through a link from one of the fields in the report (Exec_id field of the report).
    How can I do this?
    The links do not allow me to choose a stored procedure as the Target component....so maybe I have to create a dynamic link.
    How to do this? Any help would be appreciated.

    I have just another question-
    I have a procedure testing_del_archive which is being called with 2 parameters...from a dynamic link in my SQL Query.
    The following is my code....
    SELECT re.report_exec_id, re.exec_userid,
    NVL(re.batch_exec_date, re.begin_date) report_date,
    re.rows_returned,
    re.status, re.error,
    f_file_url(re.filename) file_url,
    re.comments,
    ''Archive''archive
    FROM metadev.report_execution re, metadev.report r
    WHERE re.report_id = r.report_id
    AND r.spec_number = :v_spec
    AND re.status <> 'DELETED'
    AND re.exec_userid like (DECODE(:v_user_filter,'ALL','%',:v_user_filter))
    ORDER BY begin_date DESC
    The first parameter is the value in the execution id field and the second argument is hardcoded "Archived"...
    IT GIVES AN ERROR....
    Do you guys know where I am going wrong...

  • Csv export from vbnet 2005

    I am using vb net 2005 and have several reports that I access from the frontend.  The all run real nice.  My problem is when I try to export a report in csv format it is not exporting right it will not export sub reports.  How do I get the front end to export subreports data within reports?

    Hi Sandra,
    As subreports can not be exported in csv format due to limitations
    Try with this line of code its a workaround.I have tested at my end on VS2005 .
    //First of all Export the report in Excel and then save it to csv format
    ReportDocument Rdoc = new ReportDocument();
    Rdoc.Load(Server.MapPath(u201CCrystalreport.rptu201D);
    Rdoc.ExportToDisk(ExportFormatType.Excel,u201DC:\Windows\Temp\ExportedReport.csvu201D);
    Hope this helps !!
    Regards,
    Shweta
    Edited by: Shweta Sharma on Sep 13, 2008 1:52 AM
    Edited by: Shweta Sharma on Sep 13, 2008 2:03 AM

  • Export from iDVD to link slideshows

    New to working with DVD projects and may have made error in creating slideshows for upcoming event. I have now made several slideshows within iDVD by getting individual photos from iPhoto (and other locations) and audio tracks from garage band. It looks pretty good actually and I have burned a trial DVD. Each slideshow plays well with the audio, however at the end of each it returns to main menu. My desire would be a one click play from the main menu but now I'm not able to link all the slideshows together.
    Reading previous posts looks like it would have been better to develop slideshows IN iphoto or imovie and then import to iDVD. Nevertheless - this is wher I'm at. Questions:
    1) Can I export the individual slideshows to iMovie or QT and then splice together and then put back in iDVD (or something to that effect).
    2) If I make one slideshow within iDVD am I able to make sure the audio tracks stay with the appropriate slides or will it "blend it all together" and add the audio tracks/adjust slide transitions.
    By the way, it works OK as, it just requires menu selection at the end of each set of slides. This is really a "fine tuning" couple of questions and I'll know better next time.
    thanks
    eMac   Mac OS X (10.4.9)   1G SDRAM
    eMac   Mac OS X (10.4.9)   1G SDRAM

    Yup, it would have been easier in iPhoto or iMovie. The only way I know to "export" from iDVD is to actually create the DVD (or disk image) and then extract the slideshows. But there's a fair learning curve for that process and a loss of video quality unless you use Roxio Toast, or something similar, to put the project back together on DVD.
    I'd live with your current DVD, or use iPhoto.
    John

  • ORA-20876 in csv export from interactive report = Possibly a bug?

    Hi Apex team,
    yesterday i tried to download data to csv from an interactive report. The resulting csv file contained a "ORA-20876: Stop APEX Engine" only and no other data. I played around with other reports in my application and had no problems with exports.
    After some investigation i found out that the buggy report contains a column of display type "Display as text (based on a LOV, escape special characters)". When I changed this column type to "Standard Report Column" for example, the error didn't appear anymore and the csv export contained complete data.
    Maybe this is a bug? The environment is Apex 4.1.1.00.23 on 11g (UTF-8). Is there a workaround available?
    Regards,
    Jens
    Edited by: j.gauger on 06.02.2013 14:10
    Additional Information
    The problem seems to occur only if a Shared Components LOV of type "Static" is referenced in the IR column.

    Hi,
    what happens if you take the query from IR report and create a new classic report?
    On this report enable csv export and then try the export.
    Maybe that (format) data are causing export to fail.
    Try to export just one row in your IR report (and classic report), so that you add where rownum < 2.
    Regards,
    Aljaz
    Edited by: Aljaz on 6.3.2012 23:11
    Edited by: Aljaz on 6.3.2012 23:29

  • Calling packaged procedure from a URL link

    I have created a custom APEX application the will allow us to dynamically build help screens for the pages we create with APEX.
    In doing this I have created a procedure within a package called "comi_help_util.show_help".
    This procedure uses the "htp.p" standard procedure to create a dynamic web page from data stored inside my help tables.
    I want to place a "Help" link in the Navigation Bar which will call the custom procedure, pass the APP_ID and APP_PAGE_ID and popup in a new window.
    I tried doing something like the Help link in APEX.
    javascript:popupURL('comi_help_util.show_help?p_application_id=&APP_ID.&p_page_id=&APP_PAGE_ID.');
    Unfortunately, I get "HTTP 404 - Web page cannot be found" error.
    I know I could probably call a page within my APEX application from my custom Help link which would then call my custom procedure.
    However, this means I would have to put a page within every application I want to use this on.
    I believe the call to the procedure directly would be cleaner and easier to implement, if I can get this working on my first app.
    I have never called a procedure thru a URL link or the javascript:popupURL and, try as I might, cannot search for the right keywords in the APEX forum or the Web.
    Any help would be appreciated.
    THANKS
    Raymond

    Hi Scott,
    >> Time for new glasses ...
    You are probably right, but regardless, I was referring to Raymond’s first post (and I should have made it clear). I noted that I believe your JavaScript statement is correct, I just can’t see the difference between it and the OP first statement, where, as far as I can see, he also used question mark (?) to mark parameters, and ampersand (&) to concatenate them. Still he received a 404 error. What am I missing there?
    Thanks,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

  • Need quick solution! QT Movie export from FCP not right, client breathing down neck...

    I am working on a project in FCP 6.0.6. The footage is ProRes, 1920 X 1080, and runs about 50 minutes. Some graphics but minimal. Plays back great in timeline. I export a QuickTime Movie (reference movie) but when I play it in Compressor, the video suddenly jumps ahead about five seconds at the 36:00 mark. The audio continues as normal, but now, of course, audio and video are five seconds out of synch. Made multiple attempts to export from FCP, but I keep getting the same result.
    I have a feeling this may be a QuickTime compatability issue, but I can't compress for Web or DVD until I figure this out. Not finding anything in discussions at Apple or Web.
    Other pertinents:
    24-inch iMac, 2.4 GHZ
    4 GB RAM
    OS 10.7.5
    Assistance appreciated.

    Thanks for your comment, Michael, but I actually solved the issue last night. Shane had asked earlier about whether I had any H.264 clips, and I did not. But last night I remembered that when I first created the sequence, I had dragged in an H.264 clip before I converted them all to ProRes. So I realized that although my clips were all ProRes, the sequence itself might still be set for H.264. Checked settings, and sure enough, compression was on H.264. Changed it to ProRes, re-rendered, and I'm rolling again. Thanks, Shane, for planting the seed on that one.

  • Button Not Linked but Properties Menu says it is Help Please!

    On one of my menu previous buttons I have linked it to the menu it needs to go to. I have verified this several times in the properties menu. Yet everytime I go to check the project in build it tells me it is not linked. In fact it does not work and I can't figure out why. I have tried to clear it recreate and position the button and relink it but no luck. I am only having this problem with this one button. I am stupmed any help would be greatly appreciated.
    Thank You
    Lauri

    Yes I did look for another button. Anyway I looked in the flow chart and saw it was not linked so I link it and now it seems to work, This is my very first project in Encore so it is a big learning process. I am going to burn this to disc now and see how everything goes. Quick question for you if you don't mind. Do I need to render the project everytime before I create a dvd or will the settings stay as long as I don't alter the project?
    Thanks again for your help I very much appreciate it!
    Lauri

  • Automated csv Export from a specific Tab in a Excel Workbook

    Hi,
    i would like to export a specific tab from an excel workbook on a application server in csv format - how can i do this?
    Query Extractor doesn´t - about OpenHub i am not shure.
    thx in advance!
    cu
    Dominik

    Hi,
    I think Tcode RSCRM_BAPI can help you to save in CSV format in application server from ur query.make sure you dont have any free characteristics in ur query.give it a try and lets know.If you are looking for procedure Goto TCode RSCRM_BAPI and select ur query or query view and on the toolbar select Extract and in the next screen give some tech name and select .CSV format give the file path in ur application directory and dont forget to schedule the selction.Then you would be able to see ur report in .CSv format in ur app server.
    Regards
    Chandru

  • Call java method from button in UIX page

    Greetings,
    I want to call a java method from a button on a uix page.
    Does it have to be a submit button or it maybe a simple button.
    If it was from a JSP page, it would be a much more different process ?
    This method should delete a row from another view (View2).
    delete from tableB ta where ta.field1 = &1
    My question is how do I build the method to delete a row and how do I invoke the method using the button ?
    Thanks

    This sounds like a JDeveloper/ADF issue that is not related to JHeadstart. Can you please log a TAR at MetaLink ( http://metalink.oracle.com/ ), or ask this question at the JDeveloper forum at http://otn.oracle.com/discussionforums/jdev.html ?
    Thanks,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • DNG files exported from LR4 not showing changes made when opened in PSE10?

    I have LR4, and once I make some develop changes I've been exporting the files I want to use as DNG.  I then open them in PSE10 to make final edits.  It's been working fine, actually I had an older version of Adobe Raw in my PSE on my other computer.  So when I opened in PSE it would ask if I wanted to conver to compatible version to edit in camera raw.  I always said no b/c I didn't need to do anymore raw edits.  Now that I have installed PSE on my new computer, it has the new ACR version I guess.  When I open the DNGs to edit now I no longer get this error message, but it's showing my contrast, etc. as a standard raw setting instead of the changes I made in LR.  Some are showing....like vibrance, but "recovery" which I know is "highlights" in LR, and other things are not showing correctly.  I know that the options are different, but I don't want to use the ACR settings that it's using when I open the file, or have to go through them again.  I'm sure there's something I'm missing but can't figure it out.  Thanks for any help!

    I quite simply did not comment on the issue of "it is supposed to be better to keep DNG files as opposed to NEF files now, right?"
    The issue you raised in your original post, and the issue of choosing DNG versus NEF, are completely separate and independent.
    The issue of transferring photos to PSE would cause the exact same problems in your case whether or not you use DNG or NEF.
    On the issue of converting photos from NEF to DNG, there are advantages and disadvantages, some people do and some people don't. If you'd like to know more, I suggest you search this forum, there are plenty of discussions on this topic.

  • CSV export from SSRS gives an extra header

    I have an SSRS report which I am exporting to CSV. The report doesn't have a header and it is perfect when I run and it. But, when I export it to CSV, it gives me the names of the textboxes as the header. I tried setting 'DataElementOutput' property to 'NO
    Output'. I also tried changing the rsReportServer config file for no header. None of these worked. Can somebody help me fix this.
    Thanks in advance.

    Hi Bindu,
    By design, SQL Server Reporting Services render a report to CSV format with text boxes' name in detail section as columns' name, not the table header when you view the table. So if we want to hide the header row of the tablix in CSV format, please double
    check the steps below to enable the “NoHeader” setting in the RSReportserver.config file:
    Please navigate to RSReportserver.config file: <drive:>\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer \RSReportserver.config.
    Backup the RSReportserver.config file before we modify it, open the RSReportserver.config file with Notepad format.
    In the <Render> section, add the new code for the CSV extension like this:
    < Extension Name="CSV"   Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering">
    <Configuration>
    <DeviceInfo>
    <NoHeader>True</NoHeader>
    </DeviceInfo>
    </Configuration>
    < /Extension>
    Save the RSReportserver.config file.
    Besides, If we could build the URL for when user want to export without header, try adding NOHEADER=true in the URL.
    For more information about CSV Device Information Settings, please see:
    http://msdn.microsoft.com/en-us/library/ms155365.aspx
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • CSV export from SSRS gives a line break if there are two tables

    I have a report with two tables. There is no gap between in the reports. The report looks good when I run it, but when I export the report to CSV, there is an extra line between the two tables. Can somebody help me fix this issue.
    Thanks in advance.
     

    Hi Bindu,
    If I understand correctly, you have two tables in the report. When you export to CSV, it has an extra blank line between these two tables. I have create a simple report in my test environment, I can reproduce the same issue.
    Based on your description, you want to splice these two tables with no gap in the report. I order to meet your requirement, we can use subreport to work around the issue. We can insert two aubreports in one table. Then, display these two tables in these
    two subreports.
    Reference: Subreports
    Alternatively, we can display these data in one table to work around the issue. If possible, you can post your sample data, we can to do further analysis. If these columns is from two datasets, please check if there has same fields. If so, we can use
    Lookup function to display two datasets data in one tablix.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

Maybe you are looking for

  • ORA-6550: CALL TO WPG_SESSION API FAILED.

    Oracle Portal Release 2. 1) Logged into the Portal using orcladmin. 2) Created new schema called CMMS (had to use DEFAULT profile, ODSPSWDPROFILE would not allow schema to be created). 3) Created new user called CMMS through the ADMINISTER tab of por

  • Deleting photos in iPhoto 09 and also hard drive

    Hi, I have got an issue with iPhoto 09, and cant find anyway around it! I import photos into iPhoto only referencing to my original files on my mac hard drive (i.e. un-ticked copy to iphoto library); but when I move them to iphoto trash, and then emp

  • ILife for the classroom

    Hi all, I'm not real sure which discussion area to post this in, so iMovie is the lucky winner I'm a 4th grade teacher with hopes of using iLife in the classroom. I'm also a musician. What I am NOT is a fluent tech person. I'd like to purchase a camc

  • Problems printing from other programs after printing using Word automation

    I have an application that uses ActiveX to build a Word document. My print VI is attached. The problem that users are reporting is that after printing a report with my application, they can't print from any other programs until they restart their com

  • How to convert an XML file (input data) into a SOAP message?

    Hi there, I recently wrote a dummy program to retrieve data from a web service. The program simply read from an input file (the xml content) and send it to the web service, the return result is store in a file (xml). I wish to 'upgrade' this approach