get the selected value of selectOneChoice with the help of EL

It's my selectonechoice. It has only two values: "JPN" AND "USD".
< af:selectOneChoice value = "#{bindings." Currency.inputValue}.
required = "#{bindings." Currency.hints.Mandatory}.
shortDesc = "#{bindings." Currency.hints.ToolTip}.
ID = "soc1.
Binding = "#{pageFlowScope.apVendHistoryQueryMainMB.Currency} '"
valuePassThru = "true" >
< f: selectItems value = "#{bindings." Currency.Items}.
ID = "si2" / >
< / af:selectOneChoice >

It comes to the el, I tried to use:
< af:convertNumber type = "number".
pattern = "#{Bindings.Currency.inputValue =="JPN"?" '########0' : '##,###,###0.00'}"/>
I want to just when the selected value is JPN, model will use ' # 0'.

Hey Danny,

It works fine for me.

What do you mean by

anyway... does ' t work...

The format have not changed according to the selection?

Here's what I tried,

1 added a transitional attribute to my VO and baptized as currency and the USD value default value.


2 DND the currency attribute to jspx page and he added that selectOneChoice with static values (USD and JPN).
JSPX page

          
            
              
            
          

pagedef

    
      
        
      
      
        
        
      
    

3. Add an input text (Sal field in a table EMP) and set the id of the selectOneChoice the partialTriggers

          
            
              

              
            

          

A run the page, and according to the choice of currency (from the selectOneChoice), the format of the field of sal is changing.

Arun-

Tags: Java

Similar Questions

  • How to read or get the current selected value of selectonechoice

    How to read or get the current selected value of selectonechoice, so that it can be used in the custom query.

    selectOneChoice11.getValue () m:System.NET.SocketAddress.ToString () returns the index of the list.

    from 0 - number of values in selectonechoice.

    I want to read the exact value of selected.

    Concerning

    Niaz M

    Why don't you try this?

    Re: Value of SelectOneChoice in valueChangeListener

    Both approaches will work...

    Julian

  • How do you get the help of a Page element to display text?

    How do you get the help of a Page element to display text? We entered our text in the help text of our Page element part. However, when you place the cursor of the mouse on the Page element, any help text is displayed? Any comment is appreciated. Thank you.

    How do you get the help of a Page element to display text?

    .. .a page element...

    Is there a link for the point label? Otherwise, change the model of wording of article to use the model named "Necessary with assistance" or "optional with assistance.

    When you place the cursor of the mouse on the Page element, any help text displayed?

    If there is a link, you must click on the link.

    Scott

  • How to set a pre selected value amx:selectOneChoice

    Hello

    I am facing a problem here.

    I have a page of amx. who has a drop down... shows the group list as below.

    < amx:selectOneChoice value = "#{bindings.groups.inputValue} ' label = 'Group' id = 'soc1" valueChangeListener = "#{ReportHandler.onGroupChange}" > "

    < amx:selectItems value = "#{bindings.groups.items}" id = "si1" / > "

    < / amx:selectOneChoice >

    Now, I can choose the values to drop down. and after selection, I can press a button print.

    My requirement is, on pressing the button, system will bring new service data set and displays the same page with the new list (data set obtained from service).

    but now, value drop-down list will be pre selected, what the user select before press go.

    I am able to display the list and develop all the features, but got stuck to display amx:selectOneChoice with the value preseleced.

    Need help...

    Thank you

    Ajoy Sinha

    Yes... the normal conditional instruction in amx page also work

    value = "#{pageFlowScope.custName eq"?} " "{'No customer selected': pageFlowScope.custName}.

    styleClass = "headerLabel" id = "ot6" / >

    If you need more information, open a new thread... .of continue here.

    Thank you

  • How can I get the help topics in windows on windows vista, when I click Help on any page web I always get the message of help topic not found this page under construction

    I BOUGHT A SECOND HAND TOWER WITH WINDOWS VISTA HOME PREMIUM PREINSTALLED, THE PROBLEM I HAVE WITH EACH WEB PAGE OR PROGRAM, WHEN I CLICK ON HELP ON THE TOP OF A PAGE, I GET THE WINDOWS HELP AND SUPPORT WINDOW POP UP. WHEN I TYPE IN A HELP TOPIC AND CLICK SEARCH, I ALWAYS GET A MESSAGE TELLING ME RESEARCH TOPIC NOT FOUND AND BELOW WHAT HE ALWAYS SAYS THIS PAGE IS UNDER CONSTRUCTION, IT DOESN'T MATTER WHAT HELP TOPIC I PAT ON THE SEARCH BOX, I STILL HAVE THE SAME MESSAGES

    SOMEONE CAN ME ADVISE ON THIS POINT.

    I WOULD REALLY APPRECIATE ANY HELP.

    JOHN ROBERTSON VS

    Hi JohnRobertsonVS,

    Method 1

    Refer to the Microsoft article to download and install Windows Help program (WinHlp32.exe), check to see if it helps.

    I can not open Help files that require the Windows Help program (WinHlp32.exe)

    http://support.Microsoft.com/kb/917607

    Method 2

    Try the method below and see if it helps.

    a. Open a command prompt window and run the following command:

    regsvr32 msxml3.dll

    b. Press ENTER.

    Note: To open a command prompt window, click Start, click programs, accessories principally made, right click Guest and then click run as administrator.

    Method 3

    If the previous step fails then I suggest that scan you SFC on the computer that would be a corrupt system file search.

    The analysis may take some time, so be patient. Windows allows to fix corrupt or missing files it finds. If the information of the installation CD is required to fix the problem, you may be asked to insert your Windows Vista installation CD.

    For more information please visit the link below.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

  • I can't get the help of a hearing aid Oticon Streamer (bluetooth) with my SONY KDL 46R450A

    I used my Streamer of hearing aids Oticon (bluetooth) with an older television and had to get a new.  I got the SONY but have struggled to make it work.  In theory, the streamer allows to increase or decrease using a up or down the TV volume.  Is there a magical combination of all audio options of the SONY with TIVO with FIOS TV?

    Thanks in advance to anyone who can help you.


  • How to get the help of the CS6, not CC?

    I had a specific question about opening templates, or you're wondering where to pick them up for InDesign CS6. I do not have CC, cannot afford it since it's for personal use.

    However, there is no specific product help file, and the Online offers now virtually only help CC. How do we get help just for the CS6?

    Using InDesign | Work with files and templates

    Using InDesign | Help and tutorials

  • Get the help of "Microsoft Office Live Add-in Sign-in has stopped" error messge

    A messge for error keeps popping up that says, "Microsoft Office Live Add-In has stopped' and gives me two options: check online for a solution and close the program and close the program.  I tried both without success. How to stop or correct this problem?

    Hi, Mike H.Mirelez,.
     
    a. you remember recent changes to your computer, then this error message began to pop up?
     
    Try the following and see if it helps fix the problem:
     
    Rename the OLConnector.dll
     
    a.Click on workstation
    b.Browse in the following location:
    C:\Program Files\Microsoft\Office Live\OLConnector.dll
    c.Right click on the file and click Rename. Rename the file in OLConnector.dll.old
    d.Close Explorer and restart the computer.
     
    Additional reference on:
  • get the unwanted letters instead of the picture in an e-mail message.

    Hi all


    I try to send a mail via gmail.com that I am able to send mail, but when I try
    Send an attachment so I get strange text instead of the picture
    his photo not showing but it is different in shape text appears in my Inbox.
    Here is the result.
    also get this error but I am able to send e-mail.
    ERROR at line 1:
    ORA-20000: Failed to send mail due to the
    following error: ORA-29277: invalid SMTP operation
    ORA-06512: at "MAIL.MAHI", line 159
    ORA-06512: at line 2
    ===============================================
    --BACKUP.SECBOUNDContent-
    Type: application/octet-streamContent-Disposition:
     attachment; filename="g.gif"Content-Transfer-Encoding: base64 
    Qk2O5QgAAAAAADYAAAAoAAAAwgIAABMBAAABABgAAAAA
    AFjlCAAAAAAAAAAAAAAAAAAAAAAAhNWuhNWuhNWuhNWu
    hNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuh
    NWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNW
    uhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhN
    WuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuh
    NWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWu
    hNWuhNWuhNWuhNWuhNWuhNWuhNWuhN
    WuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuh
    NWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNW
    uhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhN
    WuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhNWuhN
    and here the link that I followed to use with my codes...
    Re: Sending a message UTL_SMTP collateral issue unique jpg
    create or replace package body Mahi
           is
              -- Write a MIME header
              procedure write_mime_header (
                  p_conn in out nocopy utl_smtp.connection
               , p_name in varchar2
                , p_value in varchar2
              )
               is
              begin
                utl_smtp.write_data ( p_conn
                                     , p_name || ': ' || p_value || utl_tcp.crlf
                 );
             end;
             procedure mail (
                p_sender in varchar2
              , p_recipient in varchar2
               , p_subject in varchar2
               , p_message in varchar2
              )
              is
                l_conn           utl_smtp.connection;
                nls_charset    varchar2(255);
               v_src_loc  BFILE := BFILENAME('BACKUP', 'Logon.jpg');
               --v_src_loc BLOB;
          l_buffer   RAW(54);
          l_amount   BINARY_INTEGER := 54;
          l_pos      INTEGER := 1;
          l_blob     BLOB := EMPTY_BLOB;
          l_blob_len INTEGER;
         v_amount   INTEGER;
                  v_fname VARCHAR2(50);
    
         CURSOR img_cur IS SELECT photo_name,photo
      FROM temp_photo;
     
    
        --crlf  varchar2(2) := chr(10)||chr(13);
    
    PROCEDURE send_header(pi_name IN VARCHAR2, pi_header IN VARCHAR2) AS
       BEGIN
          UTL_SMTP.WRITE_DATA(l_conn,
                              pi_name || ': ' || pi_header || UTL_TCP.CRLF);
       END;
    
             begin
                -- get characterset
                select value
                into   nls_charset
                from   nls_database_parameters
                where  parameter = 'NLS_CHARACTERSET';
                /*
                select 
                photo into v_src_loc from
                temp_photo
                where id=1;
                */
                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
         --DBMS_LOB.COPY(l_blob, v_src_loc, v_amount);
         l_blob_len := DBMS_LOB.getlength(l_blob);
     
               -- establish connection and autheticate
               l_conn   := utl_smtp.open_connection (g_smtp_host, g_smtp_port);
                utl_smtp.ehlo(l_conn, g_smtp_domain);
                 utl_smtp.command(l_conn, 'auth login');
                 utl_smtp.command(l_conn,utl_encode.text_encode('[email protected]', nls_charset, 1));
                utl_smtp.command(l_conn, utl_encode.text_encode('xxxxx', nls_charset, 1));
                 -- set from/recipient
                  utl_smtp.command(l_conn, 'MAIL FROM: <'||p_sender||'>');
                 utl_smtp.command(l_conn, 'RCPT TO: <'||p_recipient||'>');
                -- write mime headers
                 utl_smtp.open_data (l_conn);
                 write_mime_header (l_conn, 'From', p_sender);
                write_mime_header (l_conn, 'To', p_recipient);
                write_mime_header (l_conn, 'Subject', p_subject);
                 write_mime_header (l_conn, 'Content-Type', 'text/plain; charset=us-ascii');
                 write_mime_header (l_conn, 'X-Mailer', g_mailer_id);
                 utl_smtp.write_data (l_conn, UTL_TCP.CRLF);
                 UTL_SMTP.WRITE_DATA(l_conn,
                             'MIME-Version: 1.0' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             'Content-Type: multipart/mixed; ' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             ' boundary= "' || 'BACKUP.SECBOUND' || '"' ||
                             UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn, UTL_TCP.CRLF);
       
     
                 -- write message body
                utl_smtp.write_data (l_conn, p_message);
                OPEN img_cur;
      LOOP
      FETCH img_cur INTO v_fname,l_blob;
    end loop;
    close img_cur;
                
                UTL_SMTP.WRITE_DATA(l_conn,
                             '--' || 'BACKUP.SECBOUND' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             'Content-Type: text/plain;' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             ' charset=US-ASCII' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn, UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,  p_message || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn, UTL_TCP.CRLF);
         
         UTL_SMTP.WRITE_DATA(l_conn,
                             '--' || 'BACKUP.SECBOUND' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             'Content-Type: application/octet-stream' ||
                             UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             'Content-Disposition: attachment; ' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             ' filename="' || 'gpg.jpg' || '"' || --My filename
                             UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF);
        UTL_SMTP.WRITE_DATA(l_conn, 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(l_conn,
                                  UTL_ENCODE.BASE64_ENCODE(l_buffer));
          UTL_SMTP.WRITE_DATA(l_conn, UTL_TCP.CRLF);
           l_buffer := NULL;
           l_pos    := l_pos + l_amount;
         END LOOP;
         UTL_SMTP.WRITE_DATA(l_conn, UTL_TCP.CRLF);
       
        -- Close Email
        UTL_SMTP.WRITE_DATA(l_conn,
                             '--' || 'BACKUP.SECBOUND' || '--' || UTL_TCP.CRLF);
         UTL_SMTP.WRITE_DATA(l_conn,
                             UTL_TCP.CRLF || '.' || UTL_TCP.CRLF);
                             UTL_SMTP.CLOSE_DATA(l_conn);
                             utl_smtp.close_data (l_conn);
         UTL_SMTP.QUIT(l_conn);
         DBMS_LOB.FREETEMPORARY(l_blob);
         DBMS_LOB.FREETEMPORARY(l_blob);
         DBMS_LOB.FILECLOSE(v_src_loc);
     
                    -- end connection
                utl_smtp.quit (l_conn);
                        exception
                 when others
                 then
                   begin
                      utl_smtp.quit(l_conn);
                    exception
                      when others then
                       null;
                   end;
                   
                   raise_application_error(-20000,'Failed to send mail due to the
     following error: ' || sqlerrm);
     DBMS_LOB.FREETEMPORARY(l_blob);
     DBMS_LOB.FREETEMPORARY(l_blob);
          DBMS_LOB.FILECLOSE(v_src_loc);
         raise;
             end;
          end;
          commit;
    Note:-I am using Stunnel, Oracle Database 11g R2 and operating system is Linux...
    I have installed Linux on virtualBox.


    Please suggest me why I get a strange text instead of the picture?
    If my code is wrong, please fix it for me...
    Thanks in advance...

    Tic Tac Toe
    Student.

    Published by: Johann April 15, 2011 22:57

    The main problem is, you have not specified clearly what you are doing and also not a not post your package specifications. After looking more closely at your code, I found that you use gmail.smtp.com and probably with stunnel (UTL_SMTP supports SSL).
    In addition, the main idea is to http://monkeyonoracle.blogspot.com/2009/11/plsql-and-gmail-or-utlsmtp-with-ssl.html
    If you would like to mention these facts, then probably someone can help you more sooner. In any case, it is an example of work of sending e-mail by using the gmail SMTP server.

    SQL> conn sys@orclsb as sysdba
    Enter password: ******
    Connected.
    SQL>
    SQL> SHOW USER
    USER is "SYS"
    SQL>
    SQL> /* My database version */
    SQL> SELECT * FROM v$version;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    
    SQL> /* Creating DIRECTRY OBJECT. The physical path is C:\ */
    SQL> CREATE DIRECTORY saubhik AS 'C:\';
    
    Directory created.
    
    SQL> /* Giving required grants to user SCOTT */
    SQL> GRANT READ,WRITE ON DIRECTORY saubhik TO scott;
    
    Grant succeeded.
    
    SQL> /* Now connecting to the user scott, to run the emailing procedure */
    SQL> conn scott@orclsb
    Enter password: *****
    Connected.
    SQL>
    SQL> SHOW USER
    USER is "SCOTT"
    SQL>
    SQL> 
    

    Now, the code principal.

    SQL> SHOW USER
    USER is "SCOTT"
    SQL>
    SQL> DECLARE
      2    v_nls_charset VARCHAR2(50);
      3    /*LOB operation related varriables */
      4    v_src_loc  BFILE := BFILENAME('SAUBHIK', 'Winter.jpg');
      5    l_buffer   RAW(54);
      6    l_amount   BINARY_INTEGER := 54;
      7    l_pos      INTEGER := 1;
      8    l_blob     BLOB := EMPTY_BLOB;
      9    l_blob_len INTEGER;
     10    v_amount   INTEGER;
     11
     12    /*UTL_SMTP related varriavles. */
     13    v_connection_handle  UTL_SMTP.CONNECTION;
     14    v_from_email_address VARCHAR2(30) := '[email protected]';
     15    v_to_email_address   VARCHAR2(30) := '[email protected]';
     16    /*
     17     I have used stunnel to send mail using smtp.gmail.com
     18     To get stunnel see http://stunnel.org/.
     19     The ORIGINAL idea is here :
     20     http://monkeyonoracle.blogspot.com/2009/11/plsql-and-gmail-or-utlsmtp-with-ssl.html
     21    */
     22    v_smtp_host          VARCHAR2(30) := 'localhost';
     23    v_subject            VARCHAR2(30) := 'Your Test Mail';
     24    l_message            VARCHAR2(200) := 'This is test mail using UTL_SMTP';
     25
     26    /* This send_header procedure is written in the documentation */
     27    PROCEDURE send_header(pi_name IN VARCHAR2, pi_header IN VARCHAR2) AS
     28    BEGIN
     29      UTL_SMTP.WRITE_DATA(v_connection_handle,
     30                          pi_name || ': ' || pi_header || UTL_TCP.CRLF);
     31    END;
     32
     33  BEGIN
     34
     35    SELECT value
     36      INTO v_nls_charset
     37      FROM nls_database_parameters
     38     WHERE parameter = 'NLS_CHARACTERSET';
     39
     40    /*Preparing the LOB from file for attachment. */
     41    DBMS_LOB.OPEN(v_src_loc, DBMS_LOB.LOB_READONLY); --Read the file
     42    DBMS_LOB.CREATETEMPORARY(l_blob, TRUE); --Create temporary LOB to store the file.
     43    v_amount := DBMS_LOB.GETLENGTH(v_src_loc); --Amount to store.
     44    DBMS_LOB.LOADFROMFILE(l_blob, v_src_loc, v_amount); -- Loading from file into temporary LOB
     45    l_blob_len := DBMS_LOB.getlength(l_blob);
     46
     47    /*UTL_SMTP related coding. */
     48    v_connection_handle := UTL_SMTP.OPEN_CONNECTION(host => v_smtp_host,
     49                                                    port => 1925);
     50    UTL_SMTP.EHLO(v_connection_handle, 'gmail.com');
     51    UTL_SMTP.COMMAND(v_connection_handle, 'auth login');
     52    UTL_SMTP.COMMAND(v_connection_handle,
     53                     UTL_ENCODE.TEXT_ENCODE('[email protected]',
     54                                            v_nls_charset,
     55                                            1));
     56    UTL_SMTP.COMMAND(v_connection_handle,
     57                     UTL_ENCODE.TEXT_ENCODE('my password', v_nls_charset, 1));
     58    --UTL_SMTP.MAIL(v_connection_handle, v_from_email_address);
     59    --UTL_SMTP.RCPT(v_connection_handle, v_to_email_address);
     60    UTL_SMTP.COMMAND(v_connection_handle,
     61                     'MAIL FROM: <' || v_from_email_address || '>');
     62    UTL_SMTP.COMMAND(v_connection_handle,
     63                     'RCPT TO: <' || v_to_email_address || '>');
     64    UTL_SMTP.OPEN_DATA(v_connection_handle);
     65    send_header('From', '"Sender" <' || v_from_email_address || '>');
     66    send_header('To', '"Recipient" <' || v_to_email_address || '>');
     67    send_header('Subject', v_subject);
     68    --MIME header.
     69    UTL_SMTP.WRITE_DATA(v_connection_handle,
     70                        'MIME-Version: 1.0' || UTL_TCP.CRLF);
     71    UTL_SMTP.WRITE_DATA(v_connection_handle,
     72                        'Content-Type: multipart/mixed; ' || UTL_TCP.CRLF);
     73    UTL_SMTP.WRITE_DATA(v_connection_handle,
     74                        ' boundary= "' || 'SAUBHIK.SECBOUND' || '"' ||
     75                        UTL_TCP.CRLF);
     76    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
     77
     78    -- Mail Body
     79    UTL_SMTP.WRITE_DATA(v_connection_handle,
     80                        '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF);
     81    UTL_SMTP.WRITE_DATA(v_connection_handle,
     82                        'Content-Type: text/plain;' || UTL_TCP.CRLF);
     83    UTL_SMTP.WRITE_DATA(v_connection_handle,
     84                        ' charset=US-ASCII' || UTL_TCP.CRLF);
     85    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
     86    UTL_SMTP.WRITE_DATA(v_connection_handle, l_message || UTL_TCP.CRLF);
     87    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
     88
     89    -- Mail Attachment
     90    UTL_SMTP.WRITE_DATA(v_connection_handle,
     91                        '--' || 'SAUBHIK.SECBOUND' || UTL_TCP.CRLF);
     92    UTL_SMTP.WRITE_DATA(v_connection_handle,
     93                        'Content-Type: application/octet-stream' ||
     94                        UTL_TCP.CRLF);
     95    UTL_SMTP.WRITE_DATA(v_connection_handle,
     96                        'Content-Disposition: attachment; ' || UTL_TCP.CRLF);
     97    UTL_SMTP.WRITE_DATA(v_connection_handle,
     98                        ' filename="' || 'Winter.jpg' || '"' || --My filename
     99                        UTL_TCP.CRLF);
    100    UTL_SMTP.WRITE_DATA(v_connection_handle,
    101                        'Content-Transfer-Encoding: base64' || UTL_TCP.CRLF);
    102    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    103
    104    /* Writing the BLOL in chunks */
    105    WHILE l_pos < l_blob_len LOOP
    106      DBMS_LOB.READ(l_blob, l_amount, l_pos, l_buffer);
    107      UTL_SMTP.write_raw_data(v_connection_handle,
    108                              UTL_ENCODE.BASE64_ENCODE(l_buffer));
    109      UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    110      l_buffer := NULL;
    111      l_pos    := l_pos + l_amount;
    112    END LOOP;
    113    UTL_SMTP.WRITE_DATA(v_connection_handle, UTL_TCP.CRLF);
    114
    115    -- Close Email
    116    UTL_SMTP.WRITE_DATA(v_connection_handle,
    117                        '--' || 'SAUBHIK.SECBOUND' || '--' || UTL_TCP.CRLF);
    118    UTL_SMTP.WRITE_DATA(v_connection_handle,
    119                        UTL_TCP.CRLF || '.' || UTL_TCP.CRLF);
    120
    121    UTL_SMTP.CLOSE_DATA(v_connection_handle);
    122    UTL_SMTP.QUIT(v_connection_handle);
    123    DBMS_LOB.FREETEMPORARY(l_blob);
    124    DBMS_LOB.FILECLOSE(v_src_loc);
    125
    126  EXCEPTION
    127    WHEN OTHERS THEN
    128      UTL_SMTP.QUIT(v_connection_handle);
    129      DBMS_LOB.FREETEMPORARY(l_blob);
    130      DBMS_LOB.FILECLOSE(v_src_loc);
    131      RAISE;
    132  END;
    133  /
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    

    I got the email in my email perfectly with the attachment.

  • Satellite L455D-S5976 not found so I can't get the BIOS or downloads

    l455d-s5976 is not found on this site, so I can get the bios or downloads.
    I even put in the serial number and which did not either.
    Can not say that fills me full of promise that ill get the help I need.

    I want to update bios in the hope that it will solve my problem.
    My problem is the laptop overheating and closing, according to some investigations it seems that the fan does not pick up speed when it is hot. Fan works, just at lower speeds, strange thing, it seems to run a lot faster when I switch on the laptop and it starts.
    No idea if the bios update can help but its something that I want to try.

    This seems to be US model so try please find it on http://www.csd.toshiba.com/cgi-bin/tais/support/jsp/home.jsp?nav=Download

    Good bye

  • How to get the Hibernate in Windows XP

    How to get the button to Hibernate in Windows XP

    XP forums:

    http://social.answers.Microsoft.com/forums/en-us/category/WindowsXP

    Link above is for XP Forums.

    There is a list of the different Forums XP to the link above to help you.

    You get the help you need there.

    Here is the Vista Forums.

    See you soon

    Mick Murphy - Microsoft partner

  • I am trying to download itunes. I get the guest (your security settings allow this file to download).

    I have lowered the security settings, popup blocker and firewall lowered to re - try and have the same thing happen. Help, please! Thank you.

    XP forums:

    http://social.answers.Microsoft.com/forums/en-us/category/WindowsXP

    Link above is for XP Forums.

    There is a list of the different Forums XP to the link above to help you.

    You get the help you need there.

    Here is the Vista Forums.

    See you soon

    Mick Murphy - Microsoft partner

  • Try to get the footer links to view online

    http://pooledesignstudio.com/janhale/testamonials.html

    I'm trying to get the footer to dispay links: inline and obviously do not have the right selector.

    I want it to look like the footer on this page: http://pooledesignstudio.com/janhale/about.html

    I'm actually not pulling my hair right now because of my faith that I will get the help I need.

    Thank you for your help.

    Kind regards

    Kath

    Try

    .footer li {display: inline ;}}

    But why use a class to the div of footer rather than the ID WHEREAS?

    You can also try this-

    .footer ul {overflow: hidden ;}}

    .footer li {float: left; width: 100px ;}}

    / * Adjust the width according to your needs * /.

  • Select all radio buttons in a table based on the value of selectOneChoice

    Hi all

    I have a selectOneChoice with two values

    positive i.

    II. negative

    1.png

    created vo and am

    I have an adfTable with selectOneRadio added as a transitional attribute.

    The table is created on the vo.

    2.png

    what I have to do is, when the user select positive of selectOneChoice all the positive radiobutton in the adfTable must be selected and the same for negative also.

    3.png

    I can get the value of the selectOneChoice in the bean using valueChangeEvent.

    But I need assistance in the selection of all positive values in adfTable using the selectOneChoice value.

    Reference would be useful.

    Thank you very much

    Kind regards

    Jean-Felix

    Hi all

    Let me post the answer, hope this helps someone.

    selectOneChoice

    Positive P

    N negative

    on selectOneChoice event ValueChangeListener

    to loop through the rows of the adfTable

    If valueChangeEvent.getNewValue () is equal to 'p '.

    Assign PositiveRadiobtn attribute 'p '.

    otherwise set it to "n".

    Kind regards

    Jean-Felix

  • How to get the value of an af:Table SelectOneChoice

    V11.1.2.4.0 - JSF JDeveloper

    Greetings,

    Im having a problem getting a column value that is an object of a select choice.

    This isn't a common problem, as I actually did something that others so please follow my problem

    Description and if you have questions/answers please answer below.

    I create a database view that returns me 3 columns, say TestValue TestCode, TestDescription.

    I added an extra temporally column in my OV and called Temp.

    I drag / drop my OV, remove value Temp and its position of the column, I drag / drop a LOV, who comes from a different view.

    that shows me the doctor name & first name and identification number of the back doctor select a value of choice.

    I'm using a function that go through the iterator, gets the lines and save them in the database (no matter how).

    The problem is my selectonechoice, are not row.bindings.DoctorId.InputValue, but the links. DoctorId.InputValue instead, so I can retrieve value selectonechoice of the current line.

    Then when my loop is finished and insert rows in my database, id of the doctor of the line everyone is the same as the binding do not change through the loop.

    I don't know how to add value to the current line select only one option to use the correct value to each loop of the line.

    Here is my loop function:

            DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
            DCIteratorBinding iterator = bc.findIteratorBinding("ExaminationsIterator");
            DCBindingContainer bindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    
    
             RowSetIterator rsi = iterator.getRowSetIterator();  
             int i=0;
             
            OperationBinding save_exams = bindings.getOperationBinding("SAVE_EXAMINATION");
            OperationBinding save_exams_commit = bindings.getOperationBinding("SAVE_EXAMINATION_COMMIT");
               
            try{
             while(i < rsi.getRowCount()){
                 
                 Row r = iterator.getCurrentRow();
                                 
                 save_exams.getParamsMap().put("CodeTest", r.getAttribute("CodeTest"));
                 save_exams.getParamsMap().put("Dates", r.getAttribute("Dates"));   
                 save_exams.getParamsMap().put("CodeId", orderid.getValue());   
                 save_exams.getParamsMap().put("Times", r.getAttribute("Times"));    
                 save_exams.getParamsMap().put("DoctorId", resolveExpression("#{bindings.DoctorId.attributeValue}").toString()); 
                 save_exams.getParamsMap().put("IdPatients", patientid.getValue());   
                 save_exams.execute();
                 rsi.next();
                 i++;
             }
            
                save_exams_commit.execute();
    

    I get the connection id of the current doctor and the value of the rows no.

    Can you help me on this please?

    I created a work around solution, until an expert that I come with a more advanced solution.

    (1) I add a LOV at the id of the doctor on the view target object.

    (2) on the duration, I fill my view of database

    3) go through all my DB view iterator lines

    (4) appends each line on the View object target (missing id of the doctor, because I want it to be on common language runtime) & commit lines

    (5) after the loop ends and the target object from view show me results from the view of DB, I choose the runtime id of the doctor and commit the changes if

    the new lines, with the new update will be finally filled to the database.

    I hope this helps if anyone has a similar task.

    Please let me know if you find a more direct solution, this work with 2 tables to fill 1.

Maybe you are looking for

  • MacBook Air freezes

    Initially 2015 11 inch Macbook Air 128 GB i5 freezes every now and then. When it freezes, I can not move the mouse or anything like that and I see no beachball. Anyone know what could be the problem?

  • Satellite Pro L300 - Trouble you sign up for the free upgrade to Windows 7

    I just bought a Toshiba Satellite Pro L300 and informed me that I qualify for the free upgrade to Windows 7.However, whenever I try and enter the SN ID, I get the message "SNID not allowed!I left 3 messages with Teck Wah (the company that manages thi

  • HP Probook 450 G2: HP SimplePass Identity Protection - 450 G2 Windows 8.1Pro 64-bit software

    I have valid drivers installed on this machine is able to find HP SimplePass Identity Protection software for my HP ProBook 450 G2 running Windows 8.1 64bits. Can anyone help?

  • Windows 7 problem!

    Didn't know where to put that theres no problems forum here. Move to the right place, if you wish. Im a House of 64-bit windows 7 in the course of execution. Ive been having a problem with the start up like the windows 7 loading screen freezes and I

  • How to connect a 3.5-inch disk?

    1. product: Pavilion a1000y 2. op system: Win XP 3. no error message indicating 4. the changes made to the system: no recent changes 5. I need to install a floppy drive 3.5 inch 1.44 MB.  There is a card reader slot and power cable but no ribbon cabl