How to display dashboard on My Homepage

How do you display a dashboard on the homepage? I haven't had success trying to create a custom report using the dashboard and my attempt at using a web applet hasn't turned out well either. Thanks in advance!

Totally - Just create a "replacement" Home Page and assign it in the Tab Access and Order (i.e. you won't be using the OOTB Home page)
Here's how:
Create your dashboard normally. (manage dashboards)
Execute the Dashboard and copy the URL to input the variables to follow
Create a new "Custom Web Tab" (Admin => Application Customization)
Name it "Home Page" or something similar to that
In the URL paste the following:
https://secure-ausomxPOD.crmondemand.com/OnDemand/user/analytics/saw.dll?Dashboard&PortalPath=%2fshared%2fCompany_XXXXX_Shared_Folder%2f_portal%2fName+of+Dashboard+Here
Variables:
POD => is your POD
XXXXX => numeric number identifying your company
Name+of+Dashboard+Here => should be obvious
Now assign the "Home Page" tab to the Role you want to see it (put it first in Tab order, and remove the OOTB Home Page)

Similar Messages

  • How to display Dashboard folder in UI ?

    Hi,
    I have created 6 dashboards and stored it under the folder Sales. Now I created one more folder as Opportunity and 2 dashboards under that. Currently in UI I can able to see 8 dasboards as Dash1, Dash2,.. Now I want to display the Folder Name such that all my dashboards will now come under corresponding folder in UI.
    How to achieve this?
    Thanks,
    Satheesh

    Did you consider using a landing page and navigate from there?
    regards
    John
    http://obiee101.blogspot.com/
    http://obiee11g.com/

  • 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 to display no data found in RTF template ? XML Publisher

    Hi
       I have xml file, how to display no data found in RTF template ? XML Publisher ?
    This is the XML File
    <?xml version="1.0" encoding="UTF-8"?>
    <INVALIDSERIALPRODUCT>
    <P_ORG_CODE></P_ORG_CODE><P_DATE_RANGE_FROM></P_DATE_RANGE_FROM><P_DATE_RANGE_TO></P_DATE_RANGE_TO><P_ITEM_NUMBER>VIR</P_ITEM_NUMBER><P_LOT_NUMBER></P_LOT_NUMBER><P_RMA_NUMBER_FROM></P_RMA_NUMBER_FROM><P_RMA_NUMBER_TO></P_RMA_NUMBER_TO><P_CUSTOMER_NAME></P_CUSTOMER_NAME><P_EMAIL></P_EMAIL>
    <G_SNQ>
    <USER_NAME>NSAWHNEY</USER_NAME>
    <G_SN>
    <ITEM_NUMBER>VIR823010</ITEM_NUMBER>
    <DESCRIPTION/>
    <LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
    <SERIAL_NUMBER>000000000004</SERIAL_NUMBER>
    <RMA_NUMBER>8200000106</RMA_NUMBER>
    <CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
    <COUNTERFEIT_CHECK_DATE>2014-07-11T05:13:05.000-07:00</COUNTERFEIT_CHECK_DATE>
    <REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
    </G_SN>
    <G_SN>
    <ITEM_NUMBER>VIR823010</ITEM_NUMBER>
    <DESCRIPTION/>
    <LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
    <SERIAL_NUMBER>000000000004</SERIAL_NUMBER>
    <RMA_NUMBER>8200000106</RMA_NUMBER>
    <CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
    <COUNTERFEIT_CHECK_DATE>2014-07-11T05:52:23.000-07:00</COUNTERFEIT_CHECK_DATE>
    <REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
    </G_SN>
    <G_SN>
    <ITEM_NUMBER>VIR823010</ITEM_NUMBER>
    <DESCRIPTION/>
    <LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
    <SERIAL_NUMBER>000000000016</SERIAL_NUMBER>
    <RMA_NUMBER>8200000106</RMA_NUMBER>
    <CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
    <COUNTERFEIT_CHECK_DATE>2014-07-11T05:53:06.000-07:00</COUNTERFEIT_CHECK_DATE>
    <REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
    </G_SN>
    <G_SN>
    <ITEM_NUMBER>VIR823010</ITEM_NUMBER>
    <DESCRIPTION/>
    <LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
    <SERIAL_NUMBER>011000000011</SERIAL_NUMBER>
    <RMA_NUMBER>8200000106</RMA_NUMBER>
    <CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
    <COUNTERFEIT_CHECK_DATE>2014-07-11T06:09:16.000-07:00</COUNTERFEIT_CHECK_DATE>
    <REASON>Serial number does not exist in Axway Track-n-Trace</REASON>
    </G_SN>
    <G_SN>
    <ITEM_NUMBER>VIR823010</ITEM_NUMBER>
    <DESCRIPTION/>
    <LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
    <SERIAL_NUMBER>000000000021</SERIAL_NUMBER>
    <RMA_NUMBER>8200000106</RMA_NUMBER>
    <CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
    <COUNTERFEIT_CHECK_DATE>2014-07-11T06:11:09.000-07:00</COUNTERFEIT_CHECK_DATE>
    <REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
    </G_SN>
    <G_SN>
    <ITEM_NUMBER>VIR823010</ITEM_NUMBER>
    <DESCRIPTION/>
    <LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
    <SERIAL_NUMBER>000000000001</SERIAL_NUMBER>
    <RMA_NUMBER>8200000066</RMA_NUMBER>
    <CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
    <COUNTERFEIT_CHECK_DATE>2014-07-11T06:46:04.000-07:00</COUNTERFEIT_CHECK_DATE>
    <REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
    </G_SN>
    <G_SN>
    <ITEM_NUMBER>VIR823010</ITEM_NUMBER>
    <DESCRIPTION/>
    <LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
    <SERIAL_NUMBER>000000000001</SERIAL_NUMBER>
    <RMA_NUMBER>8200000066</RMA_NUMBER>
    <CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
    <COUNTERFEIT_CHECK_DATE>2014-07-11T07:08:21.000-07:00</COUNTERFEIT_CHECK_DATE>
    <REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
    </G_SN>
    <G_SN>
    <ITEM_NUMBER>VIR823010</ITEM_NUMBER>
    <DESCRIPTION/>
    <LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
    <SERIAL_NUMBER>00000000004 </SERIAL_NUMBER>
    <RMA_NUMBER>8200000066</RMA_NUMBER>
    <CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
    <COUNTERFEIT_CHECK_DATE>2014-07-11T07:13:05.000-07:00</COUNTERFEIT_CHECK_DATE>
    <REASON>Unknow Error </REASON>
    </G_SN>
    <G_SN>
    <ITEM_NUMBER>VIR823010</ITEM_NUMBER>
    <DESCRIPTION/>
    <LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
    <SERIAL_NUMBER>000000000011</SERIAL_NUMBER>
    <RMA_NUMBER>8200000101</RMA_NUMBER>
    <CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
    <COUNTERFEIT_CHECK_DATE>2014-07-11T19:32:00.000-07:00</COUNTERFEIT_CHECK_DATE>
    <REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
    </G_SN>
    <G_SN>
    <ITEM_NUMBER>VIR823010</ITEM_NUMBER>
    <DESCRIPTION/>
    <LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
    <SERIAL_NUMBER>000000000004</SERIAL_NUMBER>
    <RMA_NUMBER>8200000107</RMA_NUMBER>
    <CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
    <COUNTERFEIT_CHECK_DATE>2014-07-14T02:49:40.000-07:00</COUNTERFEIT_CHECK_DATE>
    <REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
    </G_SN>
    <G_SN>
    <ITEM_NUMBER>VIR823010</ITEM_NUMBER>
    <DESCRIPTION/>
    <LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
    <SERIAL_NUMBER>000000000092</SERIAL_NUMBER>
    <RMA_NUMBER>8200000109</RMA_NUMBER>
    <CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
    <COUNTERFEIT_CHECK_DATE>2014-07-14T07:52:22.000-07:00</COUNTERFEIT_CHECK_DATE>
    <REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
    </G_SN>
    <G_SN>
    <ITEM_NUMBER>VIR823010</ITEM_NUMBER>
    <DESCRIPTION/>
    <LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
    <SERIAL_NUMBER>000000000031</SERIAL_NUMBER>
    <RMA_NUMBER>8200000109</RMA_NUMBER>
    <CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
    <COUNTERFEIT_CHECK_DATE>2014-07-15T02:24:27.000-07:00</COUNTERFEIT_CHECK_DATE>
    <REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
    </G_SN>
    <G_SN>
    <ITEM_NUMBER>VIR823010</ITEM_NUMBER>
    <DESCRIPTION/>
    <LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
    <SERIAL_NUMBER>000000000034</SERIAL_NUMBER>
    <RMA_NUMBER>8200000109</RMA_NUMBER>
    <CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
    <COUNTERFEIT_CHECK_DATE>2014-07-15T02:30:28.000-07:00</COUNTERFEIT_CHECK_DATE>
    <REASON>Catchall fault scope has been executed</REASON>
    </G_SN>
    <G_SN>
    <ITEM_NUMBER>VIR823010</ITEM_NUMBER>
    <DESCRIPTION/>
    <LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
    <SERIAL_NUMBER>000000000010</SERIAL_NUMBER>
    <RMA_NUMBER>8200000114</RMA_NUMBER>
    <CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
    <COUNTERFEIT_CHECK_DATE>2014-07-15T03:36:18.000-07:00</COUNTERFEIT_CHECK_DATE>
    <REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
    </G_SN>
    <G_SN>
    <ITEM_NUMBER>VIR823010</ITEM_NUMBER>
    <DESCRIPTION/>
    <LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
    <SERIAL_NUMBER>000000000158</SERIAL_NUMBER>
    <RMA_NUMBER>8200000114</RMA_NUMBER>
    <CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
    <COUNTERFEIT_CHECK_DATE>2014-07-15T04:19:48.000-07:00</COUNTERFEIT_CHECK_DATE>
    <REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
    </G_SN>
    </G_SNQ>
    </INVALIDSERIALPRODUCT>
    thanks
    nks

    This is the General XML forum.
    The homepage description says :
    Discussion of the general XML language, standards (XSLT, XQuery, XMLSchema, etc.) and application management issues, suggestions and tips.
    The BI Publisher forum is here :BI Publisher
    So please mark this post as answered and ask again over there.

  • How to display multiple clocks in menu bar?

    Is there an app that can display multiple clocks in different time zones, side by side, like the regular system clock?
    http://d.pr/i/P6Zr

    Does this come close enough?
    https://itunes.apple.com/gb/app/clocks/id414554506?mt=12
    Found at…
    http://www.cultofmac.com/165298/set-up-multiple-world-clocks-in-menu-bar-os-x-ti ps/
    Don't forget you can add multiple clock widgets to Dashboard, and the info icon will allow you to set the location/ timezone.
    This will give you a dashboard overview…
    http://mac.appstorm.net/how-to/using-dashboard-in-2013/

  • How to use Dashboard as a cut & paste software

    Hi !
    I´ve hard to understand the function of "Dashboard" - I thought that the software could be a help for me to cut/copy pictures on websites for an example - I thought that I could mark an area on a site, copy the are and save it to iPhoto or copy it to Pager or other programs but it didn´t work that way. So now I´m looking forward to get an introduction in "how to use Dashboard" from someone who knows more about Mac and the programs than I do.
    Best regards / Marlene

    Dashboard exists to display the various widgets such as clocks, weather or Stock Market info, dictionary, etc.etc.
    You don't need it for what you want to do. Most pictures on websites can be saved simply by dragging them to the Desktop - try it with the picture on the right. Otherwise, hit command-shift-4 and click drag the mouse over the area you want to save: an image will be saved to your Desktop.

  • How to display a variable in the report?

    hi all
    i want to use one complex sql statement which will return only one value and i need to display it in report. i'm new to OBIEE. i thought of creating a repository variable to hold that value. but im not sure of how to display the variable in the report.
    Any idea?
    Your help is appreciated

    Hi where do you want to show that value in answers i mean in which part of answers, you want to show that?
    see this
    http://bischool.wordpress.com/2009/05/05/presentation-variable-values-in-report-titles-or-using-presentation-variable-in-dashboard-text-object-and-narrative-view-directly/
    also see this to where and how to use variables in answers
    http://shivabizint.wordpress.com/2008/10/02/oracle-bi-ee-variables-overview/

  • How to display Prompt values in Narrative

    Using 11.1.1.6.2
    Within a dashboard page I have a table with a dimension hierarchy for organization. If you click a division it runs an action link to call a browser script (javascript in a text section on the dashboard) passing the division. If you expand the division and click a market it calls the same javascript function.
    The Javascript function then uses Go Path to refresh an analysis within an iFrame on the dashboard page and passes either the Division value or the Market value.
    The target analysis has two filters: Division is prompted and Market is prompted.
    So after all that my question is how could I display the two passed values from the Go Path call in a narrative on the target analysis? Or I guess the alternative question is how to display the filter values on the narrative.
    Sorry for the long explanation, but hopefully this makes sense.
    Thanks for any help or suggestions.
    Brad

    Use @n to include the results from the designated column in the narrative. For example, @1 inserts the results from the first column
    Assuming you want to show the selected value for Division from prompt.
    Add Division column in the report criteria and call it @1, where 1 is position of Division column
    You may hide the Division column from report, if you dont have to show in the report
    Edited by: Srini VEERAVALLI on Feb 7, 2013 3:22 PM

  • How to display Alerts?

    Hi all,
    In My dashboard, I  already cleared Alerts, so  how to display Alerts again?
    Thanks!
    Anne

    Hi Anne
    Refer this Blog
    http://www.peakindicators.com/media_pi/Knowledge/obiee%2011g%20-%20overview%20of%20action%20framework.pdf
    http://123obi.com/2011/05/obiee-11g-configure-oracle-bi-scheduler-e-mail-settings/
    Thanks,
    Reddy

  • Display dashboards simultaneously from company's server and localhost

    Hi Experts,
    We have a laptop that we have installed SAP B1 (Server and Client) locally. This laptop can connect to two servers;
    localhost and to company's server. We would like to ask whether there is a way to display dashboards
    from company's server using Sap Client when laptop is connected to company's network. Also if it is possible to
    display dashboards simultaneously from company's server and localhost.
    Thank you in advance,
    Vassilis Korolis

    Hello,
    Well, as far as I know it is not possible to make it automatically using SAP Business One Client, but we have made a wrapper for standard client that might help.
    The idea behind is to create two (or even more, if required) connections in Skybuffer SBO LogonPad and  then to click the connection that you would like to start (either local server or remote server that is accessible at company network).
    Additionally, it is possible to open two SAP Business One Client instances that are connected to two different servers from one machine simultaneously with help of Skybuffer SBO LogonPad, but I have never tested how stable the connects are, so please be careful with this. But in case of read only access (like you've mentioned  - dashboards display), I can say that it is safe enough.
    Here is the picture that shows that I can access two different servers from one machine:
    And you can download Skybuffer SBO LogonPad from here:
    Skybuffer SBO LogonPad (version 0.2)
    P.S. that's a freeware wrapper to facilitate different license servers connectivity for SAPB1 consultants.
    Kind Regards,
    Siarhei

  • Idoc-xi-file scenario.  how to display file in html format

    I am not sure whether this is a valid question.........but want to confirm as it was asked by somebody
    In idoc-xi-file scenario.......  how to display file in html format ??
    Thanks in advance
    Kumar

    Hi Vijayakumar,
    Thanks for your reply !! You mean to say I got to use XSLT mapping and also .htm and .html extension together to produce the html file ?? or it is sufficient to use any one of them to produce the html file ??
    Regards
    Kumar

  • In sap scripts how to display the driver program

    Hi,
        I Want to know the sap scripts How to display the output to driver program

    Hi,
    Go to NACE Transaction.
    Select application for ex: if sales V1.
    Click on output types.
    Select the output type for ex : BA00
    Double click on Processing routines.
    There you can find the Driver Program name and Script/smart form name.
    Reward if useful.
    Thanks,
    Raju

  • How to display username in RTF BI publisher report?

    Please advice how to display username in RTF BI publisher report?
    May be this can be done via hidden parameter of BIP report which default value will be set up with macro like {$username$} (or smth like)?
    Thanks in advance!

    Thanks. That worked. I was trying to get it as part of a multi-table query, aliasing dual. But that doesn't work in SQL Plus either so I guess I can't do that.
    I was trying
    select o.*, d.:xdo_user_name
    from oblix_audit_events o, dual d
    Before that I was trying
    select
    :xdo_user_name as USER_ID,
    :xdo_user_roles as USER_ROLES,
    :xdo_user_report_oracle_lang as REPORT_LANGUAGE,
    :xdo_user_report_locale as REPORT_LOCALE,
    :xdo_user_ui_oracle_lang as UI_LANGUAGE,
    :xdo_user_ui_locale as UI_LOCALE
    from dual
    but I must have fat fingered something because that works now too. Thanks.
    So if I need to do this in it's own query and I'm using an RTF template, how do I make that work?
    If I have to do it with it's own

  • How to display and edit the clob datatype column from Data base

    Hi ,
    I have a requiremsnt as below
    1) One Table having some columns with CLOB data type along with varchar columns
    2) need to display the data from DB in search screen and need to be edited clob column in edit screen
    I created EO and VO with that Table and how to display the clob value into the input box for editing.
    using Jdev 11.1.1.5.0 version.
    Can you please help on this.
    THanks & REgards,
    Madhu

    Hi,
    If you are using an inputText component to display a Character Large Object (CLOB), then you will need to create a custom converter that converts the CLOB to a String.
    For custom convertor refer below link,
    http://docs.oracle.com/cd/E2438201/web.1112/e16181/af_validate.htm#BABGIEDH
    (section7.4 Creating Custom JSF Converters)
    Thanks,
    Santosh M E

  • 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

Maybe you are looking for

  • Error in using Files

    Hi, I am trying to write data into a new file and it gives me "invalid file operation" error. Please advise. Code set serveroutput on Declare test_file UTL_FILE.FILE_TYPE; S varchar2(200); Begin test_file := UTL_FILE.FOPEN('C:\','test.txt','W',999);

  • JCLoginDialog in JDev 10g

    I'm using generated JCLoginDialog for JDBC connection in JClient application. I followed all instructions from help (modified getInfo() and bc4j.xcfg) and get problem that login dialog appears three times. I insert correct usr/psw, than press OK ever

  • Firefox 17.0.1 cache activity on multiple hard disks?

    I upgraded OS of my desktop PC from Win 7 to Win 8 (install from scratch). I also loaded latest version of Firefox 17.0.1 My C system disk is a SSD (therefore no moving parts). I also have a second mechanical hard disk only for data (no software inst

  • Un-wanted clipboard item auto pastes into e-mail when click 'reply'

    Hello, If I have some text (anything I just copied and paste, in any app) in Clipboard, and hit reply to an e-mail, the clipped text automatically gets paste in the new e-mail. The original e-mail content is completely lost. Just get a blank message

  • Delete Specific Message

    I'm developing a system which will involve a lot of data synchronisation broken down into small tasks. I am adding each small task as a job/message on the Azure Service Bus queue. I have X number of Worker Roles then checking the queues and processin