How to display an URL in a UTL_SMTP email in a package.

Hi all, I tried to display this uRL from a text line in a email i send out.
lv_message :=
            lv_message
         || 'ABCDEFGHIJKLM'
         || lv_bss_siteid_notin_lkup;
      lv_message := lv_message || gv_crlf;
      lv_message := lv_message || gv_crlf;
      lv_message := lv_message || gv_crlf;
      lv_message := lv_message || gv_crlf;This error popss up
Error(1368,13): PLS-00103: Encountered the symbol "<" when expecting one of the following: ( - + case mod new null <an identifier> <a double-quoted delimited-identifier> <a bind variable> avg count current max min prior sql stddev sum variance execute forall merge time timestamp interval date <a string literal with character set specification> <a number> <a single-quoted SQL string> pipe <an alternatively-quoted string literal with character set specification> <an alternatively-quoted SQL string>
Message was edited by:
CrackerJack

Hi Billy,
I grabbed this procedure from metalink.But it does not work.
CREATE OR REPLACE PROCEDURE sp_batch_email_test
IS
    mailhost VARCHAR2 (30) := 'smtp.company.com';
    mail_conn utl_smtp.connection;
    crlf VARCHAR2(2) := CHR (13) || CHR (10);
    message_1 LONG;
    v_email varchar2(16000);
BEGIN
    mail_conn := utl_smtp.open_connection (mailhost, 25);
    utl_smtp.helo (mail_conn, mailhost);
    utl_smtp.mail (mail_conn, '[email protected]');
    utl_smtp.rcpt (mail_conn, '[email protected]');
      message_1 := 'From: Mr Sender < [email protected] >' || crlf ||
         'Subject: Testing Hyperlink' || crlf ||
         'To: Mrs Receiver <[email protected]>' || crlf || '
|| crlf || crlf ;
utl_smtp.data(mail_conn, 'MIME-Version: 1.0' ||CHR(13)||
CHR(10)||'Content-type: text/html' || CHR(13)||CHR(10)||message_1);
utl_smtp.quit (mail_conn);
END;
I tried incorporating || 'ABCDEFGHIJKLM' but it displayed as literal and not as a hyperlink.
Any idea on howto programmatically through PL/SQL send an email which will allow a hyperlink to be created?
Please click edit to see teh codes.Really appreciate if someone could throw some light into this.
I don't why that URL is not displaying in the procedure...grr
Message was edited by:
CrackerJack

Similar Messages

  • How to display non-URL-based thumbnail images in JTable

    I'm trying to display thumbnail images as a tooltip popup for certain cells in a JTable. The thumbnail images are java image objects that have been retrieved dynamically as the result of a separate process--there is no associated URL. For this reason, I can't use the setToolTipText() method of the JTable.
    My attempts to JTable's createToolTip() method also failed as it seems the ToolTipManager never calls this method for a JTable.
    As a workaround, I've added a MouseMotionListener to the JTable that detects when the mouse is over the desired table cells. However, I'm not sure how to display the popup over the JTable. The only component that I can get to display over the JTable is a JPopupMenu, but I don't want to display a menu--just the image. Can anyone suggest a way to display a small popup image over the table?
    Thanks.

    Thank You Rodney. This explains why my createToolTip() method wasn't being called, but unfortunately I'm no closer to my goal of displaying a true custom tooltip using a non-URL image rather than a text string. If I make a call to setToolTipText(), at any point, the text argument becomes the tooltip and everything I have tried in createToolTip() has no effect. However, as you pointed out, if I don't call setToolTipText(), the table is not registered with the tooltip manager and createToolTip() is never even called.
    To help clarify, I have attached an SSCCE below. Please note that I use a URL image only for testing. In my actual application, the images are available only as Java objects--there are no URLs.
    import javax.swing.*;
    import java.awt.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    public class Test {
        static Object[][] data = {
                {"Cell 0,0", "Cell 0,1"},
                {"Cell 1,0", "Cell 1,1"}};
        static String[] columnNames = {"Column 0", "Column 1"};
        static JFrame frame;
        static String testImageURLName = "http://l.yimg.com/k/omg/us/img/7c/0a/4009_4182164952.jpg";
        static JTable testTable = new JTable(data, columnNames) {
            public JToolTip createToolTip() {
                System.out.println("testTable.createToolTip() called");
                Image testImage = getTestImage();
                // this.setToolTipText("Table ToolTip Text");
                JLabel customTipLabel = new JLabel(new ImageIcon(testImage));
                customTipLabel.setToolTipText("Custom ToolTip Text");
                JToolTip parentTip = super.createToolTip();
                parentTip.setComponent(customTipLabel);
                return parentTip;
        // This image is loaded from a URL only for test purposes!!!
        // Ordinarily, the image object would come from the application
        // and no URL would be available.
        public static Image getTestImage() {
            try {
                URL iconURL = new URL(testImageURLName);
                ImageIcon icon = new ImageIcon(iconURL);
                return icon.getImage();
            catch (MalformedURLException ex) {
                JOptionPane.showMessageDialog(frame,
                        "Set variable \"testImageName\" to a valid file name");
                System.exit(1);
            return null;
        public static void main(String[] args) throws Exception {
            frame = new JFrame("Test Table");
            frame.setSize(300, 100);
            // Set tool tip text so that table is registered w/ tool tip manager
            testTable.setToolTipText("main tooltip");
            frame.getContentPane().add(testTable);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
    }

  • How to display a URL in Portal

    Hi friends
    I am an XI guy trying to figure out how to display an IVIEW in the portal.
    I have a URL that I want to display in EP.
    What are the steps to do this?
    Any help will be greatly appreciated.
    Thanks
    Ram

    Hi Ram,
    You can create an URL iview and below is the link that helps you in doing that
    http://help.sap.com/saphelp_nw70/helpdata/EN/4c/eee2bedf3b4082b14a933e5ee63472/frameset.htm
    reward points if helpful

  • How to display Active URLs

    Hi ALL
    i have a table with a column that contains a url: #{row.taskUrl}. Its displayed as any string, how can i display it as an active URL?
    thanks

    thanks for your reply, actually i used the outputFormatted, and i concatenated the url with the Html <a> element and it worked:)

  • How to Display Full URL in Address Bar?

    I'm using Firefox 14.0.1 on a new computer running Windows 7 Home Edition. I cannot for the life of me figure out why my URLs are getting truncated. For instance, right now, all I can see in my address bar for this website is "https://support.mozil;" if I type in yahoo.com I end up with "http://www.yahoo.co." I can scroll through in the address bar to see the rest of the URL, but I'd like to see the whole thing at once!
    I know you can type about:config into the address bar and change the value of browser.urlbar.trimURLs to false, but I tried that and it doesn't do a thing. I have Firefox on my old computer, and it's not giving me the issue there. So perhaps I have an interfering plugin? The only new thing I have on this system is HP SimplePass (I can't stand HP software). Anyone know what might be causing the issue?

    I, too, had the truncated URL in the address bar. (Firefox 16.0.2 on Windows 7 Home Premium)
    These measures did not help:
    # about:config and change browser.urlbar.trimURLs to false
    # Help > Troubleshooting Information > Reset Firefox
    This measure did help:
    # uninstall HP SimplePass
    I had had the full URL in the address bar while running HP SimplePass, so I do not believe that they are inherently incompatible. I'm just saying these measures, in this order, gave me back the full URL.

  • How to display URL images and URL link (html) from Smartforms?

    Hi Gurus,
    I'm having difficulty on how to display targeted URL images and URL link from the smartforms, after i sending it out as html mail. The mail i sent just can be preview as a plain text, which can't execute the html code that i put inside the smartforms itself. I follow a few step from this very useful blog.. Hopefully, you guys can give me some solutions or ideas on this.
    /people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp -thanks to Pavan for his useful blog.
    My code is like this..
    <--- Start Code.
    FORM call_smartforms.
      DATA : lv_subject TYPE so_obj_des,
             lc_true(1) VALUE 'X',
             lw_control_parameters TYPE ssfctrlop,
             lw_output_options TYPE ssfcompop,
             lc_graphics(8) VALUE 'GRAPHICS',
             lw_xsfparam_line TYPE ssfxsfp,
             lc_extract(7) VALUE 'EXTRACT',
             lc_graphics_directory(18) VALUE 'GRAPHICS-DIRECTORY',
             lc_mygraphics(11) VALUE 'mygraphics/',
             lc_content_id(10) VALUE 'CONTENT-ID',
             lc_enable(6) VALUE 'ENABLE',
             lw_job_output_info TYPE ssfcrescl,
             lw_html_data TYPE trfresult,
             lw_graphics TYPE ssf_xsf_gr,
             lt_graphics TYPE tsf_xsf_gr,
             lv_html_xstr TYPE xstring,
             lw_html_raw LIKE LINE OF lw_html_data-content,
             lv_incode TYPE tcp00-cpcodepage VALUE '4110',
             lv_html_str TYPE string,
             lv_html_len TYPE i,
             lc_utf8(5) VALUE 'utf-8',
             lc_latin1(6) VALUE 'latin1',
             lv_offset TYPE i,
             lv_length TYPE i,
             lv_diff TYPE i,
             lt_soli TYPE soli_tab,
             lw_soli TYPE soli,
             lc_mime_helper TYPE REF TO cl_gbt_multirelated_service,
             lv_name TYPE mime_text VALUE 'sapwebform.htm',
             lv_xstr TYPE xstring,
             lw_raw TYPE bapiconten,
             lt_solix TYPE solix_tab,
             lw_solix TYPE solix,
             lv_filename TYPE string,
             lv_content_id TYPE string,
             lv_content_type TYPE w3conttype,
             lv_obj_len TYPE so_obj_len,
             lv_bmp TYPE so_fileext VALUE 'BMP',
             lv_description TYPE so_obj_des VALUE 'Graphic in BMP format',
             lc_doc_bcs TYPE REF TO cl_document_bcs,
             lc_bcs TYPE REF TO cl_bcs,
             lc_send_exception TYPE REF TO cx_root,
             lw_adsmtp TYPE lty_adsmtp,
             lv_mail_address TYPE ad_smtpadr,
             lc_recipient TYPE REF TO if_recipient_bcs,
             lc_send_request TYPE REF TO cl_bcs,
             lv_sent_to_all TYPE os_boolean.
      DATA : v_language TYPE sflangu VALUE 'E',
             v_e_devtype TYPE rspoptype.
      v_form_name = 'ZTEST_EMAIL'.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = v_form_name
        IMPORTING
          fm_name            = v_namef
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
    starting here. ***
    Set title for the output
      lv_subject = 'Smartforms.'.
    Set control parameters to "no dialog"
      lw_control_parameters-no_dialog = lc_true.
    IF lw_service_subject-code = lc_fm1.
    *--- To get output device type
      CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
        EXPORTING
          i_language    = v_language
          i_application = 'SAPDEFAULT'
        IMPORTING
          e_devtype     = v_e_devtype.
      lw_output_options-tdprinter = v_e_devtype.
      lw_control_parameters-getotf = 'X'.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
    Set output options
      lw_output_options-xsf        = lc_true.
      lw_output_options-xsfcmode   = lc_true.
      lw_output_options-xsfoutmode = 'A'.
      lw_output_options-xsfoutdev  = space.
      lw_output_options-xsfformat  = lc_true.
      lw_xsfparam_line-name  = lc_graphics.
      lw_xsfparam_line-value = lc_extract.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
      lw_xsfparam_line-name  = lc_graphics_directory.
      lw_xsfparam_line-value = lc_mygraphics.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
      lw_xsfparam_line-name  = lc_content_id.
      lw_xsfparam_line-value = lc_enable.
      APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
    Get the smartform content
      CALL FUNCTION v_namef
        EXPORTING
          control_parameters   = lw_control_parameters
          output_options       = lw_output_options
    *pass other application specific parameters (eg order number, items ).
      IMPORTING
          job_output_info    = lw_job_output_info
      TABLES
          tt_tabh              = tt_tabh
          tt_tabb              = tt_tabb
          tt_tabf              = tt_tabf
      EXCEPTIONS
          formatting_error = 1
          internal_error   = 2
          send_error       = 3
          user_canceled    = 4
          OTHERS           = 5.
      IF sy-subrc = 0.
       break mhusin.
      ENDIF.
      lw_html_data  = lw_job_output_info-xmloutput-trfresult.
      lt_graphics[] = lw_job_output_info-xmloutput-xsfgr[].
      CLEAR lv_html_xstr.
      LOOP AT lw_html_data-content INTO lw_html_raw.
        CONCATENATE lv_html_xstr lw_html_raw INTO lv_html_xstr IN BYTE MODE.
      ENDLOOP.
      lv_html_xstr = lv_html_xstr(lw_html_data-length).
      CALL FUNCTION 'SCP_TRANSLATE_CHARS'
        EXPORTING
          inbuff       = lv_html_xstr
          incode       = lv_incode
          csubst       = lc_true
          substc_space = lc_true
        IMPORTING
          outbuff      = lv_html_str
          outused      = lv_html_len
        EXCEPTIONS
          OTHERS       = 1.
    *HACK THE HTML CODE GENERATED BY SMARTFORM TO MAKE THE
    *EXTERNAL IMAGES APPEAR AS <IMG> TAG IN HTML
      REPLACE ALL OCCURRENCES OF '<IMG' IN lv_html_str WITH '<IMG' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '/>' IN lv_html_str WITH '/>' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '</A>' IN lv_html_str WITH '' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '<' IN lv_html_str WITH '<' IGNORING CASE.
      REPLACE ALL OCCURRENCES OF '>' IN lv_html_str WITH '>' IGNORING CASE.
    CALL METHOD html_control - >load_mime_object
       EXPORTING
         object_id  = 'ZWN'
         object_url = 'ZWN.GIF'
       EXCEPTIONS
         OTHERS     = 1.
      REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH lc_latin1.
    REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH 'iso-8859-1'.
       break mhusin.
      lv_html_len = STRLEN( lv_html_str ).
      lv_offset = 0.
      lv_length = 255.
      WHILE lv_offset < lv_html_len.
        lv_diff = lv_html_len - lv_offset.
        IF lv_diff > lv_length.
          lw_soli-line = lv_html_str+lv_offset(lv_length).
        ELSE.
          lw_soli-line = lv_html_str+lv_offset(lv_diff).
        ENDIF.
        APPEND lw_soli TO lt_soli.
        ADD lv_length TO lv_offset.
      ENDWHILE.
      CREATE OBJECT lc_mime_helper.
      CALL METHOD lc_mime_helper->set_main_html
        EXPORTING
          content     = lt_soli
          filename    = lv_name
          description = lv_subject.
      LOOP AT lt_graphics INTO lw_graphics.
        CLEAR lv_xstr.
        LOOP AT lw_graphics-content INTO lw_raw.
          CONCATENATE lv_xstr lw_raw-line INTO lv_xstr IN BYTE MODE.
        ENDLOOP.
        lv_xstr = lv_xstr(lw_graphics-length).
        lv_offset = 0.
        lv_length = 255.
        CLEAR lt_solix[].
        WHILE lv_offset < lw_graphics-length.
          lv_diff = lw_graphics-length - lv_offset.
          IF lv_diff > lv_length.
            lw_solix-line = lv_xstr+lv_offset(lv_length).
          ELSE.
            lw_solix-line = lv_xstr+lv_offset(lv_diff).
          ENDIF.
          APPEND lw_solix TO lt_solix.
          ADD lv_length TO lv_offset.
        ENDWHILE.
        CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_filename.
        CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_content_id.
        lv_content_type = lw_graphics-httptype.
        lv_obj_len      = lw_graphics-length.
    *Add images to the email
        CALL METHOD lc_mime_helper->add_binary_part
          EXPORTING
            content      = lt_solix
            filename     = lv_filename
            extension    = lv_bmp
            description  = lv_description
            content_type = lv_content_type
            length       = lv_obj_len
            content_id   = lv_content_id.
      ENDLOOP.
      TRY.
          lv_subject = lv_subject.
          lc_doc_bcs = cl_document_bcs=>create_from_multirelated(
                   i_subject          = lv_subject
                   i_multirel_service = lc_mime_helper ).
        CATCH cx_document_bcs INTO lc_send_exception.
        CATCH cx_bcom_mime INTO lc_send_exception.
        CATCH cx_gbt_mime INTO lc_send_exception.
      ENDTRY.
    Create send request
      TRY.
          lc_bcs = cl_bcs=>create_persistent( ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
      TRY.
          lc_bcs->set_document( i_document = lc_doc_bcs ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
    Set-up email receiver
      lv_mail_address = '[email protected]'.
    TRANSLATE lv_mail_address TO UPPER CASE.
      TRY.
          lc_recipient = cl_cam_address_bcs=>create_internet_address(
              i_address_string = lv_mail_address ).
        CATCH cx_address_bcs INTO lc_send_exception.
      ENDTRY.
      TRY.
          lc_bcs->add_recipient( i_recipient = lc_recipient ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
    Send smartforms as HTML email
      TRY.
          lc_bcs->send( ).
        CATCH cx_send_req_bcs INTO lc_send_exception.
      ENDTRY.
      COMMIT WORK.
      WRITE:/ 'Mail sent'.
    ENDFORM.                    "call_smartforms
    End Code --->
    Thanks and Regards.

    1- put your images in a directory under the web app directory. Example: app/images/
    2- in your jsp, use: String file = application.getRealPath("/images/"); to get the images directory. See http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)
    3- it's not the right forum to post this kind of question. Post them in the JSP/Servlet JSTL forum instead

  • How to assign a URL in the Tabular Form

    Hi,
    I am using the htmldb.item api's to create manually,the Tabular form. I have got a column in the database(View) like
    ''||substr(DESCRIPTION,1,30)||decode(substr(DESCRIPTION,30,1),null,null,'...')||'' DESCRIPTION,
    which displays as a URL and when the user clicks this URL, the page will have a popup page(in this case it is redirected to page 52).
    My probelm is , if I use wwv_flow_item.display_and_save for this column, I dont see the URL, but it displays the above entire string (along with the HTML tags).
    If I do not use wwv_flow_item.display_and_save, I can not use this item in the COllections as I am using the some validations to display an Error message (Inline with field and in Notification)
    I cannot display the Validation error in the - On Error Page as I should prevent the user to use the browser buttons
    Please let me know how to display the URL and to have this information in the Collection
    TIA
    Ravi

    Ravi,
    Can you fetch the column twice, once into a non-escaped display type that does not generate a form item and again into a hidden item for your collection?
    Scott

  • How to display the HTML pages in RRC/RQM dashboard using OpenSocial gadget

    Hi,
    I have a requirement as below:
    1. I have couple of HTML pages which are hosted in the sharepoint site and I would like to display the HTML pages
    2. I would like to have an OpenSocial gadget in the RRC/RQM dashboard that will display the HTML pages  which are hosted in my sharepoint site.
    Could you please suggest the best approach to create an OpenSocial gadget in the IBM's RRC/RQM dashboard whcih will display html contents of another URL ?
    Thanks.
    Knowledge is power.

    Hi Manoj,
    As I understand, you would like to display SharePoint page in another platform.
    Since the you are involving third party platform, you might still need to contact their support engineer about how to render other pages.
    From SharePoint side, by default, SharePoint won't let end user to display site page to other platform, you could add "<WebPartPages:AllowFraming runat="server"/>" in master page or single page layout. So that SharePoint ASP.Net
    page could be displayed on other platform.
    Here I'm talking about ASP.Net page, since HTML page in SharePoint cannot be displayed in browser as I tested, it will be downloaded directly. So I'd suggest you use ASP.Net page as workaround.
    https://social.msdn.microsoft.com/Forums/office/en-US/c8755a6b-f33a-43ed-97d9-8f03c336aa1d/how-to-display-sharepoint-url-in-iframe-in-aspnet-page?forum=sharepointdevelopment
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • How can I get Firefox 4 to display the URL of active tabs in the location bar so I can see and copy it?

    The only URL that I ever see in the location bar is the last one I typed there. No matter which tab I activate, the last typed URL is displayed. When I need to copy the URL of an active tab to paste into an email or something I can't see it.
    The location bar used to display the URL of each active tab and you could simply click in the address field and the URL would be highlighted so you could edit/copy it or jump to the end of a very long URL to see the final file name.
    I can't get this feature to work and I really need this feature as I need to copy URL's quite often. When I have multiple tabs active I sometimes forget which one is for which domain and need to see the URL. It is very annoying to surf blind.
    Please help me with this issue as quickly as possible so I can once again do my work easily and with the firefox browser instead of chrome. :(

    A couple of possible causes.
    The first is the file that stores details of browsing history and bookmarks is corrupt. For details on how to fix that see http://kb.mozillazine.org/Locked_or_damaged_places.sqlite
    Another possible cause is an add-on interfering with the location bar. To test this, use the procedure in this link - https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How to display the image which in KM folder using url iview

    Hi Friends
    How to display the image, which is under KM folder structur using the url iview.
    i trying using url iview url as  \document\testfolder\abc.jpg as url for the iview.
    but its now working .. so please help me how to slove this problem
    If is not the correct way then please suggest me best way to achive this.
    Thanks
    Mukesh

    Hi Mukesh,
    I think this may work,
    1, Create a HTML Layout.
        You can put your image wherever  u want with HTML Codes.
        Check this, [Article|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3915a890-0201-0010-4981-ad7b18146f81] & [Help|http://help.sap.com/saphelp_nw04/helpdata/en/cc/00c93e9b2c3d67e10000000a114084/frameset.htm]
        With this, u can use the standard KM commands also.
    2, U need to use KM Navigation iView for this rather than KM Doc iView.
    3, In the Nav iView, u can use &rndLayoutSet=nameOfUrHTMLLayout to force the view with this new layout.
    Regards
    BP

  • CRM 2013: Iframe does not display the url set in onform load event with setSrc. How to make this work?

    I have a situation we need to display a url in Iframe when a form is loading. the url is set in code with setSrc, or updated the query string value. this worked in crm 2004 not any more in 2013.  MSDN states the below to avoid in OnLoad event. what
    is the best way to handle this situation?  Searched web people recommend using setInterval which i dont want to use.
    Any help on this issue is appreciated. 
    https://msdn.microsoft.com/en-us/library/gg328034(v=crm.6).aspx
    Avoid using the OnLoad Event. IFRAMES and web resources load asynchronously and the frame may not have finished loading before the Onload event script finishes. This can cause the src property of the IFRAME or web resource
    you have changed to be overwritten by the default value of the IFRAME or web resource URL property.

    Thank you for you reply.  this URL you send uses window.setInterval which i am not comfortable using it. we need to call clearInterval(),
    if not the IFrame refresh every second. 
    function SetURL()
    if(Xrm.Page.ui.controls.get("IFRAME_ActivitySmmary")!=null)
    Xrm.Page.ui.controls.get("IFRAME_ActivitySmmary").setSrc(reportUrl + "&id="+ customerId);
                    Xrm.Page.ui.controls.get("IFRAME_ActivitySmmary").setVisible(true);
    else
    { window.setInterval("SetURL()",1000);}

  • How to track the URL that comes from a referred page using XSQL Custom Handler

    Hi,
    I have a cold fusion page(say cf.cfm) that sent a request to xsql page(say test.xsql) and then xsql page displays results. I want to capure the URL of cf.cfm page and then after checking its host name and path name for correctness then want to display the test.xsql results.
    Please let me know how can I capture URL of the refered page(cf.cfm) in the Custom Handler and then I want to extract host-name and path-name out of that url and on the basis of their values I want to display the result of XSQL page(test.xsql).
    Regards
    a2012

    req.getHeader("Referer") will return the referring url

  • How to display database items

    can anyone tell me how to display the selected contents of
    the database by using a variable from my form field(like text box
    )

    Hello Guys!
    Sorry forever to get back. Going to throw this up here quick
    so I dont time out, but if you need further help post back and I
    will help with specific questions.
    Using the City, State example. This operation is two fold.
    (a) the search page, and (b) the results page.
    (a) On your search page you would have two fields. City and
    State. Make sure your table that holds these fields are containted
    within a form tag. (Insert > Form > Form). Also make sure
    your textfields have names. You can click on the textfield to
    highlight in design view and change the name from 'textfield' and
    'textfield1' to 'city' and 'state'..
    Highlight the form tag and in the properties panel where it
    says "action" insert the URL/file of your results page. This is the
    page that is actually going to display the information, then save
    your work.
    (b) Open up your results page, and in the bindings panel
    click the "+" then select query. In the 'simple' window name your
    recordset (example: rsStores) select your connection, then select
    the table you desire to display results from. From this window you
    can also choose a field to use as an order by. Do not use the
    filter!
    With this done and 'without' saving yet, click on the
    "advanced" tab. You should now see and a simple statement in the
    window that looks something like:
    SELECT *
    FROM Stores (The name 'Stores' will actually be replaced with
    your table name)
    Below the statement you will see 'parameters' with a + and -.
    Hit the plus to add a parameter. For name use varState, for Type
    use text, for Value use Request("State") and for default value use
    zero. Replicate the process for varCity using Request("City") for
    the value. (The requests are the same names as the names you used
    to name your fields in the search form). Now go up to the original
    statement and edit it to look like this:
    SELECT *
    FROM Stores WHERE yourfieldname = varState AND WHERE
    yourfieldname = varCity
    Replace 'yourfieldname' with the actual field name holding
    the values. Keep EVERYTHING case sensitive. Testing in design view
    will not work because there are no values yet passed. So click ok,
    save the page and upload them to server. Test by going to the
    search page and submitting the search form.
    Hope that helps..!!

  • How to display special characters in APEX Classic Report column

    Ref: Thread: How to display newline characters as new lines
    Version: APEX 3.2
    Hi,
    I have created an classic SQL Report with one of the columns being a decode that gives a value 'Post'(the value should be highlighted in Red) on one condition and 'Pre' on another. I have followed the advice given in the page (URL provided above) , i.e. I have changed Strip HTML to 'No', changed Display as to 'Display as text (escape special characters, does not save state)'. I have also passed this value back to the same page to be stored in a page item each time a link (another column in report) in report is clicked. I have tried passing it as #DEADLINE# and \#DEADLINE#\. The issue I face is, instead of the value being highlighted in Red, it gets passed back as a string holding the value 'Post'. Is there any way I can get this to display as it should without the Strip HTML being changed to 'Yes'.
    Thanks very much.
    Rohi
    Edited by: Rohi on 18-Jul-2012 04:21

    876651 wrote:
    Hi,
    Thanks for your response.
    I am trying to display a page item that is derived from a report column based on a click on the URL link (*view >*>)
    This page item (here, it is Manager_ID) should ideally be highlighted when a particular condition is satisfied (achieved using a DECODE in the report).
    But it is not displayed like it should be.
    I do not want the value to be displayed along with the html tags as a string.
    I want the html tags to take effect and highlight the value within it.
    Initially, I had set Strip HTML to Yes and the value was returned without any highlighting .
    So I changed it to 'No' and and it contained the html tags.
    I am not sure what setting in APEX Report Attributes can help me achieve that effect I want.None of the report settings are relevant. They affect the rendering of the report and none of the columns you were changing the properties of were actually rendered.
    You can't pass HTML and CSS around in URL parameters.
    I suggest you pass *2* values in the column link: the MGR ID and a simple class or colour value computed by the DECODE in the report. I've suppressed the first version of the report and created a new one that does this:
    decode(dept.deptno, '30', 'c00', '000') highlight The link column now passes the MGR ID and the HIGHLIGHT colour (red when the condition is satisfied and black when it is not).
    I created another hidden and protected page item <tt>P0_HIGHLIGHT</tt> as the target for the highlight value, and used the Pre/Post Element Text properties of the <tt>P0_G_MGR</tt> to wrap it in a <tt>span</tt> whose colour is changed using the <tt>P0_HIGHLIGHT</tt> value as a subtitution string:
    <span style="color: #&P0_HIGHLIGHT.;">Having done that, I still don't really get the requirement here. I'm sure that given the full picture I'd be using a completely different approach...

  • Ssrs 2008 r2 display of url value

    In an existing SSRS 2008 R2 application, the users will be clicking on url links to access help documents that are in a PDF
    format. When the user hovers over the tab in the browser, the actual web url is listed. My company thinks this can be a secruity
    problem.
    Thus my question in an SSRS 2008 R2 report, is there a way to hide the real link of where the PDF document is located at? Basically is there a way to hide the real url and/or just display a url that does not really exist? If so, can you show me code on how
    to accomplish this goal?

    Hi Wendy,
    Based on my test, if we are use below expression, it will not list the URL.
    ="javascript:void(window.open('http://test1.op.org/ReportServer/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))"
    I found a work around for your previous case, please refer to the expression below:
    ="javascript:void(window.open('” & Globals!ReportServerUrl & “/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))"
    If you have any questions, please feel free to let me know.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

Maybe you are looking for

  • Operations on master_detail

    HI I AM HAIL TO EVERY BODY IN ORACLE OTN NETWORK FORUM i have question and hope to get answear from the members here iam using (win xp ,jdeveloper r2.4) i have master detail (table_table) on my page can i do operations like(create insert,delete ...)

  • Upgraded to OS Mavericks- CS5 updates error messages + DOUBLE Photoshop plug ins CRASHES

    ...sigh...If anyone can help me, I will be eternally grateful! I updated my MacBook Pro (fall 2010?) to Mavericks so I could still use my CS5 Suite. Adobe Updater kept saying "unable to download" all updates.... Then, using Photoshop, I found that AL

  • Database migration from US7ASCII to UTF8

    Hi All, As a part of Data migration we need to change the existing database character set from US7ASCII to UTF8. My Database is running on Oracle 9.2.0.6. In my database I have 5 schemas. 1) Can any body suggest how to migrate the character set from

  • Enumeration in SOAP message

    Is there any way that I can specify an enumeration in the XML return from my webservices in Workshop.

  • Can fields be set to auto-fill

    I would like to be able to auto-fill fields based on the first input where I have six fields to fill in. I cut and paste but auto-fill would be much better.