WLCS 3.2 Portal switching (attached header file)

Hi,
I have attached my header file. please look for the 4 blocks ------by
Jonthan. Thanks
[headerMagnio.jsp]

You can try removing jobs directly from Common Services > Server > Admin > Job Browser.  Only stopped jobs can be deleted.  Those which are still scheduled cannot be.

Similar Messages

  • WLCS 3.2 Portals switching while remaining in session

    Hi,
    I am upgrading our commerce server from 2.1 to 3.2. I have two
    portals that I switch around with buttons on the two different
    header jsp files while the same user still stays in the same session.
    In my old commerce server version, the header buttons call the
    attached file to switch between the two portals.
    Now I am trying to do the same for version 3.2. But I get this
    error message:
    Error 403--Forbidden
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.4 403 Forbidden
    The server understood the request, but is refusing to fulfill it.
    Authorization will not help and the request SHOULD NOT be repeated.
    If the request method was not HEAD and the server wishes to make
    public why the request has not been fulfilled, it SHOULD describe
    the reason for the refusal in the entity. This status code is commonly
    used when the server does not wish to reveal exactly why the request
    has been refused, or when no other response is applicable.
    One of my header.jsp file is as follows. I am only showing the
    4 blocks of code added to the original header.jsp file. nothing
    else changed.
    <%@ page import="java.util.Enumeration, com.beasys.commerce.user.tags.UserManagerTagConstants,
    java.net.URLEncoder" %>
    <%! // Declaration
    public static final String DEST_MANAGEMENT_PORTAL_URI = "/portals/management";
    public static final String DEST_MANAGEMENT_PORTAL_NAME = "management";
    public static final String DEST_MANAGEMENT_PORTAL_HOME_PAGE
    = "/portals/management/portal.jsp";
    %>
    <%
    // Create the request parameters for the link to the processor
    page
    String parameters = "dest_portal_uri=" + URLEncoder.encode(DEST_MANAGEMENT_PORTAL_URI)
    +
    "&dest_portal_name=" + URLEncoder.encode(DEST_MANAGEMENT_PORTAL_NAME)
    +
    "&dest_portal_home_page=" + URLEncoder.encode(DEST_MANAGEMENT_PORTAL_HOME_PAGE);
    String processAppLinkURL = createURL(request, "process_portal_link.jsp",
    parameters);
    %>
    //----now the button----simplified-----
    <td width="50"><a href="<%= response.encodeURL(processAppLinkURL)
    %> </a"></td>
    If anyone knows the problem, please let me know ASAP. Any suggestion
    is also appreciated. Thanks.
    [process_portal_link.jsp]
    </a>

    Hello Jonathon,
    Yes, this question has been answered in the newsgroup
    weblogic.developer.interest.personalization . I believe there are several
    postings on this topic. Here is one of them:
    news://www4.weblogic.com/39F9B7CB.77174B74%40bea.com
    Jonathan Chang wrote:
    Hello,
    Has anyone switched between two portals in WLCS 3.2 while remain in the same
    session?
    If anyone has any clue, please let me know!
    Thanks.
    PLEASE HELP!
    Jonathan--
    Ture Hoefner
    BEA Systems, Inc.
    2590 Pearl St.
    Suite 110
    Boulder, CO 80302
    www.bea.com
    [att1.html]

  • WLCS 3.2 Portal Switching while remaining in session

    (my previous message got truncated)
    Hi, I am upgrading my commerce server from 2.1 to 3.2. I have two
    portals that I switch around with buttons on the two different
    header jsp files while the same user stays in session. In my old
    WLCS, the header buttons call the attached file to switch between
    the two portals. Now I am trying to do the same for WLCS 3.2. But
    I get this error message: Error 403--Forbidden From RFC 2068 Hypertext
    Transfer Protocol --server understood the request, but is refusing
    to fulfill it.
    Well, I am showing the 4 blocks of code that I added to the original
    header.jsp file.
    <%@ page import="java.util.Enumeration, com.beasys.commerce.user.tags.UserManagerTagConstants,
    java.net.URLEncoder" %>
    <%! // Declaration
    public static final String DEST_MANAGEMENT_PORTAL_URI = "/portals/management";
    public static final String DEST_MANAGEMENT_PORTAL_NAME = "management";
    public static final String DEST_MANAGEMENT_PORTAL_HOME_PAGE
    = "/portals/management/portal.jsp";
    %>
    <%
    // Create the request parameters for the link to the processor
    page
    String parameters = "dest_portal_uri=" + URLEncoder.encode(DEST_MANAGEMENT_PORTAL_URI)
    +
    "&dest_portal_name=" + URLEncoder.encode(DEST_MANAGEMENT_PORTAL_NAME)
    +
    "&dest_portal_home_page=" + URLEncoder.encode(DEST_MANAGEMENT_PORTAL_HOME_PAGE);
    String processAppLinkURL = createURL(request, "process_portal_link.jsp",
    parameters);
    %>
    ------now part of the button code----------
    <td width="50"><a href="<%= response.encodeURL(processAppLinkURL)
    %>
    [process_portal_link.jsp]

    Hello Jonathon,
    Yes, this question has been answered in the newsgroup
    weblogic.developer.interest.personalization . I believe there are several
    postings on this topic. Here is one of them:
    news://www4.weblogic.com/39F9B7CB.77174B74%40bea.com
    Jonathan Chang wrote:
    Hello,
    Has anyone switched between two portals in WLCS 3.2 while remain in the same
    session?
    If anyone has any clue, please let me know!
    Thanks.
    PLEASE HELP!
    Jonathan--
    Ture Hoefner
    BEA Systems, Inc.
    2590 Pearl St.
    Suite 110
    Boulder, CO 80302
    www.bea.com
    [att1.html]

  • New SS 12 plug-in: Switch Source/Header files in editor

    Quick switch between C/C++ Header and Source files using Ctrl+Shift+A shortcut, editor context menu, editor toolbar button or Navigate menu.
    Plug-in can be downloaded from
    http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=3359

    I seem to have gotten around this problem bysetting
    the comment editor to notepad.exe in the MS
    SourceSafe client command line options.Hi,
    I'm having the same problem except that I don't get
    the last error about the comment editor. I've
    configured VSS the same way you did but in the
    Messages window I get this:
    JDev VSS Extension environment loaded...
    Source control connection established.
    $/JDeveloper/jdev/mywork/OracleSamples/CachedRowSet/Ca
    chedRowSet.jws is not an existing filename or
    project
    This repeats the for all projects under my
    "<JDeveloperHOME>/jdev/mywork/" dir
    The projects existed before I installed the VSS
    Plug-in, and when I restarted JDev so that the VSS
    settings in the Prefs Dialog take effect, it asked me
    for the VSS Folder; I entered the dir in the form
    "$/myproject/mysubproject" and then it gave me the
    above errors in the Messages window.
    Any help anyone? What I'm I missing here?
    Rgrds
    George PapadopoulosSorry, I forgot to mention that when I try to add anyone of my projects to VSS using the "Versioning|Add to VSS" I get this error:
    Cannot find or create vss project '$/JDeveloper/jdev/mywork/somedir/myprojdir. SS Add is aborting.
    $/JDeveloper/jdev/mywork/somedir/ is not an existing filename or project
    File or project "$/JDeveloper/jdev/mywork/somedir" does not exist
    Cannot find or create vss project '$/JDeveloper/jdev/mywork/somedir. SS Add is aborting.
    I know the project does not exist in VSS yet, because I'm trying to add it!
    TIA
    George Papadopoulos

  • Attach video file as a help to BW reports on the portal

    Hello,
    I would like to attach video file as a visual manual to BW reports published on the portal (one vide file to many reports)
    Can somebody tell me what is best way to do it.
    Thanks

    Hello.
    The best way is your way and depends on your requirements and available resources.
    I can only give you a few points to start from:
    1. You may use either Help property of BW reports iviews or [Dynamic Navigation iView|http://help.sap.com/saphelp_nw04/helpdata/en/32/66c53e5ae84d3be10000000a11405a/frameset.htm] to point users to a video. The second variant is most visible to users.
    2. Video may be stored:
    2.1.  in KM and played by:
      a) software on user's workstation.
      b) custom developed iView which holds streamed video.
      c)  javascript/flash video player embedded in custom KM html page.
    2.2. on an intranet media server or external video hosting as Youtube. If a security concern does not matter, in general you have only provide a URL to the video.
    Best regards,
    Aliaksandr Zhukau

  • Error while opening Attachment(ZIP files) in work-flow inbox(Portal)

    Hi Experts ,
    We are getting error , when we try to open the Attachement (ZIP file) link from workflow-inbox(portal side). We are able to open the attachment sucessfully from backend . But we are getting error"Internet Explorer cannot download from void (0).No such interface supported.u201D when we try to open the attachment from portal.The attachment is ZIP file.
    Please help us to resolve the error.
    Edited by: AlokSBP on Apr 16, 2010 10:46 AM
    Edited by: AlokSBP on Apr 16, 2010 10:49 AM

    Thanks for the response...
    The issue is only occurring for the ZIP file extention . we are able to open the document in other files extentions from UWL inbox(portal).
    We have checked few more threads in SDN & got some link mentiioing the Tcode :- DC20 and DC30 (related to file extension) . As explained in the Tcode DC20 and DC30 . the file extention entries has to be maintained.
    We have made the entry of ZIP file in the DC20 & DC30 but still we are getting the same error. I think we are missing some entries to fill.
    It would be great if you can suggest regarding this issue...
    Is this is the cause of the issue ?
    Appreciate your help.....
    Cheers:)
    Edited by: AlokSBP on May 3, 2010 12:40 PM

  • Can you copy/paste files from the Finder to Mail in Lion, or drag them onto the Mail icon in the Dock to create a new message and attach the files to it?

    Message title says it: Can you copy/paste files from the Finder to Mail in Lion, or drag them onto the Mail icon in the Dock to create a new message and attach the files to it?
    I can't find anything in the Knowledge Base that says these two options no longer work or still do.
    I do not have a system capable of running Lion, but I need to know the answer nonetheless.

    Gee, I don't know: "paste attachments mail Lion"? ;-)
    One further question, if I may: in Panther (which is where I've aggregated nearly 7 years of mail), if you copy more than one file in the Finder, switch to Mail, and paste the files into a new message, only the file names paste in. If you copy one file and paste it into a Mail message, you get the file, not just the name. Is that still true, or has that (IMHO) bug been fixed since 10.3.9?

  • Issue the send attach Pdf file in Email. (Urgent).

    Hello folks, i have issue with attach pdf in e-mail using two lib&acute;s: activation.jar and mail.jar. Currently using a platform SOA and am creating the serviceType, then a file don&acute;t is local and yes by message, so far so good.
    Already tried in several forums, but without success.
    When send the message (pdf file), the program receive a type ContentType (application/octet-stream) and cause the MessageException, below:
    MessageException - in Container:
    Message: [B@79ffb7f7  /// the service received the pdf file
    [09/03/02 12:22:45] ID=dev_ESBTest (info) application/octet-stream *///ContentType of message*
    javax.mail.SendFailedException: Sending failed; *///Exception*
    nested exception is:
    javax.mail.MessagingException: IOException while sending message;
    nested exception is:
    **javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/octet-stream**
    at javax.mail.Transport.send0(Transport.java:219)
    at javax.mail.Transport.send(Transport.java:81)
    javax.mail.MessagingException: IOException while sending message;
    nested exception is:
    javax.activation.UnsupportedDataTypeException: no object DCH for MIME type application/octet-stream
    at com.sun.mail.smtp.SMTPTransport.sendMessage (SMTPTransport.java:353)
    at javax.mail.Transport.send0 (Transport.java:164)
    at javax.mail.Transport.send(Transport.java:81)
    With this, it send the e-mail without attach......above my source simple source code.
    ServiceType Code:
         protected void SendEmail(XQPart prt, String host, String from, String to) {
              // create some properties and get the default Session
              Properties props = System.getProperties();
              props.put("mail.smtp.host";, host);
              Session session = Session.getInstance(props, null);
              try {
                   // create a message
                   MimeMessage msg = new MimeMessage(session);
                   msg.setFrom(new InternetAddress(from));
                   InternetAddress[] address = { new InternetAddress(to) };
                   msg.setRecipients(Message.RecipientType.TO, address);
                   msg.setSubject("Test Subject.");
                   MimeBodyPart bp1 = new MimeBodyPart();
                   bp1.setText("Test Text.");
                   MimeBodyPart bp2 = new MimeBodyPart();
                   m_xqLog.logInformation(prt.getContentType());
                   bp2.setContent(prt.getContent(), prt.getContentType());
                   bp2.setFileName("teste.pdf";);
                   Multipart mp = new MimeMultipart();
                   mp.addBodyPart(bp1);
                   mp.addBodyPart(bp2);
                   msg.setContent(mp);
                   msg.setSentDate(new Date());
                   Transport.send(msg);
                   System.out.println("Email sent successfully!");
              } catch (MessagingException mex) {
                   mex.printStackTrace();
                   Exception ex = null;
                   if ((ex = mex.getNextException()) != null) {
                        ex.printStackTrace();
         }Anybody would can help me, please....
    Thanks ....
    Paulo Sampei.

    Hello Folks, me again. Then the solution about this question above, below:
    Solution:
    Code 1: Call 2 method passing requirement parameter:
    Obs: Always ContentType = application/octet-stream
    ByteArrayInputStream attachStream = new ByteArrayInputStream((byte[]) prt.getContent());
    //call constructor class:InputStreamDataSource
    InputStreamDataSource isds = new InputStreamDataSource("Testepdf.pdf", prt.getContentType(),attachStream);
    //call method sendMail(InputStreamDataSource,host,from,to)
    sendMail(isds, s_Host, s_SendFrom, s_SendTo);Code 2: Class InputStreamDataSource
         // statement DataSource
         private class InputStreamDataSource implements DataSource {
              private String name;
              private String contentType;
              private ByteArrayOutputStream baos;
              InputStreamDataSource(String name, String contentType,
                        InputStream inputStream) throws IOException {
                   int read;               
                   this.name = name;
                   this.contentType = contentType;
                   baos = new ByteArrayOutputStream();
                   byte[] buff = new byte[256];               
                   while ((read = inputStream.read(buff)) != -1) {
                        baos.write(buff, 0, read);
              public String getContentType() {
                   // TODO Auto-generated method stub
                   return contentType;
              public InputStream getInputStream() throws IOException {
                   // TODO Auto-generated method stub
                   return new ByteArrayInputStream(baos.toByteArray());
              public String getName() {
                   // TODO Auto-generated method stub
                   return name;
              public OutputStream getOutputStream() throws IOException {
                   // TODO Auto-generated method stub
                   throw new IOException("Cannot write to this read-only resource");
         }Code 3: mehod sendMail(InputStreamDataSource, host, from, to)
         protected void sendMail(InputStreamDataSource attach, String host,
                   String from, String to) {
              // create some properties and get the default Session
              Properties props = System.getProperties();
              props.put("mail.smtp.host", host);
              Session session = Session.getInstance(props, null);
              try {
                   // create a message
                   MimeMessage msg = new MimeMessage(session);
                   msg.setFrom(new InternetAddress(from));
                   InternetAddress[] address = { new InternetAddress(to) };
                   msg.setRecipients(Message.RecipientType.TO, address);
                   msg.setSubject("Assunto teste.");
                   // create and fill the first message part
                   MimeBodyPart bp1 = new MimeBodyPart();
                   bp1.setText("Texto teste.");
                   // create the second message part
                   m_xqLog.logInformation("[ContentType]:[attach] "
                             + attach.getContentType());
                   // attach the file to the message
                   MimeBodyPart bp2 = new MimeBodyPart();
                   bp2.setDataHandler(new DataHandler(attach));
                   bp2.setFileName(attach.getName());
                   // create the Multipart and add its parts to it
                   Multipart mp = new MimeMultipart();
                   mp.addBodyPart(bp1);
                   mp.addBodyPart(bp2);
                   // add the Multipart to the message
                   msg.setContent(mp);
                   // set the Date: header
                   msg.setSentDate(new Date());
                   // send the message
                   Transport.send(msg);
                   System.out.println("Email sent successfully!");
              } catch (MessagingException mex) {
                   mex.printStackTrace();
                   Exception ex = null;
                   if ((ex = mex.getNextException()) != null) {
                        ex.printStackTrace();
         }Thank you very much, forum and bshannon at your tips.
    Cheers,
    Paulo Sampei.

  • Hello! Couldn't found header file extcode.h in LabVIEW 6i

    Hello! At the monent I try to use a cluster from LabVIEW 6i to get Data from VC ++ dll. I knew that I need the header file extcode.h. I could found it at directory of LabVIEW 6i.

    Hello,
    I found one here "C:\Program Files\National Instruments\LabVIEW 6.1\cintools\extcode.h".
    You'll find it in attachment.
    Maybe you forgot to install the CIN tool when you installed LabVIEW 6.1 ?
    I hope it will help you.
    Attachments:
    extcode.h ‏26 KB

  • Error in header files on DMA using SDK

    I followed procedure as like as simple Hello_world mention in zedboard and chosen "OS Platform as Linux".check out this link i followed the procedure as
    http://zedboard.org/content/zedboard-create-planahead-project-embedded-p....
    Then replaced that Hello_world code by My program.I attached DMA program.while compling I faced error and post in the zedboard->support->s/w development application and then i added header files in the project explorer window in SDK to the include folder as a path.pls check out link below for header file inclusion as http://s1322.photobucket.com/user/Arunvision/media/sdk_bsp_zps99084a46.j...
    we got the error like as
    **** Build of configuration Debug for project Dma ****
    make all
    Building file: ../src/OCM2PL.c
    Invoking: ARM Linux gcc compiler
    arm-xilinx-linux-gnueabi-gcc -Wall -O0 -g3 -I"C:\Xilinx\14.4\ISE_DS\EDK\sw\XilinxProcessorIPLib\drivers\scutimer_v1_00_a\src\" -I"C:\Xilinx\14.4\ISE_DS\EDK\sw\XilinxProcessorIPLib\drivers\dmaps_v1_00_a\src" -I"C:\Xilinx\14.4\ISE_DS\EDK\sw\XilinxProcessorIPLib\drivers\scugic_v1_00_a\src" -I"C:\Xilinx\14.4\ISE_DS\EDK\sw\XilinxProcessorIPLib\drivers\common_v1_00_a\src" -I"C:\Xilinx\14.4\ISE_DS\EDK\sw\lib\bsp\standalone_v3_07_a\src\cortexa9" -c -fmessage-length=0 -MMD -MP -MF"src/OCM2PL.d" -MT"src/OCM2PL.d" -o"src/OCM2PL.o" "../src/OCM2PL.c"
    arm-xilinx-linux-gnueabi-gcc: fatal error: no input files
    compilation terminated.
    make: *** [src/OCM2PL.o] Error 1
    Pls provide solution as soon as possible.

    Ran into a very similar problem compiling code (on win7/64bit) for the zc702 board.    In our case it was due to the cygwin binaries being on the windows PATH.   You won't have to remove cygwin - just remove from the windows path.   
    Also can't take credit - John Zhao and his team at mathworks uncovered it - while we were tracking down a different issue.
    --Bart

  • How can I change 'attach a file' back from classic mode to regular mode

    I was having a problem attaching a file (it was the file's fault, not FF) and switched to the 'classic' mode. I prefer the 'regular', previous mode and cannot figure out how to switch it back. I'm hoping when I reopen it it will revert to 'normal', but I would like to go back to the regular mode. I went to the tools (gear) page and flicked the attach section back and forth to the 'show progress bar setting it was originally on but it didn't work. Help?

    Hi Prem,
    You can attach this manually in the document tab of BP. Thats the standard functionality.
    Regards
    Arun Kumar

  • UTL_SMTP mail with attachment( Problem in attaching zip file)

    Hi All,
    I used the below code for sending email with attachment. but when i try to add the message body its not working in the sense its not attaching my file. when i commented that line its attaching the file.
    commented lines:
    -- utl_smtp.write_data(mail_conn,UTL_TCP.CRLF ||'Body' ||':'|| text || UTL_TCP.CRLF);
      --utl_smtp.write_data(mail_conn,UTL_TCP.CRLF||text || UTL_TCP.CRLF );How to resolve this issue???
    Complete procedure.
    create or replace
    procedure sssl_send_mail (
          p_sender varchar2,
          p_recipient varchar2,
          p_cc varchar2,
          p_subject varchar2,
          p_filename varchar2,
          text varchar2) is    
        --c utl_smtp.connection;
        v_raw raw(57);
        v_length integer := 0;
        v_buffer_size integer := 57;
        v_offset integer := 1;
        mailhost    VARCHAR2(64) := 'xxxxxxxxxx';
        port constant number(2):=25;
        timeout number :=180;
        mail_conn  utl_smtp.connection;  
    p_blob Blob;
    temp_os_file bfile;
    ex number; 
    begin 
       DBMS_LOB.CREATETEMPORARY(p_blob,true);
       temp_os_file := BFILENAME ('xxxxxxxx',p_filename);
       ex := dbms_lob.fileexists(temp_os_file);
          if ex = 1 then
             dbms_lob.fileopen(temp_os_file, dbms_lob.file_readonly);
             dbms_lob.loadfromfile(p_blob,temp_os_file, dbms_lob.getlength(temp_os_file));
             dbms_lob.fileclose(temp_os_file);
           end if;
       mail_conn := utl_smtp.open_connection(mailhost, port,timeout);
       utl_smtp.helo(mail_conn, mailhost);
       utl_smtp.mail(mail_conn, p_sender);
       utl_smtp.rcpt(mail_conn, p_recipient);
       utl_smtp.rcpt(mail_conn, p_cc);
       utl_smtp.open_data(mail_conn);
      utl_smtp.write_data(mail_conn,'From'||':'|| p_sender || UTL_TCP.CRLF);
      utl_smtp.write_data(mail_conn,'To'||':'|| p_recipient || UTL_TCP.CRLF);
      utl_smtp.write_data(mail_conn,'CC'||':'|| p_cc || UTL_TCP.CRLF);
      utl_smtp.write_data(mail_conn,'Subject' ||':'|| p_subject || UTL_TCP.CRLF);
    -- utl_smtp.write_data(mail_conn,UTL_TCP.CRLF ||'Body' ||':'|| text || UTL_TCP.CRLF);
      --utl_smtp.write_data(mail_conn,UTL_TCP.CRLF||text || UTL_TCP.CRLF );
        utl_smtp.write_data( mail_conn, 'Content-Disposition: attachment; filename="' || p_filename || '"' || utl_tcp.crlf);
        utl_smtp.write_data( mail_conn, 'Content-Transfer-Encoding: base64' || utl_tcp.crlf );
        utl_smtp.write_data( mail_conn, utl_tcp.crlf );
        v_length := dbms_lob.getlength(p_blob);    
        <<while_loop>>
        while v_offset < v_length loop
          dbms_lob.read( p_blob, v_buffer_size, v_offset, v_raw );
          utl_smtp.write_raw_data( mail_conn, utl_encode.base64_encode(v_raw) );
          utl_smtp.write_data( mail_conn, utl_tcp.crlf );
          v_offset := v_offset + v_buffer_size;
        end loop while_loop;
        utl_smtp.write_data( mail_conn, utl_tcp.crlf );
        utl_smtp.close_data(mail_conn);
        utl_smtp.quit(mail_conn);
      exception
        when utl_smtp.transient_error or utl_smtp.permanent_error then
          utl_smtp.quit(mail_conn);
          raise;
        when others then
        raise;
      end;Please help me out to resolve this issue.
    Thanks in advance.
    Cheers ,
    Shan.
    Edited by: Shan on 13 Jan, 2011 1:08 PM
    Edited by: Shan on 14 Jan, 2011 3:22 PM

    Hi,
    Some Problems i am facing with this procedure. when i try to add CC in this procedure. Its sending the mail for recipent , But the CC person not getting the mail. How to resolve this??
    create or replace
    PROCEDURE sssl_send_mail( p_sender varchar2,
          p_recipient varchar2,
          p_cc varchar2,
          p_subject varchar2,
          p_filename varchar2,
          text varchar2) is 
        /*LOB operation related varriables */
       v_src_loc  BFILE;
       l_buffer   RAW(200);
       l_amount   BINARY_INTEGER := 200;
       l_pos      INTEGER := 1;
       l_blob     BLOB := EMPTY_BLOB;
       l_blob_len INTEGER;
       v_amount   INTEGER;
        /*UTL_SMTP related varriavles. */
        v_connection_handle  UTL_SMTP.CONNECTION;
        v_from_email_address VARCHAR2(200);
        v_to_email_address   VARCHAR2(200) ;
        v_smtp_host          VARCHAR2(10) ;
        v_subject            VARCHAR2(500) ;
        l_message            VARCHAR2(3000);
        /* This send_header procedure is written in the documentation */
        PROCEDURE send_header(pi_name IN VARCHAR2, pi_header IN VARCHAR2) AS
        BEGIN
        --dbms_output.put_line('entering into procedure');
        --dbms_output.put_line(pi_name || ': ' || pi_header);
          UTL_SMTP.WRITE_DATA(v_connection_handle,
                              pi_name || ': ' || pi_header || UTL_TCP.CRLF);
        END;
      BEGIN
       v_src_loc             := BFILENAME('BROKERREPORTS',p_filename);
       v_from_email_address  := p_sender;
       v_to_email_address    := p_recipient;
       v_smtp_host           := 'sbssld1'; --My mail server, replace it with yours.
       v_subject             := p_subject;
       l_message      := 'test';
        /*Preparing the LOB from file for attachment. */
        DBMS_LOB.OPEN(v_src_loc, DBMS_LOB.LOB_READONLY); --Read the file
        DBMS_LOB.CREATETEMPORARY(l_blob, TRUE); --Create temporary LOB to store the file.
        v_amount := DBMS_LOB.GETLENGTH(v_src_loc); --Amount to store.
        DBMS_LOB.LOADFROMFILE(l_blob, v_src_loc, v_amount); -- Loading from file into temporary LOB
        l_blob_len := DBMS_LOB.getlength(l_blob);
    /*UTL_SMTP related coding. */
        v_connection_handle := UTL_SMTP.OPEN_CONNECTION(host => v_smtp_host);
        UTL_SMTP.HELO(v_connection_handle, v_smtp_host);
        UTL_SMTP.MAIL(v_connection_handle, v_from_email_address);
        UTL_SMTP.RCPT(v_connection_handle, v_to_email_address);
        UTL_SMTP.OPEN_DATA(v_connection_handle);
        send_header('From', v_from_email_address || '<'||'>');
        send_header('TO', v_to_email_address || '<'||'>');
        send_header('CC', p_cc        || '<'||'>');
        send_header('Subject', v_subject);
        --MIME header.
       UTL_SMTP.WRITE_DATA(v_connection_handle,
                          'MIME-Version: 1.0' || UTL_TCP.CRLF);
       UTL_SMTP.WRITE_DATA(v_connection_handle,
                            'Content-Type: multipart/mixed; ' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            ' boundary= "' || 'SAUBHIK.SECBOUND' || '"' ||
                            UTL_TCP.CRLF);
       UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
        -- Mail Body
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            'Content-Type: text/plain;' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            ' charset=US-ASCII' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle, l_message || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
        -- Mail Attachment
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                           'Content-Type: application/octet-stream' ||
                            UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            'Content-Disposition: attachment; ' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            ' filename="' || p_filename || '"' || --My filename
                            UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
      /* Writing the BLOL in chunks */
        WHILE l_pos < l_blob_len LOOP
          DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
          UTL_SMTP.write_raw_data(v_connection_handle,
                                  UTL_ENCODE.BASE64_ENCODE(l_buffer));
          UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
          l_buffer := NULL;
          l_pos    := l_pos + l_amount;
        END LOOP;
        UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
        -- Close Email
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            '--' || 'SAUBHIK.SECBOUND' || '--' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(v_connection_handle,
                            UTL_TCP.CRLF || '.' || UTL_TCP.CRLF);
        UTL_SMTP.CLOSE_DATA(v_connection_handle);
        UTL_SMTP.QUIT(v_connection_handle);
        DBMS_LOB.FREETEMPORARY(l_blob);
        DBMS_LOB.FILECLOSE(v_src_loc);
      EXCEPTION
        WHEN OTHERS THEN
          UTL_SMTP.QUIT(v_connection_handle);
          DBMS_LOB.FREETEMPORARY(l_blob);
          DBMS_LOB.FILECLOSE(v_src_loc);
         sssl_internal_error_track(sqlcode,sqlerrm,'SSSL_SEND_MAIL',NULL);
      END;Thanks in Advance.
    Cheers,
    Shan.
    Edited by: Shan on 13 Jan, 2011 12:33 PM
    Edited by: Shan on 13 Jan, 2011 1:05 PM

  • Header file in TMDS and Datafinder

    I want to write my acquisition info to header file in TDMS.
    My trial was seemed to be successful as you can see the attachment of TMDS viewer.png.
    But, some extra stuffs can be seen in DataFinder toolkit.
    (The searched folder contains only my custom TMDS files, no extra TDMS files.)
    For example, I wrote "FileName" but seen as "fileName" or error in reading #channels in TMDS.png.
    I am very wondering how can I control the keywords in Datafinder.
    I reset the indexing but useless.
    Doesn't it reliable way to find the TDMS data in Datafinder toolkit? or my mistake?
    labmaster.
    Attachments:
    TDMS.png ‏108 KB
    tmds_viewer.png ‏27 KB

    In the TDM platform (this includes the DataFinder) there are some characters and some keywords which are handled in a special way (you find details below). Therefore the behavior you describe may appear.
    You will find a list of searchable base attributes in the online help of the DataFinder Toolkit. Open the content tab of the LabVIEW help, open the node "Toolkits", then the node "LabVIEW DataFinder Toolkit" and go to the following page: "Properties".
    Custom properties are always searchable with the following exceptions:
    1. Some characters may be replaces with "_" (see information below)
    2. Custom properties of the data type date/time have to be optimized to be searchable. Custom properties of other data types may be optimized but do not necessarily have to be.
    Hope that helps,
    Eva
    I copied the following from another thread and added some DataFinder specific information:
    The following characters are not supported for custom property names throughout the whole TDM platform :
    ., :, ,, ;, ', \, @, <, >, #, [, ], %, (, ), {, }, |, *, ?, =, !, ", ^, $, &, +, -, /, and a space
    These characters will be replaced with "_" in the property name. (This is why you see #channels as _channels)
    Also the following property names are reserved and may not be used for creating custom properties on file level:
    author, channelgroups, children, datestring, datetime, description, environment, external_references, id, instance_attributes, mime_type, name, objecttype, parent, registercomments, registertxt1, registertxt2, registertxt3, timestring, title, version, version_date
    Additionally the DataFinder has the following property names reserved on file level (This is why you see FileName as fileName.):
    createTime, dataPluginName, fileName, folder, indexStatus, modifyTime
    The following property names are reserved and may not be used on group level:
     channels, children, description, equipments, external_references, id, index, instance_attributes, measurement_begin, measurement_end, measurement_quantities, mime_type, name, objecttype, parent, registertxt1, registertxt2, registertxt3, root, sequences, submatrices, submatrices, test, units_under_test, version, version_date
    The following poperty names are resevered and may not be used on channel level:
     average, channel, children, datatype, deletebehaviour, description, dimension, displaytype, empty, external_references, flagkey, group, groupindex, id, implicit_increment, implicit_start, instance_attributes, internal_params, internal_res1, internal_res2, interpolation, is_scaled_by, length, lengthmax, local_columns, maximum, measurement, mime_type, minimum, monotony, name, novaluekey, number, objecttype, parent, quantity, rank, registerint1, registerint2, registerint3, registerint4, registerint5, registerint6, registertxt1, registertxt2, registertxt3, registerval1, registerval2, registerval3, registerval4, registerval5, registerval6, representation, scales, sourcedatafilename, sourcedatafilepath, sourcegenparam1, sourcegenparam2, sourcehandle, sourceinstancekey, sourcename, sourceparentname, sourcerepresentation, sourcetype, sourcevalue, standard_deviation, status, type_size, unit, unit_string, valuetype, version, version_date, waveform,

  • I cannot "attach a file" using gmail in firefox x 9.01

    when I compose an email, the "attach a file" just would not accept any attachment. First time it happens to me on my firefox 9.01

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • Header File Not Found

    I installed the TestU01 Suite for testing some random number generators I am working on, but when I use the #includes in my code, the systems says it can't find them at compile time. I followed the instructions for downloading and installing the library from Dr. Richard Simard's site . Its in the MinGW repository for the Linux environment MSYS. I point Eclipse straight at it for the project and Eclipse says it can't find the file upon compiling. See attached images.
    From the attached images you can see that I have gone in and for this project added a custom path to where the include files were installed with MSYS. You can also see that Eclipse did add those paths as a valid path for includes in the project folder. However when I go to build the project Eclipse says there is an error, S4, and the error specifically states that the file can't be found. However, it is listed in the path of the includes so Eclipse should be able to see it.

    So I got Eclipse to find the header files, and I believe I have set up the library additions appropriately. I have even changed \ to / in all the areas that a library or the includes folder was added.
    Eclipse in the file now sees the header and even allows me to make variable of the struct type that is in the header. However when I go to use several of the functions from the header I am getting an "undefined reference" error. I have checked, and the function names are correct.
    Will not compile with these errors, and I really need to use this tool set/library for a project I am working on. Any help would be appreciated.

Maybe you are looking for

  • Transparent signature in Acrobat 9.0

    I have been trying to figure this out for several months now. I sure hope someone can help me out. I need to create a graphic signature with a transparent background for use in a pdf document. I have created a .png file with transparency, and all the

  • Oracle 11g upgrade prerequisite fails for all the values

    Hi, We have planned Oracle upgrade from 10.2.0.4 to 11.2.0.2. We have followed the upgrade guide Database Upgrade Guide "Upgrade to Oracle Database 11g Release 2 (11.2): UNIX". Our OS versionis HP-UX ia64 B.11.31. According to the upgrade guide we ha

  • Lightroom 2 Book(s) recommendations?

    I'm looking for one or two Lightroom 2 books. First I'm looking for a book (or even website) that provides a rock solid (fast, fast, fast) workflow. I'm reasonably proficient in Lightroom 1 - but am finding I have ever shrinking quantities of time to

  • Change the SYS & SYSTEM Oracle passwords with BRTOOLS, any concerns ?

    Hello, I would like to change both the SYS and SYSTEM Oracle passwords with BRTOOLS : (1) Can I use BRTOOLS to change them, or, I have to change them through SQLPlus ? (2) Any concerns, will this password change affect my SAP normal operations ? (3)

  • Name change in iTunes?

    Is there a way to change the iPhone name in iTunes? For example, I have mane named "iPhone" but now I have three phones and want to change that one to "Brian's iPhone" without starting all over. Thanks.