Dynamic URL link How?

I want to be able to change the URL web address of web links
inside my flash document by the means of an external text file, is
this possible? I cant find any reference to any simple actionscript
on the web.
I don’t want to use php or any other scripting, I was
thinking of putting a variable in the url field then loading a text
file with the urls I want it to link to??
[email protected]

OK, I think people may be missing the obvious here. The posts
above are all correct ActionScript. Some of them have more code
than is really needed but it all looks correct so I am going to
guess that the problem is that no one has mentioned that on the
default Flash security settings, you cannot access links on the
internet from Flash movies run from your local machine.
In other words, if you create a button with a link to
http://www.adobe.com and run that
Flash movie on your computer, it will not work. A security warning
will pop-up. You need to upload your Flash movie to a server for it
to work properly unless you are only using relative links (links
that are relative to the current file and part of the same file
system with no domain needed).
As for the code, my preference is to write it like this:
In a text file name data.txt:
URL1=http://www.adobe.com&URL2=http://www.google.com
On the first frame of the Movie:
loadVariablesNum("data.txt");
On the button:
on(release){
GetURL(URL1,"_blank");
UPLOAD IT TO YOUR SERVER TO TEST IT.
Be sure to note that the text data will be cached by most
browsers but that is something that can be saved for another time.

Similar Messages

  • Dynamic Url Link

    Hi,
    I want to generate a dynamic url link during the runtime (pick up fr database), which is to load an image from external source. How to do it programmatically?
    Any help would be much appreciated. Thanks.

    Hi Julius,
    Cant you use the LinkToURL element? For eg: like this,
    Create a LinkToURL element in your view. Give it a text like 'Click here to see photo'. The reference property of this element is bound to a context value attribute of type string. Bind the visibile property of this element to a context value attribute of type WDVisibility. This value is set to NONE in wdDoInit().
    When you know the value of the URL(for example , after a button click), form the URL value dynamically, set this value to the context attribute to which you have set the reference. At this point, set the visibility to true.
    Regards,
    Lm

  • Dynamic url link for Crystal Reports Enterprise?

    Hi all,
    We recently upgraded to SBOP 4.0 SP2 and are looking at migrating our existing Crystal Reports from Crystal Reports 2011 to Crystal Reports for Enterprise 4.0.
    Up to this point we have been utilizing the BW Publisher and role menus in BW.
    Our long term goal is to migrate users from the BW GUI to the BI LaunchPad but this will be a gradual process.
    Until we make the final switch to the LaunchPad we need to maintain the links in the role menus. I found the Document Link option for Crystal Reports so I have a URL to point to the report that we can put in the role menu, but the system value is not dynamic. Is there a way to make this dynamic like we can do with web template URLs?
    For example, when using a web template URL we can use the <bsp_server> parameter in the URL to determine the SAP system. Is there an equivalent that can be used in the Document Link for the Crystal Report to determine the respective SBOP system?
    Thanks.
    -Brian

    Hi,
    Below is link for the Crystal report for Eclipse 2.0:
    [http://www.businessobjects.com/campaigns/forms/downloads/crystal/eclipse/datasave.asp|http://www.businessobjects.com/campaigns/forms/downloads/crystal/eclipse/datasave.asp]
    you could always refer to the following thread as Bryan updated with new releases :
    [Crystal Reports for Eclipse 2.0 Release Update 8 is Now Available!|Crystal Reports for Eclipse 2.0 Release Update 8 is Now Available!;
    Hope this will help
    Regards,
    Rameez Shaikh

  • Strange problems with Dynamic Partner Linking, how to reset conversation Id

    Hi,
    We have dyanamic partner linking with synchronous BPEL process. For testing this I have created an xml which is having 3 Dyanmic links for the same partener link. When I execute the first one gets executed but second one onwards it throws bpel fault exception When I am looping through the XML the first linking is working but when it tries to do the second call to the same end point it faults out saying
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="code">
    <code>GenericError</code>
    </part>
    <part name="summary">
    <summary>null</summary>
    </part>
    </bindingFault>
    I tried several ways, bottom line this what I am getting in Do parter link assing in both loops. In my observation it generates some conversation Id which is null in the first iteration but from second one onwards.. it is generating some value which I am unable to reset. I belive if I can reset that converstationId to null probably I won't get this bepelFault.
    Please let me know if you need more information.
    First Scenario:
    <partnerLink name="PartnerLink_Campus_PIDS" partnerLinkType="{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS">
    <myRole name="null">
    <ServiceName>null</ServiceName>
    <PortType>null</PortType>
    <Address>null</Address>
    </myRole>
    <partnerRole name="PIDSUpdate_CHCSProvider">
    <ServiceName>{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS</ServiceName>
    <PortType>{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS</PortType>
    <Address>http://val-ossminc:9700/orabpel/default/PIDSUpdate_CHCS</Address>
    </partnerRole>
    <conversationId>null</conversationId>
    <properties>{}</properties>
    </partnerLink>
    Second Scenario:
    [2006/04/18 22:37:10] Updated variable "PartnerLink_Campus_PIDS" less
    <partnerLink name="PartnerLink_Campus_PIDS" partnerLinkType="{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS">
    <myRole name="null">
    <ServiceName>null</ServiceName>
    <PortType>null</PortType>
    <Address>null</Address>
    </myRole>
    <partnerRole name="PIDSUpdate_CHCSProvider">
    <ServiceName>{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS</ServiceName>
    <PortType>{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS</PortType>
    <Address>http://val-ossminc:9700/orabpel/default/PIDSUpdate_CHCS</Address>
    </partnerRole>
    <conversationId>bpel://localhost/default/iXPPIDSUpdateBroadCast~1.0/8909-BpInv0-BpSeq1.5-5</conversationId>
    <properties>{}</properties>
    </partnerLink>
    I clearing the end point the following way.
    <assign name="ClearEndpoint">
    <copy>
    <from>
    <EndpointReference xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:ns1="http://xmlns.oracle.com/PIDSUpdate_CHCS">
    <Address/>
    <ReferenceProperties/>
    <ServiceName/>
    </EndpointReference>
    </from>
    <to variable="partnerReference"/>
    </copy>
    </assign><!-- set the address in the endpoint variable
    Dynamic Links XML :
    <Dynamiclinks xmlns="http://ixp.mhs.dod.gov/DynamicLinksSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Dynamiclink>
    <address>http://val-ossminc:9700/orabpel/default/PIDSUpdate_CHCS
    </address>
    <service_name>ns1:PIDSUpdate_CHCS
    </service_name>
    </Dynamiclink>
    <Dynamiclink>
    <address>http://val-ossminc:9700/orabpel/default/PIDSUpdate_CHCS
    </address>
    <service_name>ns1:PIDSUpdate_CHCS
    </service_name>
    </Dynamiclink>
    </Dynamiclinks>
    Does any one how to reset the convesation Id, it will be a big help for me.
    Regards,
    Sridhar Dabbeeru

    Hi,
    We have dyanamic partner linking with synchronous BPEL process. For testing this I have created an xml which is having 3 Dyanmic links for the same partener link. When I execute the first one gets executed but second one onwards it throws bpel fault exception When I am looping through the XML the first linking is working but when it tries to do the second call to the same end point it faults out saying
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="code">
    <code>GenericError</code>
    </part>
    <part name="summary">
    <summary>null</summary>
    </part>
    </bindingFault>
    I tried several ways, bottom line this what I am getting in Do parter link assing in both loops. In my observation it generates some conversation Id which is null in the first iteration but from second one onwards.. it is generating some value which I am unable to reset. I belive if I can reset that converstationId to null probably I won't get this bepelFault.
    Please let me know if you need more information.
    First Scenario:
    <partnerLink name="PartnerLink_Campus_PIDS" partnerLinkType="{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS">
    <myRole name="null">
    <ServiceName>null</ServiceName>
    <PortType>null</PortType>
    <Address>null</Address>
    </myRole>
    <partnerRole name="PIDSUpdate_CHCSProvider">
    <ServiceName>{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS</ServiceName>
    <PortType>{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS</PortType>
    <Address>http://val-ossminc:9700/orabpel/default/PIDSUpdate_CHCS</Address>
    </partnerRole>
    <conversationId>null</conversationId>
    <properties>{}</properties>
    </partnerLink>
    Second Scenario:
    [2006/04/18 22:37:10] Updated variable "PartnerLink_Campus_PIDS" less
    <partnerLink name="PartnerLink_Campus_PIDS" partnerLinkType="{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS">
    <myRole name="null">
    <ServiceName>null</ServiceName>
    <PortType>null</PortType>
    <Address>null</Address>
    </myRole>
    <partnerRole name="PIDSUpdate_CHCSProvider">
    <ServiceName>{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS</ServiceName>
    <PortType>{http://xmlns.oracle.com/PIDSUpdate_CHCS}PIDSUpdate_CHCS</PortType>
    <Address>http://val-ossminc:9700/orabpel/default/PIDSUpdate_CHCS</Address>
    </partnerRole>
    <conversationId>bpel://localhost/default/iXPPIDSUpdateBroadCast~1.0/8909-BpInv0-BpSeq1.5-5</conversationId>
    <properties>{}</properties>
    </partnerLink>
    I clearing the end point the following way.
    <assign name="ClearEndpoint">
    <copy>
    <from>
    <EndpointReference xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:ns1="http://xmlns.oracle.com/PIDSUpdate_CHCS">
    <Address/>
    <ReferenceProperties/>
    <ServiceName/>
    </EndpointReference>
    </from>
    <to variable="partnerReference"/>
    </copy>
    </assign><!-- set the address in the endpoint variable
    Dynamic Links XML :
    <Dynamiclinks xmlns="http://ixp.mhs.dod.gov/DynamicLinksSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Dynamiclink>
    <address>http://val-ossminc:9700/orabpel/default/PIDSUpdate_CHCS
    </address>
    <service_name>ns1:PIDSUpdate_CHCS
    </service_name>
    </Dynamiclink>
    <Dynamiclink>
    <address>http://val-ossminc:9700/orabpel/default/PIDSUpdate_CHCS
    </address>
    <service_name>ns1:PIDSUpdate_CHCS
    </service_name>
    </Dynamiclink>
    </Dynamiclinks>
    Does any one how to reset the convesation Id, it will be a big help for me.
    Regards,
    Sridhar Dabbeeru

  • Url (link) - how to upload into the my software

    I have created a banner using fireworks cs3.
    Assigned an absolute URL to hotspot.
    It works when i preview in browser (F12)
    I saved my banner.
    I exported html and images.
    here's where i'm totally lost. when I upload my banner into
    my software , the url does not work. when I upload my html code the
    url works but hte banner is all black. I'm very very green to
    fireworks. I just want to upload banners into my software and have
    the url work.
    what do i have to do after i export the banner?
    thank you in advance.

    Do you have a page we can look at?
    alex
    imlost200 wrote:
    > I have created a banner using fireworks cs3.
    > Assigned an absolute URL to hotspot.
    > It works when i preview in browser (F12)
    > I saved my banner.
    > I exported html and images.
    > here's where i'm totally lost. when I upload my banner
    into my software , the
    > url does not work. when I upload my html code the url
    works but hte banner is
    > all black. I'm very very green to fireworks. I just want
    to upload banners
    > into my software and have the url work.
    >
    > what do i have to do after i export the banner?
    >
    > thank you in advance.
    >
    >

  • Open a Dynamic URL from a Table column link

    Hi,
    Jdev Version (11.1.1.6.0)
    I have requirement to open a dynamic URL from table column. Any time I click on link, it should generate dynamic URL based on column attribute and open in popup or browser. Can someone pls suggest how to achieve this.
    Thanks
    Ank

    1)If you have any parameters that needs to be passed to build that dynamicURL, just set a propertyListener on the column attribute and get the value.
    2)Then on the af:commandLink action, build your dynamicURL with the required parameters.
    3) If you URL is all together a different application which doesn't share your transaction, you can open it as below
    In the below code, urlWithParams will be your dynamicURL.
    ExtendedRenderKitService erks =
    Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
    StringBuilder sbURL = new StringBuilder();
    sbURL.append("window.open(\"" + urlWithParams + "\");");
    erks.addScript(facesContext, sbURL.toString());
    You can also try the above response by user 948181.
    Hope it helps.

  • How create  dynamic URL for every row  shown in the report?

    Hi,
    Iam new to this Application. I created one interactive report to find the number of bugs logged for every product and its sub component for past one year. The report will look like below structure in the application.
    Product Subcomponent Total
    P1 S1 10
    P2 S2 4
    P2 S21 15
    Now i want to pick the value of Prouct and sub component for every row dynamiaclly and want to generate the URL with the conditions and make it as hyperlink for the Total Column.
    Iam able to make hyperlink for the Total column using the edit options for the total attribute, but it is opening the same page for all the rows in the total column. I want to generate dynamic URL by picking the value prodcut and sub componenet dynamically from the report for every row and want to make it as hayperlink for every row individually.
    Please tell me how to do this?
    Please revert back if you are not clear. Appericiate for your quick help.

    Hello <unknown user>,
    So you already set the Column Link attributes for your Total column. Should all links go to the same page, but with different parameters (ProductID, SubcompID)? Or to another page? And how can you determine that page?
    Assuming you'll go to a sort of detail page or form:
    Target = [Page in this app]
    Page = <your target page no>
    Item1 = <ProductID field in target page>
    Value = #PRODUCTID#
    Item2 = <SubcompID field in target page>
    Value = #SUNCOMPID#
    (you can use the ' flashlight' for getting the correct values)
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • How to display the one BSP View page (not a start page)Through URL link..

    Hi Sir/Madam,
                 I want to open one BSP view page through URL link...
    Let me Explain clearly..
                I have an Z application ZHRRCF_APPROVAL..In this application approve.bsp file i have added som more Fields..and Finally I am going to click ApproVe Buton /Reject Button.When i click the reject button the the items are rejected.Its working fine.....
              My Requirement is :
                   1. I want to display the approval page directly when i click the URL link from mail box.--i am getting this .. No issues..(Got the URL link from function module)
                   2. After opening the approval page when i click URL link, when i click the reject button-- i am getting the error "The following Error Text was processed in the system GR2."Access via NULL object reference not possible"
                   3. How to proceed the this URL link without error .. the URL link is
    https://abd00093.de.abb.com:8200/sap(bD1lbiZjPTIwMA==)/bc/bsp/sap/zhrrcf_approval/application.bsp?objid=50003421&otype=NB&plvar=01&requestdate=20090121&requestedRsnCode=01&requestedstatus=1&requester=USRECRUITER1&SAPWFCBURL=https%3a%2f%2fabd00093%2ede%2eabb%2ecom%3a0000000000008200%2fsap%2fbc%2fwebflow%2fwshandler%3f_sapwiid%3d000000018491%26_saptask%3dTS51807979%26_saplogsys%3dGR2CLNT200%26_sapuname%3dLINEMANAGER%26_saplangu%3dE%26sap-client%3d200
    ( I got this URL directly using my own function module.. In this function Module i was not getting the SAPGUID -- the error is because of that i am not sure..)How to get this sapguid dynamically..
                    Please guide me to proceed this req asap..
    I am waiting for your reply ....Please
    Thanks and Regards
    Mohan,P

    Please have BPEL loggers both at domain and system level to DEBUG mode. Set all loggers to DEBUG as you are interested to see the entire sequence flow..however, some loggers give you unnecessary info ;/ apart from cube, activation, delivery, dispatch, persistence.
    Added to this, you might want to try SOAPUI, Fiddler, HTTP Analyzer.

  • How to remove bullets and spacing for url links in the Related Links iview?

    I tried to look for a property that I can edit the look-n-feel of the url links in the Related Link iView using "Theme Editor".
    All I need is to remove the bullets and increase some vertical spacing between the links.
    Currently, it looks like this:
    URL iView A
    URL Iview B
    I go through the whole section of Related Links properties, none of them seems to do what I want.
    Here are the list of properties in Related Link section (of Navigation Panel):
    Link Color
    Text Decoration of Link
    Hover Color
    Text Decoration of Hovered Link
    Initially, I thought "Text Decoration of Link" should be the right property I should look at. But there are a drop-down with 5 options: None, Underline, Blinking, Overline and Line-Through, which really can't achieve what I want.
    Thanks for advice.
    Kent
    Post with Diagram Illustration:
    <a href="http://sapnetweaverforum.blogspot.com/2006/11/how-to-remove-bullets-and-spacing-for.html">How to remove bullets and spacing for url links in the Related Links iview?</a>
    Message was edited by: Kent C.

    Hi, Kai.
    I checked the Related iView properties (URL Template), I don't see what layoutset it is really using. I am not sure, is that a layout set apply to the Related Link Iview?
    For the regular KM iView, I will see what Layout Set I want to apply, then I can go and change the properties (of layout coontroller, collection renderer & resource renderer)you mentioned. But for this Related Link iView, I really don't know. I guess it may be in the code itself.
    If there is a layout set for Related Link iView (or the place to apply layout set to it), can you point to me which one is that? (I did a search through the layout set names, I only find the AppQuicklinkExplorer (I used this for Dynamic Nav. Link iView before), if I can aply this layout set to Related Link iView, my problem will be solved.)
    Thanks for help.
    Kent

  • How can I send to a different URL link than what the text states in Acrobat?

    Hi there
    I know how to create URL links in my document using Acrobat but
    How can I create a link that goes to a different URL desintation other than the one the text states?
    For example
    the text states
    www.aaaaa.com
    and I want it to state this,
    but I want the link to direct to
    www.aaaaa.com/abcdefghijkl
    I dont want to have to create a link object, I want it to stay as text?
    Is this even possible?
    Any advise?
    Thanks

    try67 wrote:
    Actually, it is possible to specify your own tooltip text, if you use a
    button instead of a link.
    You just set the button's action to "Open a weblink" and it will act the
    same as a link, but you'll have more control over how it looks and behaves.
    Hi there
    I cant see the term "Open a weblink". Can you advise please?
    Also then how do you change the "Tooltip text" please?

  • How to change URL/link in cFolders email notification

    Hi Folks,
    We are on cFolders 4.5 accessed via Enterprise Portal. When a notification is generated (either manually or via a status transition), the email contains a URL link related to the cfolder object the notification pertains to. This URL points to the cFolders BSP application. How do we point this to the portal? We want all user to access cFolders via the portal and not BSP. Any way to achieve this?
    Thanks,
    Lashan

    Hello Lashan,
    could you please tell me the note number?
    Here we also would like to implement the same.
    Thanks in advance,
    Boldi

  • 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 call a portal KM URL link from WAD template Link

    Hi All
    I  am trying to call a Portal KM URL Link from the web template using the link control.
    I cannot figure out whare and how to put the portal KM URL Link into the web application web link.
    Your help is greatly appreciated.
    Thanks
    Karen

    Add content administration role to the user.
    The the content administration tab would be visible to the user in the main menu tab.
    Then in content administration tab, configure the URL for KM URL tab or link.
    This would be done by EP experts. Please contact your EP experts to do.
    Hope this would help you.

  • How to add a new url link in a view of an existing webdynpro component?

    How to add a new url link in a view of an existing webdynpro component?

    hi ,
    refer SAP online hep :
    Implementing Enhancements in a View
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/46/233f2189f74f08e10000000a114a6b/frameset.htm
    To enhance the layout of the view, you can create new UI elements. This procedure is no different u2013 from a technical viewpoint u2013 from creating UI elements in components themselves. All UI elements created within the enhancement implementation can then be processed as usual.
    Enhancements  means inserting user developments into SAP development objects at predefined positions.
    The Enhancement Framework enables you to add functionality to standard SAP software without actually changing the original repository objects, and to organize these enhancements as effectively as possible.
    refernce :
    have a look at this article
    How to Create Enhancement Implementation in Web Dynpro ABAP
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/700317da-bd79-2c10-368e-8f18bf5d8b81&overridelayout=true
    as pointed correctly by Saurav in earlier thread
    regards,
    amit

  • How to add an outside url link to a navagation button in Dreamweaver Cs5.5

    How or can I add an outside url link to a navagation button in Dreamweaver Cs5.5. If I try the properties/link it says that the link is an html and not a css.....
    Thank you

    Linking is done in HTML, not CSS (with the exception of a link to a background picture)
    So, if your navigation is a list, you'd have the following in your HTML:
    <nav>
         <ul>
              <li><a href="index.html">Home</a></li>
              <li><a href="about.html">About</a></li>
              <li><a href="books.html">Books</a></li>
              <li><a href="http://www.myexternalwebsitelink.com/inboundfromotherwebsite.html">External Link</a></li>
              <li><a href="contact.php">Contact</a></li>
            </ul>
    </nav>
    Here, in the example above, I'm using the HTML5 <nav>, but that could be an HTML4 <div class="nav"> and you will see a link to an internal page on the same website server for Home, About, Books and Contact with "External Link" pointing to another website external to the one we're on.
    Make sense?

Maybe you are looking for

  • How do I access Airport Utility 5.6?

    I can no longer see remote speakers on iTunes so can not play music through airplay - via airport express.  I went to Airport Utility and got a message that said this version of Airport Utility doesn't support this base station.  Use Airport Utility

  • How do I change the date of a photo in A3's metadata tab?

    I click on a photo and realize the date of the photo is wrong. What do I need to do to change it?

  • Invoice/vendor

    Can anyone send methe T code and method of the following things..      Create a vendor                          Assign an account number                     Assign payment terms                Make an invoice                          Enter invoice de

  • IDOC triggerred by which Output type?

    Hi Gurus, My requirement is to add a new segment in ORDERS05 and populate the values int he Zsegment based on the output type selected. I am using same user-exit to populate but i am not sure how to find the output type which user selected. How to fi

  • Html Form

    Hellow to everybody, i got this problem. I will like to know, how to create an html form, to put on a unix server that dosent suport cgis, or asp. Is a simple html form, the one includes: name, phone, email and coments, and two butons, one for clear