How to use HTML in SQL

hi guys,,
i've a procedure to send emails to the employee,,,
i want to format the text of the email ,,
e.g i want to change the color of the employee name to be blue or any color,,
Can i use an HTML code to do certain changes if NOT how can i do ?,,
thanks in advance

tnx 4 ur reply
here is my procedure
CREATE OR REPLACE procedure HRMSADM.test_sks_bday2 as
cursor c1_bday is
select PERSONAL_NO, EMPLOYEE_NAME,DATE_OF_BIRTH,EMAIL_ORG_SERVER, SEX from ORG_EMPLOYEE_MSTS
where EMP_STATUS IN ('A','S') and to_char(DATE_OF_BIRTH,'dd/mm') = to_char(sysdate,'dd/mm') order by PERSONAL_NO ;
v_email varchar2(100);
v_msg varchar2(400);
v_gender varchar2(5);
v_msg1 varchar2(200);
BEGIN
For c1 in c1_bday Loop
if rtrim(c1.EMAIL_ORG_SERVER) is not null then
v_email := '[email protected]' ;---c1.EMAIL_ORG_SERVER||@test.com ;
if c1.SEX = 'M' then
v_gender := 'MR.' ;
elsif c1.SEX = 'F' then
v_gender := 'MS.' ;
else
v_gender := null;
end if;
v_msg := 'Dear '|| v_gender || c1.EMPLOYEE_NAME ||',' || utl_tcp.crlf ||
' '|| utl_tcp.crlf || 'Wishing You a Happy Birth Day and Many Happy Returns of the Day'|| utl_tcp.crlf ||
' '|| utl_tcp.crlf ||
' '|| utl_tcp.crlf ||
' '|| utl_tcp.crlf ||
'From - HR Team, ';
HRMSADM.HRMS_MAIL ( [email protected], v_email ,'Happy Birth Day' , v_msg );
else
null;
end if;
end loop;
End;
this procedure sends email now i want to format the text 'Wishing You a Happy Birth Day and Many Happy Returns of the Day' to be in a different color.

Similar Messages

  • How to use HTML Tags in Smartforms

    Hi,
    Can you please help me out in knowing how to use HTML tags in Smartforms,
    suppose i want to display some text in BOLD i should use the tag </b> as shown
    </b>  Header Information <b>
    regards
    Ranveer

    Hi Ranveer ,
        check this following links,
      hope this wil helps you
    <a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/smartforms/smartform%20in%20abap.pdf">check this link,to know abt HTML in smartforms</a>
    rgds,
    shan

  • How to use HTML Tags in webdynpro java

    Hi,
         Can any body tell me how to use HTML Tags in webdynpro java.
    If u provide me with sample code it will become more usefull.
    Thanks & Regards,
    SN

    HI,
    Please find the steps:
    Create a html file and store in your webdynpro project
    Add the html contents in your file
    & Create a IFRAME UI element and refer you html file
    Now you able to see the html in webdynpro
    Thanks & Regards,
    Ram

  • How to use views in sql script report?

    All all
    Can any one tell how to use views in sql script report?

    Most of the views are based on tables (or other views which are based on tables).
    The view typically shows one org at a time based on the context that is set.
    If you need records for all orgs, you need to use the underlying tables. Oracle typically names the tables with a _all suffix.
    e.g. PO_HEADERS will show records for one org at a time. PO_HEADERS_ALL will show records for all orgs.
    Hope this answers your question,
    Sandeep Gandhi

  • How to use PHP with SQL?

    how to use sql in php and output a new ERP table contains every order_number, every order_quantity and so on then ouput sum of company and then sum of area
    and so on.
    now i only know a little how to use sql in php and you can give some examples of this?

    This sounds like a nice little homework exercise.
    Check the PHP FAQs for Oracle/PHP help
    http://www.oracle.com/technology/tech/php/htdocs/php_faq.html
    http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html
    For SQL help, check http://asktom.oracle.com/
    -- cj

  • How to use HTML Video for iPad in iWeb

    I agree with all the advantages of HTML Video. How do you use html video on your iweb site?
    I want my iWeb site video to be viewable on iPads.
    I have learned the technique to use the HTML Snippet tool in iWeb to successfully post Flash video. I created all of my animations using Kenote's keyframe ability and have exported them to Quicktime and then have converted them into flash with Vertical Moon's Video to SWF. Then simply upload the SWF file to a folder on your idisk, then use the Flash Video insert HTML Snippet and insert the idisk url of the SWF file and you are done. What is the technique for HTML Video?
    I have found some HTML video encoders, here are the links:
    http://www.projekktor.com/ the technique is not clear to me and appears complicated.
    http://www.brightcove.com/en/ this one is way too expensive at $99 a month.
    http://jilion.com/sublime/video this one looks great but is not yet available and I am guessing it is a converter that will make your iMovie Quicktime into HTML Video.
    I have all of the i-Apps and Final Cut Express (2 revs out of date). Can I get the proper HTML video file from these programs, unless I am missing something I don't think so.
    Most people do not believe I made my site completely with Keynote and iWeb but here it is. http//www.falcon-pacific.com
    Thank You Very Much for considering my question. I will put the results on my iWeb site and the exact procedure and acknowledge all the sources of the solution.

    I want my iWeb site video to be viewable on iPads.
    Your videos ARE viewable on a iPad. No need for explicit HTML video coding.
    If you export your movies to iPhone that's all there is to do. You can do it in QT Pro/iMovie
    And HTML Video is a HTML code, not the movie itself :
    <video width="480" height="270" src="movie.m4v" controls></video>
    I use the iPad simulator in the SDK :
    http://developer.apple.com/ipad/sdk/
    Here's the result :
    http://ipad.dailynews.webege.com
    My blog : [html5 video|http://www.wyodor.net/blog/archives/2009/06/entry_181.html]
    And some links in my post in this topic : [HTML 5 in IWEB|http://discussions.apple.com/thread.jspa?threadID=2404927&tstart=30]

  • How to use property file - sql query define in property file

    Hi All,
    Anybody please tell me how to use property file.
    I have placed sql query in propery file and I have to access this in my file.
    well so far this is my code but don't know how to implement in the following ...
    pstmt = con.prepareStatement("select * from registration where username=?");
    instead of writting the query I want to use the property file.
    so far I have developed the following code...
    FileInputStream fis = new FileInputStream("querysql.property");
    Properties dbProp = new Properties();
    dbProp.load(fis);is the code correct... or is there another way to access property file
    Please help.
    please reply soon....
    Thanks

    Before answering, check if it's already been done here http://www.jguru.com/forums/view.jsp?EID=1304182

  • How to use html codes in epub files?

    In Ipad ibook application can i use html codes in that books..
    Most of the html codes are working except the text box.  any one can help me to fix this ?

    application-param tag in weblogic-application.xml may be used to define parameters:
    webapp.encoding.default
    webapp.encoding.usevmdefault
    webapp.getrealpath.accept_context_path
    http://e-docs.bea.com/wls/docs81/programming/app_xml.html#1034632
    "Harshad Nanal" <[email protected]> wrote:
    >
    When we build an ear file , Weblogic-application.xml provides application-param
    tag?
    are they similar to env-entry in ejb-jar.xml.
    Can I use application-param tag to define a configurable params
    say myName and value as "Harshad"
    How do i read it in the application say a simple java class that is included
    in
    a jar inside the ear file.

  • How to use HTML tags inside JSF pages

    I am creating a Menu using dataTable and outputLink in a JSF page.
    <div class="bodyarea">
    <div id="location">
    <ol>
    <h:dataTable value="#{menuItem.breadCrumb}" var="bread" >
    <h:column>
    <li>
    <h:outputLink id="crumbID" value="#{bread.menuLink}">
    <h:outputText id="crumpName" value="#{bread.menuLabel}" style="width: 165px;"/>
    </h:outputLink>
    <li>
    </h:column>
    </h:dataTable>
    </ol>
    </div>
    </div>
    I want to use <li> HTML tag as shown in code above before and after every <tr> tag formed, but when i run it and see view source, this is how it shows:
    NOTE: you can see it has thrown out of <table> tag itself.
    <div class="bodyarea">
    <div id="location">
    <ol>
    <li>
    </li>
    <table>
    <tbody>
    <tr>
    <td><a id="_id0:0:crumbID" href="/eApps/admin/loginPage.jsp?MenuItem=-1"><span id="_id0:0:crumpName" style="width: 165px;">Home</span></a></td>
    </tr>
    <tr>
    <td><a id="_id0:1:crumbID" href="/eApps/admin/loginPage.jsp?MenuItem=3~-1"><span id="_id0:1:crumpName" style="width: 165px;">HIM Admin</span></a></td>
    </tr>
    </tbody>
    </table>
    </ol>
    </div>
    </div>
    Can some one help me, how do i use HTML tags inside <h:dataTable>.
    Or is their any other way i should form my Menus, to fully utilize to HTML tags.
    Thanks
    Ravi

    Hello,
    You can embed the verbatim elements in your datatable, ie,
    <h:dataTable value="#{menuItem.breadCrumb}" var="bread" >
      <h:column>
        <f:verbatim><li></f:verbatim>
        <h:outputLink id="crumbID" value="#{bread.menuLink}">
          <h:outputText id="crumpName" value="#{bread.menuLabel}" style="width: 165px;"/>
        </h:outputLink>
        <f:verbatim></li></f:verbatim>
      </h:column>
    </h:dataTable>

  • How to use the generated SQL of "Recommendation"

    Dear Experts,
    I am using KXEN recommendation function. After trained the model, I expose the result in form of HANA SQL. However, I am really have no idea how to make this SQL runnable because there are some subqueries like:
    FROM $Dataset "SPACEIN"
      LEFT OUTER JOIN (SELECT * FROM  WHERE "GRAPH_NAME" = 'Transactions') "PRODUCTS" ON ("PRODUCTS"."KXNODEFIRST" = "SPACEIN".MemberID)
      LEFT OUTER JOIN (SELECT * FROM  WHERE "GRAPH_NAME" = 'Product') "RULES" ON ("PRODUCTS"."KXNODESECOND" = "RULES"."KXNODESECOND")
      LEFT OUTER JOIN (SELECT * FROM  WHERE "GRAPH_NAME" = 'Transactions') "NOTIN" ON ("RULES"."KXNODESECOND_2" = "NOTIN"."KXNODESECOND") AND ("NOTIN"."KXNODEFIRST" = "SPACEIN".MemberID)
    Please pay attention to the red parts. While $Dataset, I assume it should be the data source which is used to train the model, but how to handle the "GRAPH" parts(the next 3 subqueries)? There are something missing after "FROM" clause, what should I fill in here? why the XKEN will generate sucn incomplete codes?
    Thanks for your help!

    Hi Richard,
    To apply a recommendation model, you first need to save your model in your database. (saving the model in the database for such models and for what you want to do is mandatory).
    Once you saved it, you will see many tables starting with "Kx" : KxInfos, KxLinks, KxNodes...
    These tables contains information on the nodes available in the data used, on the links between products.
    Now, if you generate the SQL code for Hana, the name of your KxLinks table should now be used in the SQL code.
    When prompted for $Dataset and $Key, you should specify in place of $Dataset the name of the table on which you want to apply your model. In place of $Key, you should enter the name of the key of this table (e.g. UserId).
    In my case $Dataset =>KAR_UniqueCustomers and $Key=>UserID
    My generated code looks like this :
    FROM KAR_UniqueCustomers "SPACEIN"
    LEFT OUTER JOIN (SELECT * FROM KxLinks1 WHERE "GRAPH_NAME" = 'Transactions') "PRODUCTS" ON ("PRODUCTS"."KXNODEFIRST" = "SPACEIN".UserID)
    LEFT OUTER JOIN (SELECT * FROM KxLinks1 WHERE "GRAPH_NAME" = 'ItemPurchased') "RULES" ON ("PRODUCTS"."KXNODESECOND" = "RULES"."KXNODESECOND")
    Note that your application table must contain:
    - A column with the same name as your users identifier in the training dataset. It contains the list of distinct users (stricly 1 row for each customer id)
    - A column with the same name as your products name in the training dataset. It can contain the name of the same product for all customers.
    I hope you'll make it work !
    Armelle

  • How to use HTML parameters in Java applet

    Hello
    In perl I have created a form with things like a selectiuon box called currency and text fields called product for example. Then when I click submit the perl program can pick up the currency and product parameters.
    I have read about applet param eg <param name="param1" value="Apple"> is this the same thing? Or is it different?
    Can I use HTML parameters or do I need to use applet param? I am confused.
    If applet param is what I need, then how do I change the param values say by editing text in a text field?

    You will need to use Java Native Interface JNI. Ther are many posts on the subject, please search, and this is the documentation:
    http://java.sun.com/j2se/1.5.0/docs/guide/jni/spec/jniTOC.html

  • How to use SP_transaction_notification in SQL to provide SAP warnings?

    Hi Guys,
    I use SP_transaction_notification in SQL to block certain event and give error messages on sap screens.  Anyone knows how to provide a warning only using the same technique?
    For example if a user doesn't enter customer reference number on a order , can you provide a warning?
    Thanks

    Hi,
    As an addt. info, this link seems unavailable :
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid /53cefa6a-0a01-0010-cd8e-e7c189cb6519
    I've tested it after browsing the link.
    Rgds,

  • IaaS SQL/VM - how to use an existing SQL VM

    Hello
    I have a Cloud Service with a Window Web VM and SQL VM. They both are on the same Vnet. Now I want to add a DB using the existing SQL VM. But this VM does not show up of the Server drop down menu in "Specify Database setting"
    wizard. What am I missing here?
    If I let the DB Wizard add a new server (leveraging PaaS offer for SQL DB), how can I make sure that this new server shows up on my Vnet (the same one where I have Web VM on)? I assume that these VMs needs to be on the same Vnet to be able to communicate
    with each other. 
    Thanks in advance for your help

    Hello,
    It seems that you had mix up Windows Azure SQL database with SQL Server on Azure VM. When you create a SQL Server virtual machine in Azure, it similar to on-premises SQL Server installed on VM. You can create and manage databases with SSMS.
    If you create a SQL database on Management Portal, the SQL database server host a VM of the datacenter, you cannot using the existing SQL Server VM which your created yourself.
    When connect to the SQL database from your azure VM which hosted on Cloud Service, there is no need to create a virtual network, just configure the firewall rule of the SQL database server to allow connection from Windows
    Azure Serivces.
    Reference: How to: Configure the Server-Level Firewall Settings (Azure SQL Database)
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • How to use html tags inside java

    I have to retrieve data from db and return the data to my index.jsp page.
    Its working fine.
    But I have o display in a pable format using html. How to embed html tags? I tried this way. Its not working. Any suggestions?
       String htmlOpen = "<html>";
        String htmlEnd = "</html>";
        String titleOpen ="<title>";
        String titleEnd ="</title>";
        String bodyOpen = "<body>";
        String bodyEnd = "</body>";
        for (int i = 1; i <= cols;i++){
            output = output + rsmd.getColumnName(i);
         while (rst.next()) {
            for (int i = 1; i <= cols;i++){
                      output = output +rst.getString(i);
      result = htmlOpen + titleOpen + titleEnd + bodyOpen + output+ bodyEnd + htmlEnd;
        stmt.close();
        conn.close();
         return htmlOpen;
      }

    See those charcters in your JSP that look like "<%"? Those characters mean: "the code after this is Java - interpret it as such".
    Then when you close your Java block with "%>", it then means: "the code after this is html - output it to the request response that is being built. However, within the html code, the syntax "<%= java_variable_name %>" means "take the current value of that Java variable and insert it into the html output".
    Here's an example:
    %>
    <table cellspacing="2" cellpadding="2" border="1">
    <tr>
    <%
        String s = null;
        for (int i = 1; i <= ncol; i++)
          s = rsmd.getColumnName(i);
    %>
      <th nowrap><A HREF="<%=sortLink.toString()%>&sortby=<%=s%>"><%= s %></th>
    <%
    %>
    </tr>
    <%
        if (rs == null || numRows <= 0)
          %><tr><td colspan="10" nowrap>No data available for specified query.</td></td><%
        else
          int rowCounter = 0;
          while(rs.next() && rowCounter < PAGE_SIZE)
            rowCounter++;
    %>
      <tr><%
            for (int i = 1; i <= ncol; i++)
              s = rs.getString(i);
              if (rsmd.getColumnName(i).equalsIgnoreCase("password"))
                    %><td nowrap>********</td>
    <%
              else
                %><td nowrap><%= s %></td>
    <%
            %></tr><%
    %>
    </table>This is JSP 101, what they teach in the first hour of class...
    Here's a decent JSP tutorial:
    http://www.jsptut.com/

  • How to use HTML or XML described visual forms for data entry in Java app?

    Hi,
    We are considering to use HTML as a mean of configuration for visual content and layout of data entry dialogs in our Java GUI applications. Java program will need to be able to populate/collect data into/from dialog controls. I am guessing that JEditorPane and FormView classes could be used for this but I have not figured out yet how to do this.
    I would really appreciate any help you could provide with respect to this. Please share any tips, utilities, references, etc. Maybe one can suggest non-HTML (e.g. XML, UIML, ...) way to achieve the same requirements and recommend some utilities respectively.
    Thanks.
    -Vitaly

    Just to clarify, we need a solution for Java application (no applet, no web server, no servlets, no JSPs, no EJBs).
    -Vitaly

Maybe you are looking for

  • How do I get my menu bar at the top of the page with no gaps?

    How do I get my menu bar at the top of the page with no gaps? Whenever I move it there is a huge gap at the top of the page which I cant seem to get rid of, i posted about this before but none of the suggestions seemed to work for me. i'm not very go

  • Unable to start Oracle Process manager (instance1) service.

    When I try to start this service I get the following error in Event Manager: Faulting application opmn.exe, version 11.0.0.0, time stamp 0x4ed8d1e8, faulting module yod.dll, version 6.0.6002.18541, time stamp 0x4ec3e855, exception code 0xc0000135, fa

  • Refund checks out of AP

    Hello, We are trying to issue customer refund checks out of AP. What is the process (standard if any, since we are on the same box) to send the refund details to AP for the check to be issued out of there. What preliminary steps need to be done to th

  • Term store management link invisible to Site Owner

    HI All, I am owner [ assigned through site owners group] of sub site in a site collection, But I didn't find Term store management link in site administration settings, where us site collection administrator has able to see the link. I can access dir

  • Need Help Troubleshooting MacBook Wireless

    Hello, I have looked on this forum and other forums about why the wireless is so noticeably slow. We have an iBook 700 mhz. and now a new macbook 2GB Ram and 2.0 ghz and it is slower on surfing the web than the iBook. I have read that it might be the