Linktourl UI Element

Hi,
I am creating an linktourl UI element.
In properties, I found reference, target fields. What is the difference between these two.
If I want to give the path, where I need to give- reference or target?
Regards
MQ

Hi,
These two are totally different thing. Please check the details:
ReferenceDescribes the address of the Web page to be opened.
Target
Specifies the browser window in which the page is to be opened. You can specify the name of the target window yourself or use the following values, which comply with the W3C-HTML standard:
->      _blank
The page is opened in a new window without a name. This is the default value.
->        _self
The page is displayed in the same window as the link.
->        _parent
The page is displayed in the superordinate browser window. If there is no superordinate window, the page is displayed in the same window as the link.
->        _top
The page is opened in the original window of a frame hierarchy. If there is no frame hierarchy, the page is displayed in the same window as the link.
I hope this solves your issue. Please revrt back in case you need any further help. OR if solved, kindly close the thread.
Thanks and Regards,
Pravesh

Similar Messages

  • Problem in setting the target property to _SELF of LinkToURL UI Element

    Hi,
    I have a LinkToURL UI Element in my web page which has to open up another page in the same window.
    I tried setting the target property to _SELF, but it's not working.Instead the page is opened in a new child window.
    Please tell me whether to set any other property to get that.
    Thanks and Regards,
    Padma Usha.

    Hi,
    Please give the target value in lowercase "_self".
    Regards, Anilkumar

  • How to use linktoaction and linktourl ui elements

    Hi All,
    I am working with the ui elements of a webdynpro.In that i am unable to understand the linktoaction and linktourl ui elements.Can anybody tel me how to use those ui elements with simple steps of coding.
    Thanks in Advance,

    Those are fairly basic UI elements.  They are just hyperlinks.  LinkToURL works just like a normal HTML hyperlink and fires clientside navigation to the URL you specify.  LinkToAction looks the same to the user (hyperlink), but instead fires a server side event triggering ABAP logic when clicked.  Consider reading the online help for more details and the listed samples applications:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/49/e8884118aa1709e10000000a155106/content.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/0f/e8884118aa1709e10000000a155106/content.htm

  • LinkToURL UI Element: Invalid URL

    Hi experts,
    when i try to bind my context attribut with LinkToURL reference i have this exception:
    The initial exception that caused the request to fail, was:
       com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=http://myHost:52000/irj/portal/anonymous?NavigationTarget=navext(ROLES://portal_content/myFolder/RlTstAno/Internet/produits/liste_produits|wpcnavigation:///wpccontent/Sites/A_ListeProduits/SiteNavigation/navigation.wpc/~/1)
        at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.checkURL(AbstractURLGenerator.java:699)
        at com.sap.tc.webdynpro.services.sal.url.core.URLGeneratorInternal.checkURL(URLGeneratorInternal.java:390)
        at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.LinkToURL.getReference(LinkToURL.java:248)
        at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.LinkToURLAdapter$LinkProxy.getReference(LinkToURLAdapter.java:302)
        at com.sap.tc.ur.renderer.ie6.LinkRenderer.render(LinkRenderer.java:53)
    Can you give me some advices to go out from this issue
    Best regards,

    Hi Lokesh , Armin.
    I'd the same reflexion, but i try to take my url and put it on my web browser address bar, and i got my web page.
    So my PCD Path is correct.
    I think the problem is: The target is a web page composer
    my URL is : URL=http://myHost:52000/irj/portal/anonymous?NavigationTarget=navext(ROLES://portal_content/myFolder/RlTstAno/Internet/produits/liste_produits|wpcnavigation:///wpccontent/Sites/A_ListeProduits/SiteNavigation/navigation.wpc/~/1)
    So until  ROLES://portal_content/myFolder/RlTstAno/Internet/produits/liste_produits  is PCD location but after that, i think it's a web page composer notation (|wpcnavigation:///wpccontent), and this is the wrong part, but i can't guess by what i have to replace it
    regards Hichem

  • LinkToUrl Element in a Table SP10

    Hy All,
    i have an LinkToUrl-Element in a Table (Cell).
    After the click on the link (or symbol) the next step (navigation to another view) was triggered. This works fine.
    After installation of SP10 this is not working. If the link was pressed, no action is fired. All properties for me are ok.
    I don't know, what can i do ?
    Any idea's ?
    Regards
    Jürgen

    Hy Armin,
    the URL is ok !
    If i click the right mouse button, Open Link or open link in a new window, the url is opened correctly. All is fine!
    the LinkToURL UI-Element is enabled.
    I hava a service function on that element, and checked (logged) the status of that property.
    Regards
    Jürgen

  • LinkToURL with _self doesn't work

    Hi experts,
    I have tried using _self in the "target" property in my LinkToURL UI element to call up another ABAP web dynpro application, but the browser keep calling the new application in a separated browser. How can I call up the new application in the same window?
    Thanks.

    Hi Mandy,
    By starting a new application in the same browser window, the current application has to stop. There are two methods of achieving what you want. The first one is to use an exit plug and to specify the new URL there. The second option is to use the suspend/resume functionality.
    Here in this example I am saying like IG_MAIN_WINDOW coz my window name is MAIN_WINDOW. Just replace the main_window with the name of your window. So if you window is called WIN1, the name will be IG_WIN1
    method ONACTIONGO_SUSPENDING .
      data: L_REF_MAIN_WINDOW type ref to IG_MAIN_WINDOW .
      L_REF_MAIN_WINDOW = WD_THIS->GET_MAIN_WINDOW_CTR( ).
      L_REF_MAIN_WINDOW->FIRE_GO_SUSPENDING_PLG(
      URL = 'http://…………/webdynpro/sap/my_secondary_wda' ).
    endmethod..
    Regards,
    Uday

  • UI Element

    hi,
    is possible to give an ipaddress in linktoURL UI Element ...
    Regards,
    boopathi.

    Hi,
    It should be fine to give like http://10.43.54.32/ as far as I know. In fact I had given it this way couple of times and it worked.
    Regards,
    Sudeep

  • LinkToUrl MailTo

    Hi All,
    I'm trying to use LinkToUrl UI element in order to get a one click send mail link.
    The reference attribute of the element is bound to a string value attribute with the value "mailto:<MailAddress>" ( I have also tried - "mailto://" and "mailto:
    When I run the application i get the following error:
    Processing HTTP request to servlet [dispatcher] finished with error.
    The error is: com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=mailto:<MailAddress>
    Exception id: [000423886958006B000000FE000004D4000433CEB7C7C4FE]
    any ideas?
    Aviad

    How do I activate it?
    I have followed the instructions from note #864842, and it seemed ok.
    <i>
    e) An absolute URL has a protocol (URI scheme) of the list defined in the configuration property "sap.url.protocols". This parameter can be changed using Visual Admin Tool -> Services -> Configuration Adapter -> webdynpro -> sap.com -> tcwddispwda -> default.properties. URLs with a protocol other than the ones defined by the "sap.url.protocols" property won't be considered valid.
    The entries of the "sap.url.protocols" property after installation of the Web Dynpro runtime are: http, https, ftp, mailto.
    </i>

  • LinkToURL reference property a little short

    Hi
    I pasted in a SDN URL into the reference porperty of a LinkToURL UI element and discovered that it got truncated at about 128 characters
    Perhaps the size of this property should be increased
    Peter

    Hi,
    Create a context attribute. URL type string.
    bind this attribute to the refernce property of the link to URL.
    In wddoint write the below code:
    data lv_url type string.
    lv_url = 'ur sdn url'.
    wd_context->set_attribute( name = 'URL' value = lv_url ).
    Regards,
    Madhu

  • LinkToURL to open JSP file URGENT!!

    Hello experts..
    Can I import a JSP file to my WD project and then call it from a view through the LinkToURL UI Element.. if so, where is the best place to import the JSP and how do I make a reference to it.
    Thanx in advance..
    JV

    Hi,
    This doc may be of use
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a08c287b-96a5-2a10-a691-b8b8bc40ea43
    Regards
    Ayyapparaj

  • Open a new url in  same  window

    I am displayed a button using web dynpro abap,
    if i click the button means a new url page should be
    opened in the same window.
    I did the application but when i click the button means
    a new window is opened.It should not be happened.
    Anyone can plz send me the correct coding immediately....

    >
    cranjith kumar wrote:
    > I am displayed a button using web dynpro abap,
    > if i click the button means a new url page should be
    > opened in the same window.
    >
    > I did the application but when i click the button means
    > a new window is opened.It should not be happened.
    >
    > Anyone can plz send me the correct coding immediately....
    First of all how is anyone supposed to help you correct your coding when you have posted any.  We can't possibly know what is going on inside the event handler for your button. I suggest that post some of your coding here.  In general if you want to open another URL in the same page without using the linkToURL UI element, you should consider the usage of Exit Plugs:
    [http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm]
    Second, please don't ask people to do something "immediately".  Everything done in the forum is on a volunteer basis and people help out as fast as possible.  Your prompting for immediate action is quite unnecessary and could be considered somewhat rude.

  • Open new URL page in same window

    Hi all,
    I am using LinkToUrl UI element for opening a new URL
    page.
    I did it successfully by giving the URL in reference property.
    But the link is opening in new window.It should be opened
    in same window instead of new window.
    Any one can help me........

    Hi
    Use the target property of LinktoURL .
    You can specify the window name where you want to load new URL.
    Check the following Link.
    [Link|http://help.sap.com/saphelp_erp2005/helpdata/en/25/e2f0416ab6da6fe10000000a1550b0/content.htm]
    Regards
    Naresh

  • How to call WD program from a headerless WD screen

    Hi Experts,
    For the MSS worklist, I have created a custom WD headerless screen. In this screen, I have created one linktoURL UI element. When the user clicks on the screen, URL is called using following code. This code is working fine in Development. How I can remove the hardcoding related with https://ruepd.mycompany.com:50001. As for Quality the URL will be different say https://abcpd.mycompany.com:50001. Please help.
    public static void wdDoModifyView(IPrivateAutoSettlementAppView wdThis, IPrivateAutoSettlementAppView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
        wdContext.currentContextElement().
        setUrl("https://ruepd.mycompany.com:50001/irj/portal?" +
                   "NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.mycompany.all.folder.mycompany%2Fcom.mycompany.ep.folder.enterprise_portal%2Fcom.mycompany.portal.folder.roles%2Fcom.mycompany.portal.folder.employee_self_service%2Fcom.mycompany.portal.role.employee_self_service%2Fcom.mycompany.portal.workset.employee_self_service%2Fcom.mycompany.portal.workset.area_travel_expenses%2Fcom.mycompany.portal.page.create_expense_report&DynamicParameter=trip_number%3D"+
                (wdContext.currentContextElement().getTripNumber()).replaceAll("^0*","") +
                "%26mode%3Dcreate&TarTitle=Create%20Expense%20Report");
    One alernative is to create a push button and then use the navigate absolute. However navigate absolute code does not work for headerless WD screen.
    How I can convert headerless into non - headerless screen. As the screen is being called from Worklist. I does not have any control on making the screen non headerless screen.
    The questions are
    1) Is there is any way to keep the code as shown above and remove "https://ruepd.mycompany.com:50001" by some variable. So that we can avoid hard coding the value of https://ruepd.mycompany.com:50001
    2) How to change the screen from hearless screen to non headerless screen. In this case I will use navigate absolute
    3) Can we use navigate absolute in case of headerless screen. FYI - I have checked and found that I can not use it in headerless screen
    Regards,
    Gary

    Hi,
    I am using following code:
         String hostName = TaskBinder.getCurrentTask().getProtocolAdapter().getServerName();
         if (hostName.equalsIgnoreCase("development.mycompany.com"))
         wdContext.currentContextElement().
         setUrl("https://ruepd.mycompany.com:50001/irj/portal?" +
                     "NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.mycompany.all.folder.mycompany%2Fcom.mycompany.ep.folder.enterprise_portal%2Fcom.mycompany.portal.folder.roles%2Fcom.mycompany.portal.folder.employee_self_service%2Fcom.mycompany.portal.role.employee_self_service%2Fcom.mycompany.portal.workset.employee_self_service%2Fcom.mycompany.portal.workset.area_travel_expenses%2Fcom.mycompany.portal.page.create_expense_report&DynamicParameter=trip_number%3D"+
                 (wdContext.currentContextElement().getTripNumber()).replaceAll("^0*","") +
                   "%26mode%3Dcreate&TarTitle=Create%20Expense%20Report");
         if (hostName.equalsIgnoreCase("quality.mycompany.com"))
         wdContext.currentContextElement().
         setUrl("https://ruepd.mycompany.com:50001/irj/portal?" +
                     "NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.mycompany.all.folder.mycompany%2Fcom.mycompany.ep.folder.enterprise_portal%2Fcom.mycompany.portal.folder.roles%2Fcom.mycompany.portal.folder.employee_self_service%2Fcom.mycompany.portal.role.employee_self_service%2Fcom.mycompany.portal.workset.employee_self_service%2Fcom.mycompany.portal.workset.area_travel_expenses%2Fcom.mycompany.portal.page.create_expense_report&DynamicParameter=trip_number%3D"+
                 (wdContext.currentContextElement().getTripNumber()).replaceAll("^0*","") +
                   "%26mode%3Dcreate&TarTitle=Create%20Expense%20Report");
    Is it a correct approach?
    Regards,
    Gary

  • Error - In generating URL for a Excel File in WebDynpro Project

    Hi,
    In my WebDynpro Application, i have a EXCEL file ("Test.xls") and it is kept in the below mentioned location.
    Project->src->mimes->Components-><my component>
    This is the code i have used to generate URL.
    IWDWebResource webRes = WDWebResource.getWebResource(wdComponentAPI.getDeployableObjectPart(), WDWebResourceType.XLS,     "Test.xls");
    String excelFileURL = webRes.getAbsoluteURL();          
    wdContext.currentContextElement().setExcelFileURL(excelFileURL);
    i have assigned the URL to context element which in turn is assigned to LinkToURL UI element.
    I always get this error "Invalid URL=/webdynpro/resources/local/RigsOnMove/Components/ndc.maintain_rigmove.MaintainRigMoveComp/Test.xls".
    Please let me know your solution(s) to the above mentioned issue/problem.
    Thanks
    Senthil

    Hi Senthil,
    your code seems to be correct! Probabily your file is test.xls (NOT Test.xls with the first letter in uppercase).
    Try to write:
    IWDWebResource webRes = WDWebResource.getWebResource(wdComponentAPI.getDeployableObjectPart(), WDWebResourceType.XLS,     "test.xls");
    Hope this help,
    Vito

  • Viewing a file which is in Application Server [al11]

    Hi All
    I have a file which is residing in Application Server [al11 tcode], how i can display the file using LinkToURL UI Element,
    what is the path which i need give in the REFERENCE parameter of the UI Element.
    Thanks in Advance
    Regards
    Chaitanya.A

    Just becuase the file is in the filesystem of the application server, doesn't necessarily mean that it is exposed to the network at all. This really depends upon your OS and if you have a file share or external web server connected to the OS of your application server.
    However if you want to temporarily create a URL via the ABAP application server for a file in the filesystem you can do so by placing the content into the ICM cache.
    So you would read the file from the filesystem using the normal ABAP dataset commands.
    Here is a small example where I am doing this with different image formats:
    ****Create the cached response object that we will insert our content into
      data: cached_response type ref to if_http_response.
      create object cached_response
        type
          cl_http_response
        exporting
          add_c_msg        = 1.
    *  cached_response->set_compression( options = cached_response->IF_HTTP_ENTITY~CO_COMPRESS_IN_ALL_CASES ).
    try. " ignore, if compression can not be switched on
          call method cached_response->set_compression
            exporting
              options = cached_response->co_compress_based_on_mime_type
            exceptions
              others  = 1.
        catch cx_root.
      endtry.
    ****set the data and the headers
      data: l_app_type type string.
      data: l_xstring type xstring.
      case i_format.
        when 'BMP'.
          cached_response->set_data( me->gx_content ).
          l_app_type = 'image/x-ms-bmp'.
        when 'GIF'.
          me->get_content_ext_format(
            exporting
              i_format  = i_format
            importing
              e_xstream = l_xstring ).
          cached_response->set_data( l_xstring ).
          l_app_type = 'image/gif'.
        when 'JPG'.
          me->get_content_ext_format(
            exporting
              i_format  = i_format
            importing
              e_xstream = l_xstring ).
          cached_response->set_data( l_xstring ).
          l_app_type = 'image/jpeg'.
        when 'TIF'.
          me->get_content_ext_format(
            exporting
              i_format  = i_format
            importing
              e_xstream = l_xstring ).
          cached_response->set_data( l_xstring ).
          l_app_type = 'image/tiff'.
        when 'PNG'.
          me->get_content_ext_format(
            exporting
              i_format  = i_format
            importing
              e_xstream = l_xstring ).
          cached_response->set_data( l_xstring ).
          l_app_type = 'image/png'.
        when others.
          raise exception type zcx_abap_bitmap.
      endcase.
      cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                         value = l_app_type ).
    ******Set the filename into the response header
    *  cached_response->set_header_field( name  = 'Content-Encoding'
    *                                     value = 'compress' ).
    ****Set the Response Status
      cached_response->set_status( code = 200 reason = 'OK' ).
    ****Set the Cache Timeout - 60 seconds - we only need this in the cache
    ****long enough to build the page and allow the IFrame on the Client to request it.
      cached_response->server_cache_expire_rel( expires_rel = i_cache_timeout ).
    ****Create a unique URL for the object
      data: guid type guid_32.
      call function 'GUID_CREATE'
        importing
          ev_guid_32 = guid.
      concatenate i_path '/' guid '.' i_format into r_url.
    ****Cache the URL
      cl_http_server=>server_cache_upload( url      = r_url
                                           response = cached_response ).
    Another option would be to create a custom ICF handler class.  In this class you could pass the file name as URL parameters, read the content using ABAP DATASET commands and return the content in the response object. 
    Handler classes have to implement the IF_HTTP_EXTENSION Interface.  You implent the method HANDLE_REQUEST.
    Here is an example implementation of the HANDLE_REQUEST:
    * Inform ICF to "keep" (reuse) this handler, and that we answered the HTTP request
      if_http_extension~lifetime_rc = if_http_extension=>co_lifetime_keep.
      if_http_extension~flow_rc     = if_http_extension=>co_flow_ok.
    * Determine image name from URL ~script_name/~path_info (= image_name)
      data: name type string.
      name = server->request->get_header_field( name = if_http_header_fields_sap=>path_info ).
      translate name to upper case.
      if strlen( name ) >= 1 and name(1) = '/'.
        shift name left.
      endif.
    * Application logic
      data: content type xstring.
      content = me->load( name ).
      if xstrlen( content ) is initial.
        raise exception type cx_http_ext_exception exporting msg = 'Invalid URL!'.
      endif.
    * Set up HTTP response
      server->response->set_status( code = 200 reason = 'OK' ).
      server->response->set_header_field( name = if_http_header_fields=>content_type   value = 'image/png' ).
      server->response->server_cache_expire_rel( expires_rel = 86000 ).
      server->response->set_header_field( name = if_http_header_fields=>cache_control value = 'max-age=86000' ).
      server->response->set_data( content ).
    3rd option would be to create an ICM File Handler. I detailed this functionality in the SAP Press book Advanced BSP Programming.  It is covered in Chapter 16.2.  Here is an exerpt:
    The Internet Communication Manager (ICM) allows just such access to any file
    system accessible to the underlying operating system. You can map operating file
    system directories into ICM URL paths using the profile parameter icm/HTTP/
    file_access_<xx>.
    If you have never maintained one of the system-profile parameters, now is good
    time to make friends with your Basis administrator. With the following additions
    to our instance profile and a quick restart of the ICM, we are now able to access
    file system directories via HTTP.
    icm/HTTP/file_access_0 =
    PREFIX=/doc/, DOCROOT=/usr,BROWSEDIR=2
    icm/HTTP/file_access_1 =
    PREFIX=/doc2/,
    DOCROOT=
    server\SAPPatches\Netweaver04,BROWSEDIR=2
    In the first entry, we are just going to map to the local directory usr. We are able
    to control the useru2019s options to browser a directory via the additional parameter
    BROWSEDIR. The possible values are: 0 u2013 no browsing allowed, 1 u2013 only file names
    are displayed, and 2 u2013 file names along with their size and last change date are displayed.
    The second entry really shows off the power of this profile parameter. We are able
    to expose a directory on a remote server via UNC paths. Of course the security on
    that directory would have to be open to allow read-and-browse access. There is
    also no real mechanism to apply security to the ICM URL for this file access node,
    so you will want to be careful what you expose through it.

Maybe you are looking for

  • Update Routine ABAP question

    Hi, I am updating data between two ODS objects using some update routines. I would like to write the following routine (in pseudo code): ++++++++++++++++++++++++++++++++++++++++++++++++++++ Check if the characteristic i am updating is not null IF COM

  • I am having issues installing my router!

    i have recently purchased a wireless-G broadband router it's model is WRT54G. i plugged in my modem to the router and them my comp i made sure that the router and every thing was plugged in and all the lights that are suppose 2 be on are on. but once

  • GETTING  A USED IPOD AND PUTTING MY MUSIC ON IT

    i HAD TO GET A USED IPOD BECAUSE MINE WAS DISTROYED hOW DO I REPLACE THE MUSIC THAT IS ON IT WITH MY MUSIC. ALSO HOW DO I CHANGE THE NAME OF THE IPOD.

  • Brige CC Place menu does not show Illustrator and Indesign

    Hello, In my Bridge CC the menu item "place" is only showing "in Photoshop" and  "in After Effects". But it doesn't show Place "in Indesign" and "in Illustator" and "in Premiere". How can I fix that? I think it happens after I switched to 2014 versio

  • CVI.dll crashes 2013 when trying to browse

    If I attempt to anything that requires a browse/file select LabWindows crashes with the following report: Problem signature: Problem Event Name: BEX Application Name: cvi.exe Application Version: 13.0.0.632 Application Timestamp: 51cb679b Fault Modul