Create three textfiles with one button click

Hello,
how is it possible to create three textfiles after a button click. I create a textfile with the following code in a page process:
owa_util.mime_header( 'application/octet', FALSE );
htp.p('Content-Disposition: attachment; filename="Client_' || to_char(sysdate,'YYYYYMMDD HH24MI') || '.LAS"');
owa_util.http_header_close;
htp.prn('test');
htmldb_application.g_unrecoverable_error := true;
For the first textfile a savedialog to save the file appears in the browser. But there is no dialog for the second and third file.
How is it possible to get the savedialog for the second and third file?
Does anyone can help?
Best regards,
Hamburger

I solved it with javascript:
window.open("f?p=1:2","_blank");
window.open("f?p=1:3","_blank");
window.open("f?p=1:4","_blank");
and three onload processes on every site!
Greets

Similar Messages

  • Open mutiple PDF report outputs with one button click

    I need to open multiple PDF outputs depending on check boxes on the front end (Asp.net C#) app connecting to Crystal report server XI. Here is my code. I'm able to open only one PDF not multiple. If I use Response.end() at the end except first nothing is displayed. If I remove response.end() it opens Adobe and displays error msg saying file is corrupted. Please let me know if there is any other way to display multiple PDF outputs
    SessionMgr sessionMgr = new SessionMgr();
            EnterpriseSession enterpriseSession;
            ReportAppFactory reportAppFactory;
            ReportClientDocument reportClientDocument;
            EnterpriseService enterpriseService;
            InfoStore infoStore;
            InfoObjects infoObjects;
            InfoObject infoObject;
            String crServerName = ConfigurationManager.AppSettings.Get("CRServerName");
            String crUserID = ConfigurationManager.AppSettings.Get("CRUserID");
            String crPwd = ConfigurationManager.AppSettings.Get("CRPwd");
            String dbUserID = ConfigurationManager.AppSettings.Get("DBUserID");
            String dbPwd = ConfigurationManager.AppSettings.Get("DBPwd");
            enterpriseSession = sessionMgr.Logon(crUserID, crPwd, crServerName, "secEnterprise");
            enterpriseService = enterpriseSession.GetService("InfoStore");
            infoStore = new InfoStore(enterpriseService);
            infoObjects = infoStore.Query("Select SI_ID From CI_INFOOBJECTS Where SI_NAME='" + reportName + "' And SI_INSTANCE=0");
            infoObject = infoObjects[1];
            EnterpriseService tempService = enterpriseSession.GetService("", "RASReportFactory");
            reportAppFactory = (ReportAppFactory)tempService.Interface;
            reportClientDocument = reportAppFactory.OpenDocument(infoObject.ID, 0);
            // Pass datbase logon credentials
            reportClientDocument.DatabaseController.logon(dbUserID, dbPwd);
    reportClientDocument.DataDefController.ParameterFieldController.SetCurrentValues("", "ProjectID", ddlProjects.SelectedValue);
            PrintOutputController rasPrintOutputController;
               CrReportExportFormatEnum rasReportExportFormat = CrReportExportFormatEnum.crReportExportFormatPDF;
                           rasPrintOutputController = doc.PrintOutputController;
                ByteArray tempByteArray = rasPrintOutputController.Export(rasReportExportFormat, 0);
                Byte[] byteStreamOutput = tempByteArray.ByteArray;
                Response.AddHeader("content-disposition", "attachment;filename=" + reportName + ".pdf");
               Response.ContentType = "application/pdf";
                Response.BinaryWrite(byteStreamOutput);
    Response.end();

    Hello, Anu;
    Business Objects will create one PDF from one report. Once the report object has been formatted as a PDF it is no longer handled by Business Objects but uses the functionality of Adobe.
    If they were being saved as .pdf files, would there be a way to open more than one at a time?
    Elaine

  • Create multiple folders with one click on documents tab in BP in SAP CRM

    Hi Experts,
    I have a requirement to create multiple folders by clicking on a button in Documents tab in BP transaction in CRM. In standard process by clicking on create folder button we create folders. we want to create multiple folders with one single click ( i guess we can develop another button for that) folder name will be hard coded. Kindly let me know , how this can be achieved.

    Hi Experts,
    I have a requirement to create multiple folders by clicking on a button in Documents tab in BP transaction in CRM. In standard process by clicking on create folder button we create folders. we want to create multiple folders with one single click ( i guess we can develop another button for that) folder name will be hard coded. Kindly let me know , how this can be achieved.

  • Can we perform two actions with one button with two clicks one after other?

    Sir,
    can we perform two actions with one button with two clicks one after other?
    I want that when I click an Add Button first time it add data to the database and when I click again this button it clear the form data to empty fields.
    Regards
    Tanvir

    In code it should be easy.
    The following code adds a button called butman with a text "ADD".
    It then registers a listener that will be called if the button is clicked.
    This listener then calls the runAddData method if you clicked on butman while it contained the "ADD" text and it will call the runClearData method otherwise.
    Therefore it will swap the button's functionality between ADD and CLEAR on every click.
    final Button butman = new Button("ADD");
    butman.setOnAction(new EventHandler<ActionEvent>() {
              @Override
              public void handle(ActionEvent t) {
                        if (butman.getText().equals("ADD")) {
                                  butman.setText("CLEAR");
                                  runAddData();
                        } else {
                                  butman.setText("ADD");
                                  runClearData();
                        } // END IF-THEN
              }});I hope this is what you wanted.
    Some extra food for thought.
    You might want to run the ADD and CLEAR methods in their own threads so that it can run in the back ground, without slowing down your user interface.
    I also like to rather reuse one button for multiple functionality in stead of making an application with hundreds of nodes only used rarely with masses of code to show and hide them if needed.

  • Creating tables with a button click

    can anyone give me a sample code for creating multiple tables in a scrollpane
    with a button click.
    Thanks

    Here is an example that returns a JTable in a JScrollPane in a JInternalFrame:
    import java.awt.*;
    import javax.swing.JFrame;
    import javax.swing.JInternalFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import java.awt.GridLayout;
    public class TablaJ extends JPanel{
         public TablaJ(){
         public TablaJ(String data[][], String columnNames[]){
             super(new GridLayout(1,0));
             final JTable table = new JTable(data, columnNames);
            //Create the scroll pane and add the table to it.
            JScrollPane scrollPane = new JScrollPane(table);
            //Add the scroll pane to this panel.
            add(scrollPane);
        static JInternalFrame crearFrameConTabla(String data[][], String columnNames[], String tabla) {
            //Create and set up the window.
            JInternalFrame frame = new JInternalFrame(tabla,true,true,true,true);
            frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
            //Create and set up the content pane.
            TablaJ newContentPane = new TablaJ(data, columnNames);
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            frame.pack();
            return frame;
    }

  • There is any aupdate for macbook air 13" mid 2009 trackpad {with one long click button down}  to help trackpad working fine with loin mac os x 10.7.1

    there is any aupdate for macbook air 13" mid 2009 trackpad {with one long click button down}
    to help trackpad working fine with loin mac os x 10.7.1

    mohammedfromad dammam wrote:
    there is any aupdate for macbook air 13" mid 2009 trackpad {with one long click button down}
    to help trackpad working fine with loin mac os x 10.7.1
    Not at this time. It would also be great to have an adjustment for sensitivity too.

  • How to create a dimension with one level

    I created a cube with some dimensions, that have only a level, and this kind of dimensions bring me some problems when I want to use "OracleBI Spreadsheet Add-In" to consult the cube.
    The problem is that I can’t create a hierarchy with only a level, so the dimensions are created without a hierarchy.
    When I make a query in the “Query Builder” of "OracleBI Spreadsheet Add-In", I have some problems in the step of choosing what levels I want to select for a determined dimension, if that dimension is a dimension without a hierarchy.
    What really happens is that, I can see all the values for the level in the left box, but I don’t achieve to put one of these values on the right box. I can click in the next button, to jump to the next dimension, and all the process of selection for the other dimensions occurs without problems, except for the dimensions that haven’t a hierarchy.
    If I select only dimensions that have a hierarchy, all works perfectly, but if I select one or more dimensions that don’t have a hierarchy, the following problems occur:
    => I can’t select the values of the level that I want to see (only for dimensions that don’t have a hierarchy)
    => When I click in “end” button of the “Query Builder”, it doesn’t finish and blocks.
    The solution is to create a hierarchy, but I can’t create a hierarchy with only a level. Is it possible to create a “top level” without a source column in the dimension table? So I will have two levels, and with these two levels I can create a hierarchy that resolves the problem.
    What is the solution for this problem?
    Regards,
    Rui Torres

    How I can resolve my problem?
    I don’t want to use the CWM2 PL/SQL packages, because with these packages I only can create MOLAP cubes.
    I only want to create ROLAP cubes, but I can't create a hierarchy with one level.
    Why the "OracleBI Spreadsheet Add-In" doesn’t work with dimensions, that not have hierarchies?
    How I can resolve this BIG problem?
    It is very URGENT!!!!
    Regards,
    Rui Torres

  • Export two TXT files with one button

    Hi,
    I'm using Application Express 2.0, i'm developing aplication in which users import few different excel spreadsheets and after that they export date in specified TXT format.
    I'w like to create functionality to export two and more files in CSV (TXT) format with one button and one click only in defined folder. It's necessary to simplify work of my endusers becose they have to generate ten or more files.
    Is it possible create functionality which generate files in defined folder without any addtional user's action?
    Best,
    Kiril

    Create a procedure to output the files, use the oracle directory object to define your output path.
    create or replace directory wayne as '/csv';
    use google or metalink to get examples. This way you can output as many files as you want, my personal opinion would be to create a dynamic report your users could run on demand.

  • How to insert into 2 tables from the same page (with one button  link)

    Hi,
    I have the following 2 tables....
    Employees
    emp_id number not null
    name varchar2(30) not null
    email varchar2(50)
    hire_date date
    dept_id number
    PK = emp_id
    FK = dept_id
    Notes
    note_id number not null
    added_on date not null
    added_by varchar2(30) not null
    note varchar2(4000)
    emp_id number not null
    PK = note_id
    FK = emp_id
    I want to do an insert into both tables via the application and also via the same page (with one button link). I have made a form to add an employee with an add button - adding an employee is no problem.
    Now, on the same page, I have added a html text area in another region, where the user can write a note. But how do I get the note to insert into the Notes table when the user clicks the add button?
    In other words, when the user clicks 'add', the employee information should be inserted into the Employees table and the note should be inserted into the Notes table.
    How do I go about doing this?
    Thanks.

    Hi,
    These are my After Submit Processes...
    After Submit
    30     Process Row of NOTES     Automatic Row Processing (DML)     Unconditional
    30     Process Row of EMPLOYEES     Automatic Row Processing (DML)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    50     Insert into Tables     PL/SQL anonymous block     Conditional
    My pl/sql code is the same as posted earlier.
    Upon inserting data into the forms and clicking the add button, I get this error...
    ORA-06550: line 1, column 102: PL/SQL: ORA-00904: "NOTES": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
         Error      Unable to process row of table EMPLOYEES.
    Is there something wrong with the pl/sql code or is it something else?

  • How can i creat several rectangles with one draw rect.vi

    how can i creat several rectangles with one draw rect.vi? thanks
    Solved!
    Go to Solution.

    You can call it in a for loop, with an array of the rectangle coordinates you want to draw. Is this what you mean?
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    rectangle.png ‏11 KB

  • Pop up with one button

    Hi experts,
    Does anyone happen to now any pop up window with one button(OK button)?
    Regards,
    Marc

    Hi,
    This Function Module contains only OK button.
    POPUP_TO_INFORM
    Hope this will help.
    Regards,
    Swarna Munukoti.

  • How to create editable table with one empty row ?

    I'm looking for solution how to create editable table with one empty row using ADF BC. I have seen this solution in application that was created in JHeadstart and it's very well idea to use it insead of creation form.

    hammm, i do it this:
    drop the VO on the page, select Table->ADF Table....
    so, drop the botton create, from de VO->operations->create (the firts), and right botton (mouse) Edit binding....
    in Data collection select the VO, in Select an action select CreateInsert
    luck

  • How do I create multiple TEBs with one submit button on one page in Captivate 7

    I've read other posts on this topic (which refer primarily to earlier versions of Captivate) and am still at a loss as to how to put multiple text entry boxes on a page with one submit button. Here's my scenario:
    I am creating test questions.
    Each test question has multiple text entry boxes (for numbers only).
    Student should be able to enter numbers into the textboxes in any order.
    Then there is one Submit button that should initiate validating all the text entries, and move to a scoring page (so I can test it). (What would be best is if this button not only did the above, but also submitted scores to the LMS.  But that is not my question at this time.)
    I'd like this question to be set up as a template so that I can duplicate it, be able to add or delete text boxes and change the values required in the text boxes.  
    Here is an image of a sample question page with multiple TEBs. The yellow boxes tell the student where they need to enter text:
    Any help or direction to help is appreciated!!

    I think the problem here is that Arlhoolie wants all of the different TEBs to behave as if they were part of a single interaction that submits only ONE result to the quiz.  Using multiple TEBs in Captivate means that you have multiple scored objects and therefore multiple results being submitted to the quiz.
    If you want a single Success or Failure result submitted to the quiz based on the results from multiple interactive objects then there really is no simple way to do it.  But you could try using the Infosemantics Interactive Master widget to combine all the TEBs as slave objects that report to the Master Widget, which then reports a single score to the quiz based on the results from the slave objects.
    You can learn more about the Master widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/interactive-master
    http://www.infosemantics.com.au/interactivemaster/help
    You can download a free trial version of the widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets
    One caveat you should be aware of is that this widget is not HTML5 compatible.

  • Create multiple delivery with one invoice

    Hi all,
    can you tell me how to do multiple delivery with one invoice,
    i tried in vf01 by giving their my 3 delivery nos but it is generating three invoices
    pls explain this in details
    points will be rewarded
    regards,
    smmmmmm

    Dear Sameer
    As per your requirement run the Tcode VF04 (Billing Due list) and select the Delivery Documents for which you want to to have single Billing Document by clicking on Collective Billing document/Online  Push Button in that screen.
    To Have Single Billing Document for Multiple Delivery you need to have Payer,Terms of Payment,Incoterms(part 1 and part2) same for all materials orelse the billing document will split and this split analysis is visible during creating of Billing document.
    Hope this will help you in solving your problem.
    Regards
    PSH

  • Help with dynamic button click inside titleWindow

    Hi Everyone, Your Help is much appreciated
    I am building a flex application and I want the user to click
    on a button and send them to another website. Basically I am
    creating a tileList that holds thumbnails (created using item
    renederer) and on click a popup with the same image and button will
    be created. I get errors when I click the link button. This is what
    I have so far:
    // This is my custom item renderer
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    horizontalAlign="center"
    verticalAlign="middle">
    <mx:Image source="{data.@thumbnailImage}" />
    <mx:Label text="{data.@title}" />
    </mx:VBox>
    // My TileList
    <mx:TileList id="tileList"
    dataProvider="{xmlListCollection}"
    itemRenderer="CustomItemRenderer"
    maxColumns="4"
    columnWidth="140"
    rowCount="2"
    rowHeight="140"
    verticalScrollPolicy="off"
    horizontalScrollPolicy="off"
    itemClick="tileList_itemClick(event);" />
    // This is my code
    private function tileList_itemClick(evt:ListEvent):void {
    // Set the TitleWindow
    myTitleWindow = new TitleWindow();
    myTitleWindow.title = evt.itemRenderer.data.@title;
    myTitleWindow.width = 350;
    myTitleWindow.height = 600;
    myTitleWindow.showCloseButton = true;
    // Set the Image
    img = new Image();
    img.maintainAspectRatio = true;
    img.buttonMode = true;
    img.useHandCursor = true;
    img.source = evt.itemRenderer.data.@fullImage;
    img.addEventListener(MouseEvent.CLICK , image_click);
    //Set the Label
    myLabel = new Label();
    myLabel.text = evt.itemRenderer.data.@title;
    myLabel.setStyle("fontWeight","bold");
    // Here I set the Button but its not functioning
    var btn:Button = new Button();
    btn.label = evt.itemRenderer.data.@link;
    btn.buttonMode = true;
    btn.addEventListener(MouseEvent.CLICK,clickHandler);
    myTitleWindow.addChild(img);
    myTitleWindow.addChild(myLabel);
    myTitleWindow.addChild(btn);
    PopUpManager.addPopUp(myTitleWindow, this, true);
    PopUpManager.centerPopUp(myTitleWindow);
    // This is the Part I can't get it to work
    private function clickHandler(e:MouseEvent):void{
    var url:String = "
    http://" + data.@link;
    var myRequest:URLRequest = new URLRequest(url);
    navigateToURL(myRequest,'_blank');
    My xml looks like this
    <gallery>
    <image title="Image One"
    thumbnailImage="assets/big.jpg"
    fullImage="assets/small.jpg"
    link="www.google.com"
    description = "Search Google"/>
    </gallery>

    What error?
    Is your url being concatenated correctly? Trace it.
    Tracy

Maybe you are looking for