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.

Similar Messages

  • Running SCOM ACS in multiple customer environments from the same SCOM management group ?

    We are currently monitoring multiple customer environments from the one SCOM management group and are looking at possibilities of using ACS for auditing. 
    Is this technically possible ?  Does the ACS collector service need to sit on the customer side ?  could it be installed on the same server acting as the SCOM gateway server ?

    Hi,
    The number of ACS forwarders that can be supported by a single ACS collector and ACS database can vary, depending on many factors, such as the number of events that your audit policy generates, the role of the computers that the ACS forwarders monitor.
    If your environment contains too many ACS forwarders for a single ACS collector, you can install more than one ACS collector. Each ACS collector must have its own ACS database.
    An ACS Collector must be installed on computers running Operations Manager management server and for security reasons, it must also be a member of an Active Directory domain.
    More details please refer to the article below:
    http://technet.microsoft.com/en-us/library/hh212908.aspx
    Regards,
    Yan Li
    Regards, Yan Li

  • How I download a MP4 series of videolectures (that the seller has stored in Amazon S3 and has sent to my iPad email address--which is different from the one I use from the MacBookPro) from my iPad to my MacBookPro-.

    How I download a MP4 series of videolectures (that the seller has stored in Amazon S3 and has sent to my iPad email address--which is different from the one I use from the MacBookPro) from my iPad to my MacBookPro (so that I can the save them in iTunes and then synchronize some of the videolectures to the iPad?)

    To set it up as POP you need to delete the account, reboot the phone by holding the HOME and SLEEP buttons at the same time until an Apple logo appears (about 10 seconds), then add it back following these instructions: Forcing creation of a POP or IMAP email account
    I understand that you have used the same account for many years, but the technology is also changing constantly. Years ago the standard was POP (Post Office Protocol), which was designed at a time when it was inconceivable that anyone would access their email from more than one device. When people started using multiple devices, for the most part they wanted to see changes on one device mirrored on another. A new standard, IMAP (Internet Mail Access Protocol) was developed. With iMAP the master copy of all messages resides on a server, and multiple devices are kept in sync with the server. So if you delete a message from one device it is removed from the server, and then removed from all other devices when they next sync. This is the same way Microsoft Exchange works. Other benefits of IMAP include the ability to have multiple mail folders that are kept in sync across devices. In your case you could use this to create a separate folder for each family member, so they could move messages to their own folder and not clutter up the shared Inbox. Most computer mail readers can even automatically sort incoming mail into folders based on the contents of the message.
    IMAP is considered a "higher level" standard than POP. When you create a mail account iOS devices query the server and ask what it supports; if it says it supports IMAP then the account is automatically configured for IMAP. So if you really want POP you must fool it, as described in the link above. In my experience Android devices default to the highest level protocol also, and I suspect newer Blackberries do (although it has been 15 years since I used a BB).

  • Why can I copy music to my iPad or iPod touch from multiple computers but from only one computer using my iPhone?

    Why can I copy music to my iPad or iPod touch from multiple computers but from only one computer using my iPhone?
    IPads and iPod Touches don't seem to have the same media copying restriction that my iPhone has. My main computer is at home. I have music at home and at work and sometimes I like to add it to my iPhone from work. I can do this no problem using my iPad or my iPod touch, but when it comes to my iPhone, I can only copy music to it from my main computer.
    Why would the iPhone have this restriction but not the other two devices?
    ps. Where's my "add currently playing song to playlist" button? I can't even find a third-party music app with this feature.

    Because...!
    I've no idea why either.
    Although it isn't normally possible to sync an iPod/iPad/iPhone with two computers (or manually manage an iPhone from more than one) it can be achieved if all computers have copies of the self same library. See Re: how do i sync on a second laptop without the data on my iPhone 5 being erased?
    tt2

  • We have 3 iPads 3 iPhones 3 Apple id's.  We want to use 1 calendar we can all access on each device and have each device update or sync and we all receive notifications from the one calendar. We do not want to share photos contacts, ect.  Please help

    We have 3 Apple Id's, each ID using an iPad and an iPhone (3 id's, 3 iPads, 3 iPhones). We want to use one calendar on all 6 devices and have that one calendar update or sync to all devices.  We would like all 6 devices to provide notifcations from the one unique calendar as well.  We do not want to share contacts, photos, ect.  Please suggest how to achieve this, with the name of the calendar, if I am to get one from the App store, and how to set this up.  Please talk in easy terms as I am technically Challenged. Thank you.  3 iPad air 2, 2 iPhone 6 plus, 1 iPhone 4s.

    Hello there MizzouTrojan,
    If I understand correctly you want all 6 devices to have access to a single calendar that each device gets notifications for and can edit. You can do that with an private iCloud shared calendar. First sign into www.icloud.com and use these steps from the following article to share a calendar:
    iCloud: Share a calendar with others
    Share a calendar privately
    Click the Share button to the right of the calendar name in the sidebar, then select Private Calendar.
    Note:    You can also share the same calendar publicly. For instructions, see the next task, “Share a calendar publicly.” 
    Type the invitee’s email address in the Add Person field and press Return.
    Click the pop-up menu with the invitee’s name and choose access privileges (View & Edit or View Only). 
    For each person you want to share the calendar with, repeat steps 2 and 3.
    When you’ve invited everyone and set their privileges, click OK.
    Invitation emails are sent from your iCloud email address to the participants you specified.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • How do i get my podcasts to go from the one i just finished to the next one and how do i sort them from oldest to newest?

    how do i get my podcasts to go from the one i just finished to the next one withouth me having to click on it, and how do i sort them from oldest to newest?

    Not sure if you tried this, but did you hold down both the sleep and home button for 10 seconds? 

  • Why is the library on my phone different from the one on my computer (I have iTunes Match)

    Why is the library on my phone different from the one on my computer? (I have iTunes Match) I just want the song off my computer to be the songs I have on my phone.

    Hey there Sparkly3gs,
    It sounds like your camera is not rotating as expected in the camera app. I want to recommend starting by quitting the running apps on the phone.
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that restart the phone:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If the issue persists, I would next backup your device to iTunes, and restore it:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    I would suggest before restoring from your backup setup the device as new and make sure the camera functions as expected. Then restore from your backup and verify it still works.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • Is it possible to delete multiple e-mails from the inbox in the Mail app? If so, how do you do it?

    Is it possible to delete multiple e-mails from the inbox in the Mail app? If so, how do you do it?

    Yes, it is possible. When you are in the relevant inbox, tap the 'edit' button on right hand top corner. now select the mails you want to delete by tapping in the small circle next to the mail. keep selecting and in the end tap the red delete button that will show you how many are being deleted

  • HT204053 how do i change my icloud email address from the one i already have input?

    how do i change my icloud email address from the one i already have input?

    Hi sparkie,
    You cannot change your iCloud email address. It is an @me.com address, and is associated specifically with that iCloud account. If you want a different @me address assigned, you have to delete the current iCloud account and set up a new one.
    Here is a link with all the support information for iCloud:
    http://www.apple.com/support/icloud/
    Hope this helps!
    Cheers,
    GB

  • HT4101 How can pictures be exported from the ipad to a computer or sd card?

    How can pictures be exported from the ipad to a computer or sd card?

    Importing personal photos and videos from your iOS device to your computer. - http://support.apple.com/kb/HT4083 - other useful information at https://discussions.apple.com/message/20302567

  • HT5622 The apple ID on my phone is different from the one on ICloud.  How can I change my ICloud ID??  I don't remember the password and it keeps asking for it!!!!!

    The apple ID on my phone is differnt from the one on ICloud.  I have gotten married and changed my ID for Apple.  My ICloud ID is correct in my PC but my phone is incorrect.  I don't remember the password for the ID for ICloud.  How do I change the ID???

    Welcome to the Apple Community.
    Did you create a totally new ID or just change your old one.

  • Can anybody help me in finding the reasons why the time of email received are different from the one on my macbook which time is correct

    Hi
    Can anyone help me in finding the reason why the date on e=mail reced is different from the one on my MacBook eventhough it is correct
    Thanks

    Try this...
    Triple click anywhere in the line below to select it and press Ctrl+C to copy it.
    cmd /k netsh winsock reset
    Press the WinLogoKey+R to open the run dialog, then Ctrl+V to paste, then press enter/return.
    You should get something similar to this:
    Reboot the computer and the problem should be resolved.
    If it doesn't work then perhaps a full tear down and rebuild of iTunes will fix things. See Troubleshooting issues with iTunes for Windows updates for details.
    tt2

  • Ipod plays a different file (audiobook) from the one selected.

    I have a mystery. let me start by saying i have done all the standard stuff all the way up to wiping and reinstalling the ipod.
    I have about 8 audio books (short stories for the kids to listen to) and when I select one to play it always plays a different audio book from the one I select. it happens to all the audio books. It never happens to music and never happens when I play the file through a different directory than the audio book directory (i.e. go to the artist's listing and select the author's name).
    So weird - I can work around it but would love a solution so the kids can pick books to listen to themselves.
    any ideas?

    Yes...but do I do that in the TableModelListener ?
    This is what I've tried in the TableModelListener:
    public void tableChanged(TableModelEvent e)
             System.out.println(e.getSource());
               if(e.getType() == TableModelEvent.UPDATE)
                    TableModel model = stdTablewCombo.getModel();
                    int row = e.getFirstRow();
                    this.cellValue = ((String)model.getValueAt(row, 0));
                    if (cellValue != null)
                         this.selectedIndex = this.stdComboBox.getSelectedIndex();
                          System.out.println("Selected Index:" + this.selectedIndex);
                          if (this.selectedIndex >= 0)
                             String valueToSet = this.lovStringB[this.selectedIndex];
                             model.setValueAt(valueToSet, row, 0);
                          else
                               System.out.println("Value in cell is not from List");
                          }It returns the selectedIndex value allright.
    It sets the value of valueToSet string allright.
    it also does the model.setValueAt allright....but this triggers a tableChanged event and it goes back up - this is also fine. However, when it now comes back to the this.selectedIndex = , this again returns the index of the original selection and not a -1 (for values not in the ComboBox list). This makes it go into an infinite loop and gives me a StackOverflowError.
    Edited by: 799076 on Oct 10, 2010 9:41 AM
    Edited by: 799076 on Oct 10, 2010 9:49 AM

  • I changed my apple id from the one I used to originally sign up to iCloud and now cannot login to iCloud - do I need to change it back to access iCloud?

    I changed my apple id from the one I used to originally sign up to iCloud and now cannot login to iCloud - do I need to change it back to the original apple id in order to access iCloud?

    Gosh, this is full of great information and I need something a little bit deeper - and because I'm not a techy - can I explain...Apple ID changed a year ago from a work email to a personal email.  No longer have access to original email..... New email and Apple ID worked flawlessly until today - every 3 seconds Sign in to iCloud pops up.. with the old work email.  I enter the password - which is the same... and it says invalid. 
    I tried to delete the icloud, but you need the password and it says "find my phone" is on... i turn it off,  and it's the old email... and the password again doesn't work, of course. 
    I am left stratching my head... I sync my phone and my correct, up to date email is in the Apple ID sections...
    What am I doing wrong.. talk slow to me please, lol.

  • How do I get to the screen in Mail that allows you to delete multiple "Previous Recipients"  from the list? I have seen it but cannot find it again. Help.

    How do I get to the screen in Mail that allows you to delete multiple "Previous Recipients"  from the list? I have seen this screen but cannot find it again. It shows all of the "Previous Recipients" in a long list. You can edit the list by selecting multiple names or all names with the command key and delete. Help.

    Launch the Mail app on your Mac and go to Window>Previous Recipients.

Maybe you are looking for