How to display multiple values in the Email notification?

Hi all

I have a table in my page column, when I click on apply button changes, Notification email will be sent to the user with updated information.
In the notification email, I've included the text field, date field value, everything works fine and I can get by email with the details.
under select query that returns several value.i need to include these values in the notification e-mail.
select distinct asset.NAME AA FROM ASSET_TBL asset join ENV_ASSET_MAP ENV ON ASSET.ID = ENV.ASSET_ID AND ENV.RESV_ID = :P24_ID
Please suggest a solution.
I tried the code below, but did not get any email!
declare
l_body_html varchar2(4000);
env_list apex_application_global.vc_arr2;
i number:= 1;

begin
For enrow in (select distinct asset.NAME AA FROM ASSET_TBL asset join ENV_ASSET_MAP ENV ON ASSET.ID = ENV.ASSET_ID AND ENV.RESV_ID = :P24_ID)
LOOP
env_list(i):=enrow.AA ;
i := i+1;
end loop;
return Apex_UTIL.TABLE_TO_STRING(env_list,':');
l_body_html :=  '<p><font size ="3" color = BLUE> <u> New Reservation Form</u></font> <br><br>
<table>
<tr><td> Selected Reservation : </td><td>'||env_list(i)||'</td></tr>
</table><br><br>
</p>';
apex_mail.send(
p_to => '[email protected]',
p_from =>'[email protected]',
P_CC =>'[email protected]',



P_BODY      => l_body_html,
P_BODY_HTML => l_body_html,

p_subj => 'Notification Mail!');

wwv_flow_mail.push_queue();

EXCEPTION
WHEN OTHERS
THEN
l_body_html := l_body_html || '. Error Occurred while sending email='||SQLERRM;

apex_mail.send(
p_to                     => '[email protected]',
p_from                => '[email protected]',
P_CC                     => '[email protected]',
P_BODY               => l_body_html,
P_BODY_HTML => l_body_html,
p_subj                   => 'Notification Mail!');

wwv_flow_mail.push_queue();



end;
Thank you
with respect,
Robette.

Your process will end with the return on line 11 statement.

I think that instead of return you want to load a local variable you put int the body of the email. That is to say. See *.

declare
l_body_html varchar2(4000);
env_list apex_application_global.vc_arr2;
i number:= 1;

******l_asset_name_list VARCHAR2(32767);*

begin
For enrow in (select distinct asset.NAME AA FROM ASSET_TBL asset join ENV_ASSET_MAP ENV ON ASSET.ID = ENV.ASSET_ID AND ENV.RESV_ID = :P24_ID)
LOOP
env_list(i):=enrow.AA ;
i := i+1;
end loop;
*******l_asset_name_list :=* Apex_UTIL.TABLE_TO_STRING(env_list,':');
l_body_html :=  '

New Reservation Form

Selected Reservation : '||*******l_asset_name_list*||'


'; apex_mail.send( p_to => '[email protected]', p_from =>'[email protected]', P_CC =>'[email protected]', P_BODY => l_body_html, P_BODY_HTML => l_body_html, p_subj => 'Notification Mail!'); wwv_flow_mail.push_queue(); EXCEPTION WHEN OTHERS THEN l_body_html := l_body_html || '. Error Occurred while sending email='||SQLERRM; apex_mail.send( p_to => '[email protected]', p_from => '[email protected]', P_CC => '[email protected]', P_BODY => l_body_html, P_BODY_HTML => l_body_html, p_subj => 'Notification Mail!'); wwv_flow_mail.push_queue(); end;

There may be other things to settle, these seem to be the main problem.

Tags: Database

Similar Questions

  • How to display Quick values in the story

    With the help of 11.1.1.6.2

    In a dashboard page, I have a table with a hierarchy of dimension for the organization. If you click on a division he runs a link action to call a script in the browser (javascript in a text on the dashboard section) from the division. If you expand the section, and then click on a market, it calls the function javascript even.

    Then, the Javascript function uses path go to update an analysis in an iFrame on the dashboard page and passes the value of the Division or the market value.

    The analysis of the target has two filters: Division is invited and the market is invited.

    So, after all, my question is how could display two values from the call of the road go into a narrative on the analysis of the target? Or I guess the other question is how to view the filter on the narrative values.

    Sorry for the long explanation, but I hope it makes sense.

    Thanks for any help or suggestion.

    Brad

    Try something using the Div tag
    for ex:
    < div id = filterValues > @{WeekBetween} {Default Value} < / div >
    < script >
    var i = document.getElementById('filterValues').innerHTML;
    document.getElementById('filterValues').innerHTML = aParams ["varDivision"];
    < /script >

    If brand pls help

  • How to display multiple images at the same time in CS6?

    How to display multiple images at the same time in CS6?

    Hello

    If you go to window > reorganize you can choose from several display options. Below, I have chosen two horizontal spaces since I have two images, but you can select other options if you have more than one image.

  • display multiple values at the completion point

    All,

    IAM create multiple entries for autopopulate point as shown in this jquery plugin link below but iam trying to change that, then values from the query to the table. How can I achieve even using web services apex 4.1.1 but iam trying NOT to use remote url or external file?

    http://jQueryUI.com/AutoComplete/#multiple

    concerning

    All,

    I'm still digging around and looking everywhere but this blog below how I can pass the valueset returned to my jquery as variable below.

    sample:

    http://ORA-00001.blogspot.com/2010/02/ref-cursor-to-JSON.html

    var availableTags is ['data1', 'data2', 'data3'];.

    concerning

  • How to display a value in the profile not with metadata

    Hello

    I want to display some as helloworld above checkin profile page. But I don't want to use any metadata for this field. Is there a way to do this.

    Please make a contribution

    Thanks in advance

    <$setResourceInclude("std_field_group_header_show_hide","& nbsp;")$="">

    '& nbsp;' aid to the layout.

  • [ADF, JDev 12.1.3] How to display multiple records on the same page... not in a table but they appear a form for each record

    Hallo,

    I need to create a page that displays the records of a VO, but I would not use a table.

    Instead, I would like to display a form for each record to be displayed.

    Forms must appear one above the other and each form should have 2 buttons: one to remove the file/form itself and one to add a new file/form.

    When you press the button Add a new empty form should be dynamically added to the page (so that the user can fill) and created related record.

    When REMOVE button is pressed the form (which contains the operated button) should be disappear and the record shuould be deleted.

    Creations and destruction must be applied only if the user clicks a button on CONFIRMATION / COMMIT.

    Maybe this http://digilander.libero.it/flattit82/OTN_FILES/MultiFormPage.png picture can help to understand what I want to do.

    You kindly help me?

    Thank you

    Federico

    Hi Federico

    I was saying that your page layout can be achieved using af: table

    See this image:

    This provision is af:table (I think same as yours), just add a column in the table and put all the fields in this column then correct layout allows to design as a provision on the form or group layouts

    I'm not saying it's the best approach, but you can try this

    Thank you

  • How to display multiple values read from database in a textfield

    Hi all

    I'm working on a feature where say if there are 3 employees in a Department and then I want to show all names (separated by commas) employees of the Department in a textfield.

    do any body have any suggestions?

    Thank you
    Tauceef.

    See also:

    {: identifier of the thread = 1033907}

  • How to block the recipients to see the list of multiple recipients on the email sent with outlook express 6.0?

    How can I block message recipients to see the list of multiple recipients on the email sent with outlook express 6.0?

    Put the recipients in the BCC (blind carbon copy) field instead of the Cc field. If you don't see the BCC field and then in your new message go to view > all headers.

    DavidF

  • I can't have multiple files open at the same time! I need to compare the content from one to the other. How to display two files at the same time?

    I can't have multiple files open at the same time! I need to compare the content from one to the other. How to display two files at the same time?

    Hi sindres79946597,

    Open Acrobat Reader DC, navigate to the Edit-> Preferences-> General-> uncheck "Open Documents in the new tab in the same window.

    Now, reboot your system, when you open multiple PDFs that all will open in a new window so that you can easily compare.

    Kind regards
    Nicos

  • How to pass multiple values of payload through the contextual event - jdev 11.1.2.3

    Hello:

    How to configure contextual events publish several values of payload?

    On click of a button, I'm declaritively publish a contextual event, which works very well when a single value is passed to the event handler.

    My event handler method has the signature of:
    eventHandler (String)

    But now I also have an oracle.jbo.domain.Number, so my new eventHandler looks like this:
    eventHandler (Number, String)

    How to pass two values during editing of the event and how to place the payload with multiple values for the new eventHandler?

    All article or code would be greatly appreciated.

    Thanks for the help.

    You define a bean holding your values and pass an instance of the bean as a payload...

    Timo

  • To show multiple values in the report?

    Hi all

    I have to show the value of prompt in demand from a prompt of dashboard.

    If the type drop-down list command prompt, a single value, I can use variable presentation.

    But I have a problem when multiple selection prompt property...

    How to display selected prompt in the report header values?

    Thank you

    Impossible to display the different values in a report header, but here is a workaround to display the selected values.

    (1) create a report smaill with just a single column, the column that is used in the multiple selection prompt.

    (2) put a filter on this "is invited" to receive the values selected from the prompt.

    (3) to customize the header and enter, "selected to request values.

    (4) place this report on the regular report.

    Now, when the user selects values, the list of values will appear at the top of your report.

  • How to add multiple lines when the button is clicked

    How to add multiple lines when the click on button now is just add a row .plz give me idea how... waiting for answer

    / public final class screen extends MyScreen
    {
    /**
    * Creates a new object of MyScreen
    */
    ObjectChoiceField obj1 obj2, obj3, obj4.
    Table of String() = {'101 ', ' 102'};
    String of shadow [] = {"Shade1", "Shade2"};
    Rolls of string [] = {'101 ', ' 102'};
    String cutting [] = {"100-150", "150-200"};
    Chain of selectedindex1, selectedindex2, selectedindex3, selectedindex4;
    LabelField lbl1 lbl2, lbl3, lbl4;
        
    GFM LinedGridFieldManager;
    HFM HorizontalFieldManager, hfm1, hfm2 hfm3;
    VerticalFieldManager vfmMain;
        
    public MyScreen()
    {
        
    Set the displayed title of the screen
    hfm1 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm2 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm3 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    HFM = new HorizontalFieldManager (HorizontalFieldManager.FIELD_RIGHT);
    vfmMain = new VerticalFieldManager (Manager.NO_VERTICAL_SCROLL |) Manager.NO_HORIZONTAL_SCROLLBAR);
            
    obj1 = new ObjectChoiceField ("", graph, 0, FIELD_LEFT);
    obj2 = new ObjectChoiceField ("", blind, 0, FIELD_LEFT);
    Obj3 = new ObjectChoiceField ("", rolls, 0, FIELD_LEFT);
    Obj4 = new ObjectChoiceField ("", cuts, 0, FIELD_LEFT);
            
    LBL1 = new LabelField("");
    LBL2 = new LabelField("");
    lbl3 = new LabelField("");
    lbl4 = new LabelField("");
            
    ButtonField btnAdd = new ButtonField ("ADD", FIELD_RIGHT);
            
    GFM = new LinedGridFieldManager (4, LinedGridFieldManager.VERTICAL_SCROLL);
            
    hfm1.setMargin (20, 0, 10, 0);
    hfm1. Add (new LabelField ("Chart"));
    hfm1. Add (obj1);
    hfm1. Add (new LabelField ("Shade"));
    hfm1. Add (obj2);
            
    hfm2. Add (new LabelField ("Rolls"));
    hfm2. Add (Obj3);
    hfm2. Add (new LabelField ("Cuts"));
    hfm2. Add (Obj4);
    HFM. Add (btnAdd);
            
    GFM. Add (new LabelField ("Chart"));
    GFM. Add (new LabelField ("Shade"));
    GFM. Add (new LabelField ("Rolls"));
    GFM. Add (new LabelField ("Cuts"));
            
    vfmMain.add (hfm1);
    vfmMain.add (hfm2);
    vfmMain.add (hfm3);
    vfmMain.add (hfm);
    vfmMain.add (new SeparatorField());
    vfmMain.add (gfm);
    Add (vfmMain);
            
    btnAdd.setChangeListener (new FieldChangeListener()
    {
    ' Public Sub fieldChanged (field field, int context) {}
    TODO self-generating method stub
    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];
                    
    While (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }
    }
    });
    }
    }

    Hi Piya,

    I run your code, and according to your logic that it works correctly.

    It's adding that line only once because according to your logic that one line can be added to MDT, if you do not want to add line on each click on the button, follow these steps:

    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];

    Lbl1 LabelField = new LabelField("");
    Lbl2 LabelField = new LabelField("");
    LabelField lbl3 = new LabelField("");
    LabelField lbl4 = new LabelField("");
    If (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }

  • How to display a value of transitional attribute to column db entity column?

    Mr President

    Help me at the time 12.2.1 jdev.

    How to display a value of transitional attribute to column db entity column?

    I have the requirement to indicate a value of transitional attribute column in the column db entity for some reason any.

    Any body can help as my show in the picture below

    The StAmt is a transitional column and a column db of the entity.

    tworows.png

    Any body can help please. !

    Concerning

    This means that the amount to be the attribute will always has the same value of the transient attribute? If so, why do you want the amount attribute the transient attribute is sufficient?

    Anyway, if you want to get attribute data in attribute transitional amounts you can open class ViewRowImpl and appearing in the getter or amount, you can get the value in the transitional as attribute:

      public Number getAmount()
      {
        return getTransientAttribute();
        //return (Number) getAttributeInternal(AMOUNT);
      }
    

    in this case, the quantity data store database will not appear on the table it will still get the transitional attribute data and it's meaningless.

  • How to display multiple pages in Folio Builder LCA preview?

    I created a folio with an article that has two directions, but what displayed preview image shows only the first page. How to display multiple pages in Folio Builder LCA preview?

    You've probably noticed only the layout, not the article or folio.

    When you preview in InDesign using the file > preview Folio or when you click the button Preview in the Panel inlays Folio, you preview a version of raster of the provision itself. This preview contains no article property. If you use the Folio Builder Panel to get a preview of the article or the folio, you will have an overview of the double orientation.

    Moreover, most publishers prefer creating single-direction folios to reduce the dimensions of design efforts and folio.

  • How to display multiple images in a single window?

    How to display multiple images in a single window?  I want to compare images side by side, not in tabs.

    The editor preferences > General > turn on enable floating documents, then window > images > float all in windows.

Maybe you are looking for