Bursting with multiple attachments?

hi all,
we have created a custom PO report. the report produces an xml data grouped by a vendor then by their POs. we want to use bursting but need to create separate report outputs per PO then will attach all POs to an email then send it to its corresponding Vendor.
is this possible in BI Publisher?
thanks
allen

I would like to have the following output:
File 1 - Store 2 - Query A + Store 2 - Query B
File 2 - Store 4 - Query A + Store 4 - Query B
File 3 - Store 5 - Query A + Store 5 - Query B
the bursting level should be give at
File 1 - Store 2 - Query A + Store 2 - Query B
so the tag in the xml has to be split by common to these three rows.
since the data is coming from the diff query, and the data is not going to be under single tag.
you cannot burst it using concatenated data source.
But you can do it, using the datatemplate, and link the query and get the data for each file under a single query,
select distinct store_name from all-stores
select * from query1 where store name = :store_name === 1st query
select * from query2 where store name = :store_name === 2nd query
define the datastructure the way you wanted,
the xml will contain something like this
<stores>
<store> </store> - for store 2
<store> </store> - for store 3
<store> </store> - for store 4
<store> </store> - for store 5
<stores>
now you can burst it at store level.

Similar Messages

  • Sending mail with multiple attachments

    hi.I wrote a code to send mail.but i need to send mail with multiple attachments.here is the code i wrote.what should i do to send the mail with multiple attachments.if i run this code iam able to send mails but not attachments.please help me
    <%@ page import="javax.mail.*,javax.mail.internet.*,java.util.Date,java.io.*,java.net.InetAddress,java.sql.*,java.util.Properties,java.net.*,javax.sql.*,javax.activation.*,java.util.*,java.text.*" %>
    <%@ page import="java.io.*,java.sql.*,java.net.*,java.util.*,java.text.*" %>
    <%
         String Attachfiles1="";
         String Attachfiles2="";
    String Attachfiles3="";
    if("Send".equalsIgnoreCase("send"))
              try
         String subject="",from="",url = null,to="";
         String mailhost = "our local host";
         Properties props = System.getProperties();
         String msg_txt="";
         String strStatus="";
    // byte[] bin=.....;
    //Adds Attechment:
    Multipart multipart = new MimeMultipart();
    BodyPart messageBodyPart = new MimeBodyPart();
    messageBodyPart.setText("Here are my attachments");
    multipart.addBodyPart(messageBodyPart);
    messageBodyPart = new MimeBodyPart();
    //first attachment
    DataSource source = new FileDataSource("C:\\img1.jpg");
    messageBodyPart.setDataHandler(new DataHandler(source));
    messageBodyPart.setFileName("C:\\Telnor1.jpg");
    multipart.addBodyPart(messageBodyPart);
    //Second attachment
    DataSource source2 = new FileDataSource("C:\\img2.jpg");
    messageBodyPart.setDataHandler(new DataHandler(source2));
    messageBodyPart.setFileName("C:\\Telnor2.jpg");
    multipart.addBodyPart(messageBodyPart);
    //etc...
    message.setContent(multipart);
    Transport.send( message );
    String mailer = "MyMailerProgram";
    to=request.getParameter("to");
    from=request.getParameter("from");
    subject=request.getParameter("subject");
    msg_txt=request.getParameter("message");
    props.put("mail.smtp.host", mailhost);
    Session mailsession = Session.getDefaultInstance(props, null);
    Message message = new MimeMessage(mailsession);
    message.setFrom(new InternetAddress(from));
    message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to, false));
    message.setSubject(subject);
    message.setHeader("X-Mailer", mailer);
    message.setSentDate(new Date());
    message.setText(msg_txt);
    BodyPart messageBodyPart = new MimeBodyPart();
    BodyPart messageBodyPart2 = new MimeBodyPart();
    Multipart multipart = new MimeMultipart(); // to add many part to your messge
    messageBodyPart = new MimeBodyPart();
    javax.activation.DataSource source = new javax.activation.FileDataSource("path of the file");
    messageBodyPart.setDataHandler(new DataHandler(source));
    messageBodyPart.setFileName("file_name");
    messageBodyPart2.setText("message"); // set the txt message
    multipart.addBodyPart(messageBodyPart);
    multipart.addBodyPart(messageBodyPart2);
    Transport.send(message);
    out.println("Message Sent");
    catch (Exception e)
    e.printStackTrace();
    if("Attachfiles".equalsIgnoreCase("attachfiles"))
    Attachfiles1=request.getParameter("fieldname1");
    Attachfiles2=request.getParameter("fieldname2");
    Attachfiles3=request.getParameter("fieldname3");
    %>
    <html>
    <body>
    <div class="frame">
         <form action="Composemail.jsp" method="post">
              <b>SelectPosition:</b> <select name="cars" >
    <option value="ABAP">ABAP
    <option value="saab">Saab
    <option value="fiat">Fiat
    <option value="audi">Audi
    </select><br><br>
    <table border="1" cellpadding="2" cellspacing="2">
    <tr><th>Name</th>
    <th>EmailId</th>
    <th>ContactNumber</th>
    <th>Position</th>
    </tr>
    <tr>
    <td>
    </td>
    </tr>
    </table><br>
    <b>SelectUser :</b><select name="cars">
    <option value="Administrator">Administrator
    <option value="saab">Saab
    <option value="fiat">Fiat
    <option value="audi">Audi
    </select>
    <br>
    <b>To :</b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="to" size="72"><br>
    <b>From :</b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="text" name="from" size="72"><br>
    <b>Subject :</b>&nbsp&nbsp&nbsp<input type="text" name="subject" size="72"><br>
    <%=Attachfiles1%><br><%=Attachfiles2%><br><%=Attachfiles3%><br><br>
    <b>Message:</b><br>
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<textarea rows="10" cols="50" name="message">
    </textarea> <br><br>
    <b>AttachedFile:</b>&nbsp<input type="file" name="fieldname1" value="filename" size="50"><br><br>
    <b>AttachedFile:</b>&nbsp<input type="file" name="fieldname2" value="filename" size="50"><br><br>
    <b>AttachedFile:</b>&nbsp<input type="file" name="fieldname3" value="filename" size="50"><br><br>
    &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type="submit" name="attachfiles" value="Attachfiles">
    <center>
    <input type="submit" name="send" value="Send" >
    </center>
    </form>
    </div>
    </body>
    </html>

    Create a separate MimeBodyPart object for each attachment, rather than reusing
    the same one over and over.

  • Sending mail with multiple attachments in jsp

    hi .I wrote a code to send a mail in jsp.but now i need to send mails with multiple attachments.how can i send mail with multiple attachment.

    Create a separate MimeBodyPart object for each attachment, rather than reusing
    the same one over and over.

  • Sending email with multiple attachments

    Hi forum,
    I am able to send email with a single attachment using maildemo.sql from: http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html
    But now I am trying to send email with more than 1 attachment and it does not work. My code that calls the above mentioned package is as follows:
    <code>
    PROCEDURE send (
    psender VARCHAR2,
    precipients VARCHAR2,
    pcc VARCHAR2,
    pbcc VARCHAR2,
    psubject VARCHAR2,
    pmessage VARCHAR2,
    pnumattach NUMBER) -- The number of attachments that need to be sent
    IS
    p_blob BLOB;
    p_filename VARCHAR2(200);
    p_filetype VARCHAR2(200);
    p_currSeq NUMBER;
    conn utl_smtp.CONNECTION;
    i NUMBER;
    j NUMBER;
    len NUMBER;
    BEGIN
    IF pnumattach > 1
    THEN
    conn := SEND_EMAIL_HELPER.begin_mail(
              sender => psender,
              recipients => precipients,
              subject => psubject,
              mime_type => send_email_helper.MULTIPART_MIME_TYPE);
    j := 0;
    SELECT seq_attach_transact_id.CURRVAL INTO p_currSeq FROM dual; -- seq_attach_transact_id is a primary key that identifies every single attachment in the table
    WHILE (j < pnumattach) LOOP
    p_currSeq := p_currSeq - j;
    SELECT blob_content INTO p_blob FROM wwdoc_document WHERE transaction_id = p_currSeq;
    SELECT name INTO p_filename FROM wwdoc_document WHERE transaction_id = p_currSeq;
    SELECT mime_type INTO p_filetype FROM wwdoc_document WHERE transaction_id = p_currSeq;
    SEND_EMAIL_HELPER.begin_attachment(
    conn => conn,
    mime_type => p_filetype,
    inline => TRUE,
    filename => p_filename,
    transfer_enc => 'base64');
    -- split the Base64 encoded attachment into multiple lines
    i := 1;
    len := DBMS_LOB.getLength(p_blob);
    WHILE (i < len) LOOP
    IF(i + SEND_EMAIL_HELPER.MAX_BASE64_LINE_WIDTH < len)THEN
    UTL_SMTP.Write_Raw_Data (conn,
    UTL_ENCODE.Base64_Encode(
    DBMS_LOB.SUBSTR(p_blob, SEND_EMAIL_HELPER.MAX_BASE64_LINE_WIDTH, i)));
    ELSE
    UTL_SMTP.Write_Raw_Data (conn,
    UTL_ENCODE.Base64_Encode(
    DBMS_LOB.SUBSTR(p_blob, (len - i)+1, i)));
    END IF;
    UTL_SMTP.Write_Data(conn, UTL_TCP.CRLF);
    i := i + SEND_EMAIL_HELPER.MAX_BASE64_LINE_WIDTH;
    END LOOP;
    SEND_EMAIL_HELPER.end_attachment(conn => conn);
    END LOOP;
    SEND_EMAIL_HELPER.attach_text(
    conn => conn,
    data => pmessage,
    mime_type => 'text/html');
    SEND_EMAIL_HELPER.end_mail( conn => conn );
    ELSE
    utl_mail.send(psender,precipients,pcc,pbcc,psubject,pmessage);
    END IF;
    END send;
    </code>
    Can anyone please tell me where am i going wrong.
    Message was edited by:
    Monk

    The easiest is to send an e-mail with multiple attachments to yourself and then view the message in raw to see how it is formatted - how the boundaries work. what the boundary headers are, etc.
    Then you use that as a template for your PL/SQL code to generate a MIME body for an e-mail that has multiple attachments.
    To debug.. have your PL/SQL code send sample e-mails with multiple attachment to your account, view it in raw format and compare that to the original format you've based your template on.
    And none of this is really a PL/SQL issue.. it is all about formatting a valid MIME message for an e-mail.

  • Send email with multiple attachments using MS outlook

    Hi,
    Is it possible to send an email with multiple attachments using MS outlook. (Using activex)
    Regards,
    Neha

    nehrnul wrote:
    Hey thanks for the reply. I'll try that way also.
    but currently my requirement is to send email using MS Outlook. And I found 1 solution using invoke node
    Regards,
    Neha
    That' "requirement" sounds like it was written by someone who is trying to drive the design of the application.  Without knowing your personal situation it's hard for me to say, but if I had to guess I would say the real requirement is to send an email with multiple attachements, and the person giving that requirement thought sending it through Outlook would be the best way.  You should get clairification on what the real intend of that requirement is.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Issue with multiple attachments in email program

    Hi All,
    i need one program which sends 3 excel sheets as an atatchments. in these attachments data should be separated by tab. i am not able to find suitable program for the requirement anybody can send me the code .
    thanks,
    maheedhar

    hi,
    Refer to this link...
    send mail with multiple excel attachments
    Cancatenate  fields of internal table CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB  to get the tab position between the fields.

  • SAP PI7.31 : Mail with multiple attachments - how to process via UDF

    Hi
    wondering how I can approach this problem.   I have to read an Email with any number of attachments  - it can have between 1 and 4 or maybe more of different types (CSV,XLS,PDF,ZIP).  I need to read this email and extract the attachments to a folder.
    Just to let you know I have done this OK for an email that I know only has 2 attachments ! Works perfectly - just no good for ?n? attachments !
       Mail Sender has AF_Modules/MultipartHeaderBean to add payload Attributes
       The message is sent to 2 Receivers
       Each Receiver File adapter then uses AF_Modules/DynamicConfigurationBean and AF_Modules/PayloadSwapBean
    Problem is that when I do not know how many attachments there are.  So I will have to write a Java UDF mapping, perhaps using the classTransformationInput.
    My question is : To create a Java UDF what should be structure of a sent Email message Type look like so I can feed that into a UDF to check what payload attachments there are etc ?.

    As long as you use java mapping, you can have any dummy structures for your interfaces.
    But, if you prefer to use graphical mapping with UDF, then you should have some valid structures for your mail and file interfaces. e.g., mail pack XSD for mail interface as metioned by Indrajit Sarkar
    and again the same structure for the file interface as well so that you can have one to one mapping an then make use of UDF code from the article. Use payload swap bean in the receiver file channel to replace xml payload with Zipped attachments and then finally use script to unzip this zip file.
    Rgds,
    Praveen Gujjeti

  • File to Mail with multiple attachments

    Hi All,
    I am doing file to mail scenario in which iam including attachments.
    I am able to send one attachment(i.e., .txt) from file to mail.
    My requirement is i need to send both .txt and .xls .Please let me know the procedure for sending multiple attachments(probabaly without any abap coding or .jar files usage).
    regards
    Madhu

    Hi Madhu,
         Using the default modules PayloadSwapBean and MessageTransformBean you can able to send multiple attachments.
    swap.keyName  :payload-name or payload-description or content-type, content-description. swap.keyValue: If you have  a multiple attachments then give the multiple key value.
    Like you have payload name
      Attachment1, Attachment2 then
    swap.keyName  payload-name
    swap.keyValue  Attachment1, Attachment2
    Using the MessageTransformBean you can able to change the file name.
    PayloadSwapBean:
    [http://help.sap.com/saphelp_nw70/helpdata/EN/2e/bf37423cf7ab04e10000000a1550b0/content.htm]
    MessageTransformBean:
    [http://help.sap.com/saphelp_nw70/helpdata/EN/57/0b2c4142aef623e10000000a155106/content.htm]
    Regards,
    Prakasu

  • Problem with Multiple attachments

    I am starting to have real issues receiving multiple attachments from a client.
    In the Inbox, it will say in the brief description how many there are ... but then when I go to the email, it only shows as having one attachment, but that 1 attachment is repeated a number of times (the number of attachments there should be).
    Here's an screenshot showing the issue:
    I have re-built the inboix a few times, and this doesn't solve the issue, has anyone else come accross this?
    All of the attachments are there in Webmail, but not in Mail.  If the client sends them through as a compressed Zip file then it's ok.
    Any suggestions will be gratefully recieved.
    Thanks
    Simon

    Hi Sig,
    They know how to send attachments, they have been doing it perfectly for the past few years.  This seems tohave started over the past 3 weeks or so.

  • Bursting with multiple data sources

    Hello all,
    I am working in a retail environment and we are building reports for the stores. There are several reports and they all receive the same reports. We are using BIP Entreprise with the bursting feature and it works very well.
    The problem is that there are too many reports and we would like to combine all reports of the same store within the same PDF. We use the multiple data source feature and was able to concatenate all reports together.
    Using this new report and template, we can not make the bursting functionality to work properly: the bursted report do not contain all the required report components.
    For example, I have 2 queries A and B each producing reports for 3 stores: 2, 4 and 5. Without bursting, the output is as is:
    Query A - Store 2
    Query A - Store 4
    Query A - Store 5
    Query B - Store 2
    Query B - Store 4
    Query B - Store 5
    With bursting into a file using the store number, I get the following:
    File 1 - Store 2 - Query A
    File 2 - Store 4 - Query A
    File 3 - Store 5 - Query A
    + Store 2 - Query B
    + Store 4 - Query B
    + Store 5 - Query B
    I would like to have the following output:
    File 1 - Store 2 - Query A
    + Store 2 - Query B
    File 2 - Store 4 - Query A
    + Store 4 - Query B
    File 3 - Store 5 - Query A
    + Store 5 - Query B
    The main question is: can this be done using BI Pub Enterprise? We using version 10.1.3.3.2
    If it is, can you provide me with help on how to configure either/or the requests and template to accomplish this task?
    I create an SR and Oracle Support does not have an answser and suggested that somebody in the Forum might help.
    Thanks in advance,
    Minh

    I would like to have the following output:
    File 1 - Store 2 - Query A + Store 2 - Query B
    File 2 - Store 4 - Query A + Store 4 - Query B
    File 3 - Store 5 - Query A + Store 5 - Query B
    the bursting level should be give at
    File 1 - Store 2 - Query A + Store 2 - Query B
    so the tag in the xml has to be split by common to these three rows.
    since the data is coming from the diff query, and the data is not going to be under single tag.
    you cannot burst it using concatenated data source.
    But you can do it, using the datatemplate, and link the query and get the data for each file under a single query,
    select distinct store_name from all-stores
    select * from query1 where store name = :store_name === 1st query
    select * from query2 where store name = :store_name === 2nd query
    define the datastructure the way you wanted,
    the xml will contain something like this
    <stores>
    <store> </store> - for store 2
    <store> </store> - for store 3
    <store> </store> - for store 4
    <store> </store> - for store 5
    <stores>
    now you can burst it at store level.

  • Smtp email with multiple attachments

    Hi all,
    I have searched for help with this VI, but can't really find any.  I am trying to write a VI that will send emails with attachments, and I want it to be able to be able to do more than a single file.  I believe the problem is that I don't know how to populate the clusters going to the "Attachments" array.  I do not believe that I need to populate "Data" if I supply a path.  How do I know if "Binary" should be true or false?  How do I set the value "MIME content type", and how do I know what type to set?  The following is the error message that I am getting.
     Error 16500 occurred at 500 Command unknown: 'MIME-VERSION:'  Possible reason(s):
    LabVIEW:  (Hex 0x4074) 500 Syntax error, command unrecognized. For example, the command line might be too long.
    Thanks for any assistance.
    Jim
    Jim
    LV 2013

    Jim,
    I'd say the odds are good that your problem is the mail server input string, not the attachments array.  For example, I now live in Tampa and can send mail successfully when I use the address of my current ISP's SMTP server (smtp-server.tampa.rr.com).  But when I try the server I previously used in Texas (smtp-server.austin.rr.com), I get the exact same error that you reported.  A more explicit error message would make troubleshooting easier, but the basic problem is that I'm trying to use an SMTP server that I no longer have access to (based on the IP address my ISP has assigned to me, presumably).
    You can test this theory by configuring Outlook Express or Thunderbird or some other e-mail client to use the same outgoing SMTP server that you're trying to use in LabVIEW.  If you can't send mail that way, it confirms that your mail server string is bad.
    Then again, maybe the problem is that your SMTP server requires authentication, which isn't supported by the LabVIEW SMTP VIs.  If that's the case, I recommend using the OpenG ogic-smtp library, which I have successfully used with an SMTP server that requires authentication.  You might try that library regardless, if you continue to have problems with the native SMTP VIs.
    Good luck,
    John

  • Bursting with multiple datasets

    I have a report that I want to burst. The report is based on 2 datasets.
    1 dataset contains the information about the people that will be mailed with their report and their personal data. Split by/deliver by is based on this dataset (LIDNUMMER)
    The 2nd dataset contains informational data that is placed in a table on this report.
    The report runs perfect when it's not burst. Once the report is burst the table with the data from the 2nd dataset remains empty.
    Format of the XML :
    <DATA>

    <Ledenlijst>

    <LEDENLIJST_ROW>
    <LIDNUMMER>354</LIDNUMMER>
    <NAAM>Aer </NAAM>
    <VOORNAAM>Mar</VOORNAAM>
    <BBSFNR>326</BBSFNR>
    <GEBOORTEDATUM>04/08/1997</GEBOORTEDATUM>
    <ACTIEF_BIJ_JEUGD>Y</ACTIEF_BIJ_JEUGD>
    <JIC_BC>JIC</JIC_BC>
    <DINSDAGLIGA/>
    <WOENSDAGLIGA/>
    <INTER/>

    <ADRESSEN>

    <ADRESSEN_ROW>
    <TELEFOON>016/000000</TELEFOON>
    <GSM1>0495/000000</GSM1>
    <GSM2/>
    <EMAIL1>[email protected]</EMAIL1>
    <EMAIL2>[email protected]</EMAIL2>
    <STRAAT>laan</STRAAT>
    <STRAATNR>33</STRAATNR>
    <BUS>21</BUS>
    <POSTCODE>3000</POSTCODE>
    <WOONPLAATS>Leuven</WOONPLAATS>
    </ADRESSEN_ROW>
    </ADRESSEN>

    <LIDMAATSCHAPPEN>

    <LIDMAATSCHAPPEN_ROW>
    <NAAM>BBSF Prém. - Min. - Jun. Lid</NAAM>
    <KOST_NIEUW_SEIZOEN>8</KOST_NIEUW_SEIZOEN>
    </LIDMAATSCHAPPEN_ROW>

    <LIDMAATSCHAPPEN_ROW>
    <NAAM>JIC - Jeugdlid</NAAM>
    <KOST_NIEUW_SEIZOEN>17</KOST_NIEUW_SEIZOEN>
    </LIDMAATSCHAPPEN_ROW>
    </LIDMAATSCHAPPEN>
    </LEDENLIJST_ROW>

    <LEDENLIJST_ROW>
    <LIDNUMMER>190</LIDNUMMER>
    <NAAM>Al </NAAM>
    <VOORNAAM>David</VOORNAAM>
    <BBSFNR>27</BBSFNR>
    <GEBOORTEDATUM>06/10/1971</GEBOORTEDATUM>
    <ACTIEF_BIJ_JEUGD>N</ACTIEF_BIJ_JEUGD>
    <JIC_BC>BC</JIC_BC>
    <DINSDAGLIGA>Lost 2</DINSDAGLIGA>
    <WOENSDAGLIGA/>
    <INTER>Rubens 2</INTER>

    <ADRESSEN>

    <ADRESSEN_ROW>
    <TELEFOON>03/00000</TELEFOON>
    <GSM1>0475/00000</GSM1>
    <GSM2/>
    <EMAIL1>[email protected]</EMAIL1>
    <EMAIL2/>
    <STRAAT>straat</STRAAT>
    <STRAATNR> 129</STRAATNR>
    <BUS/>
    <POSTCODE>2627</POSTCODE>
    <WOONPLAATS>Schelle</WOONPLAATS>
    </ADRESSEN_ROW>
    </ADRESSEN>

    <LIDMAATSCHAPPEN>

    <LIDMAATSCHAPPEN_ROW>
    <NAAM>BBSF L-lid</NAAM>
    <KOST_NIEUW_SEIZOEN>25</KOST_NIEUW_SEIZOEN>
    </LIDMAATSCHAPPEN_ROW>

    <LIDMAATSCHAPPEN_ROW>
    <NAAM>BC Liga (+ inter)</NAAM>
    <KOST_NIEUW_SEIZOEN>27</KOST_NIEUW_SEIZOEN>
    </LIDMAATSCHAPPEN_ROW>
    </LIDMAATSCHAPPEN>
    </LEDENLIJST_ROW>
    </Ledenlijst>

    <Lidmaatschappen_volgend_seizoen>

    <LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>
    <ID>5</ID>
    <SEIZOEN>Seizoen '10-'11</SEIZOEN>
    <NAAM>BBSF L-lid</NAAM>
    <KOST>25</KOST>
    </LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>

    <LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>
    <ID>5</ID>
    <SEIZOEN>Seizoen '10-'11</SEIZOEN>
    <NAAM>BBSF M-lid (enkel verzekering)</NAAM>
    <KOST>8</KOST>
    </LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>

    <LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>
    <ID>5</ID>
    <SEIZOEN>Seizoen '10-'11</SEIZOEN>
    <NAAM>BBSF Junior-L Lid</NAAM>
    <KOST>25</KOST>
    </LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>

    <LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>
    <ID>5</ID>
    <SEIZOEN>Seizoen '10-'11</SEIZOEN>
    <NAAM>BBSF Prém. - Min. - Jun. Lid</NAAM>
    <KOST>8</KOST>
    </LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>

    <LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>
    <ID>5</ID>
    <SEIZOEN>Seizoen '10-'11</SEIZOEN>
    <NAAM>BBSF Miniem-L Lid</NAAM>
    <KOST>25</KOST>
    </LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>

    <LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>
    <ID>5</ID>
    <SEIZOEN>Seizoen '10-'11</SEIZOEN>
    <NAAM>BBSF Veteraan Lid</NAAM>
    <KOST>8</KOST>
    </LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>

    <LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>
    <ID>5</ID>
    <SEIZOEN>Seizoen '10-'11</SEIZOEN>
    <NAAM>BC Inter</NAAM>
    <KOST>42</KOST>
    </LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>

    <LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>
    <ID>5</ID>
    <SEIZOEN>Seizoen '10-'11</SEIZOEN>
    <NAAM>BC Liga</NAAM>
    <KOST>17</KOST>
    </LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>

    <LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>
    <ID>5</ID>
    <SEIZOEN>Seizoen '10-'11</SEIZOEN>
    <NAAM>JIC - Jeugdlid</NAAM>
    <KOST>17</KOST>
    </LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>

    <LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>
    <ID>5</ID>
    <SEIZOEN>Seizoen '10-'11</SEIZOEN>
    <NAAM>BC Liga (+ inter)</NAAM>
    <KOST>27</KOST>
    </LIDMAATSCHAPPEN_VOLGEND_SEIZOEN_ROW>
    </Lidmaatschappen_volgend_seizoen>
    </DATA>
    So, as you can see both XML's are appended into 1 XML file. To get the table with the data out of the 2nd dataset I had to play with XPATH statements.
    Is there a way this can solve the bursting issue as well?
    Tx!

    I would like to have the following output:
    File 1 - Store 2 - Query A + Store 2 - Query B
    File 2 - Store 4 - Query A + Store 4 - Query B
    File 3 - Store 5 - Query A + Store 5 - Query B
    the bursting level should be give at
    File 1 - Store 2 - Query A + Store 2 - Query B
    so the tag in the xml has to be split by common to these three rows.
    since the data is coming from the diff query, and the data is not going to be under single tag.
    you cannot burst it using concatenated data source.
    But you can do it, using the datatemplate, and link the query and get the data for each file under a single query,
    select distinct store_name from all-stores
    select * from query1 where store name = :store_name === 1st query
    select * from query2 where store name = :store_name === 2nd query
    define the datastructure the way you wanted,
    the xml will contain something like this
    <stores>
    <store> </store> - for store 2
    <store> </store> - for store 3
    <store> </store> - for store 4
    <store> </store> - for store 5
    <stores>
    now you can burst it at store level.

  • Send email with multiple attachments

    Hi All,
    Thanks for any help in advanced.
    I am trying to write a procedure that will attach mutiple selected documents that are saved in a report. The portion that I am having the problem with is how to pass only the documents that have been selected by the checkbox to the procedure. I have the document with instructions on how to add multiple documents from a table but not when selected from a checkbox.
    Thanks Again for any help.

    With that query in mind, an on submit page process like the following should do the trick:
    DECLARE
         v_apex_id NUMBER;
         v_blob BLOB;
         v_filename varchar2(50);
         v_mimetype varchar2(50);
    BEGIN
         v_apex_id := APEX_MAIL(
                        p_to       => '[email protected]',   -- change to your email address
                        p_from     => '[email protected]', -- change to a real senders email address
                        p_body     => 'message body',
                        p_subj     => 'Attach images and send');
         for i in 1..APEX_APPLICATION.g_f02.COUNT LOOP
              select filename, mimetype, content into v_filename, v_mimetype, v_blob
              from emp_ecm_documents
              where id = apex_application.g_f02(i);
              APEX_MAIL.ADD_ATTACHMENT(
                   p_mail_id    => v_apex_id,
                   p_attachment => v_blob,
                   p_filename   => v_filename,
                   p_mime_type  => v_mimetype);
         END LOOP;
         APEX_MAIL.PUSH_QUEUE;
    END;API's used:
    APEX_MAIL : http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/apex_mail.htm#CIHDIEJI
    APEX_APPLICATION: http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/apex_app.htm#insertedID2
    Ta,
    Trent

  • How to send and email with Multiple attachments

    Hi,
    I'm new to java and been trying to send weekly newsletters to subscribers,
    however the news letters have images that need to be attached to the emails, but i am unsure how to do this.
    As the moment i have a to files.
    writeemail.jsp
    this will have a form where the user will write out there email, and then have a submit message.
    sendemail.jsp
    this script retreves what the user has writen and then calls a class, to send the email
    please help

    http://java.sun.com/products/javamail/FAQ.html#sendmpr

  • How to send multiple attachments with the mail in jsp

    hi.I wrote a code to send mail.but i need to send mail with multiple attachments.when i run this code iam able to send message but not files.i want to send files as attachments with the message.please help me.
    <%@ page import="javax.mail.*,javax.mail.internet.*,java.util.Date,java.io.*,java.net.InetAddress,java.sql.*,java.util.Properties,java.net.*,javax.sql.*,javax.activation.*,java.util.*,java.text.*" %>
    <%@ page import="java.io.*,java.sql.*,java.net.*,java.util.*,java.text.*" %>
    <%
         String Attachfiles1="";
         String Attachfiles2="";
    String Attachfiles3="";
    if("Send".equalsIgnoreCase("send"))
    try
    String subject="",from="",url = null,to="";
    String mailhost = "localhost";
    Properties props = System.getProperties();
    String msg_txt="";
    String strStatus="";
    String mailer = "MyMailerProgram";
    to=request.getParameter("to");
    from=request.getParameter("from");
    subject=request.getParameter("subject");
    msg_txt=request.getParameter("message");
    props.put("mail.smtp.host", mailhost);
    Session mailsession = Session.getDefaultInstance(props, null);
    Message message = new MimeMessage(mailsession);
    message.setFrom(new InternetAddress(from));
    message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to, false));
    message.setSubject(subject);
    message.setHeader("X-Mailer", mailer);
    message.setSentDate(new Date());
    message.setText(msg_txt);
    BodyPart messageBodyPart = new MimeBodyPart();
    BodyPart messageBodyPart2 = new MimeBodyPart();
    Multipart multipart = new MimeMultipart(); // to add many part to your messge
    messageBodyPart = new MimeBodyPart();
    javax.activation.DataSource source = new javax.activation.FileDataSource("path of the file");
    messageBodyPart.setDataHandler(new DataHandler(source));
    messageBodyPart.setFileName("file_name");
    messageBodyPart2.setText("message"); // set the txt message
    multipart.addBodyPart(messageBodyPart);
    multipart.addBodyPart(messageBodyPart2);
    Transport.send(message);
    out.println("Message Sent");
    catch (Exception e)
    e.printStackTrace();
    if("Attachfiles".equalsIgnoreCase("attachfiles"))
    Attachfiles1=request.getParameter("fieldname1");
    Attachfiles2=request.getParameter("fieldname2");
    Attachfiles3=request.getParameter("fieldname3");
    %>
    <html>
    <body>
    <div class="frame">
    <form action="Composemail.jsp" method="post">
    <b>SelectPosition:</b> <select name="cars" >
    <option value="ABAP">ABAP
    <option value="saab">Saab
    <option value="fiat">Fiat
    <option value="audi">Audi
    </select><br><br>
    <table border="1" cellpadding="2" cellspacing="2">
    <tr><th>Name</th>
    <th>EmailId</th>
    <th>ContactNumber</th>
    <th>Position</th>
    </tr>
    <tr>
    <td>
    </td>
    </tr>
    </table><br>
    <b>SelectUser :</b><select name="cars">
    <option value="Administrator">Administrator
    <option value="saab">Saab
    <option value="fiat">Fiat
    <option value="audi">Audi
    </select>
    <br>
    <b>To :</b>�����������<input type="text" name="to" size="72"><br>
    <b>From :</b>�������<input type="text" name="from" size="72"><br>
    <b>Subject :</b>���<input type="text" name="subject" size="72"><br>
    <%=Attachfiles1%><br><%=Attachfiles2%><br><%=Attachfiles3%><br><br>
    <b>Message:</b><br>
    ������������<textarea rows="10" cols="50" name="message">
    </textarea> <br><br>
    <b>AttachedFile:</b>�<input type="file" name="fieldname1" value="filename" size="50"><br><br>
    <b>AttachedFile:</b>�<input type="file" name="fieldname2" value="filename" size="50"><br><br>
    <b>AttachedFile:</b>�<input type="file" name="fieldname3" value="filename" size="50"><br><br>
    ������������<input type="submit" name="attachfiles" value="Attachfiles">
    <center>
    <input type="submit" name="send" value="Send" >
    </center>
    </form>
    </div>
    </body>
    </html>

    Most likely you're not specifying the path of a file on the server machine.

Maybe you are looking for