Link to URL -- How to use it?

Hi Experts,
I have created LinktoURL UI element in my WD program1. I have to call WD program2 from WD program1 using this LinktoURL UI element. I had earlier written code like as below. The code was working fine. Now my problem is that code is not working any more. Can you please provide me some guidelines. What is the generaic method to call one WD program using other WD program using LinktoURL. I had created context called URL and wrote the code in wdDoModify. Problem is earlier code was working fine. Its not working now !!!
Thanks
Gary
public static void wdDoModifyView(IPrivateAutoSettlementAppView wdThis, IPrivateAutoSettlementAppView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
if(!"".equals(wdContext.currentContextElement().getTripNumber())&&null!=wdContext.currentContextElement().getTripNumber())
      wdContext.currentContextElement().
      setUrl("https://ruepd.mycompany.com:50001/irj/portal?" +
                  "NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.sap.pct%2Fevery_user%2Fcom.sap.pct.erp.ess.bp_folder%2Fcom.sap.pct.erp.ess.roles%2Fcom.sap.pct.erp.ess.employee_self_service%2Fcom.sap.pct.erp.ess.employee_self_service%2Fcom.sap.pct.erp.ess.area_travel_expenses%2Fcom.mycompany.portal.page.create_expense_report&DynamicParameter=trip_number%3D"+
               wdContext.currentContextElement().getTripNumber() +
               "%26mode%3Dcreate&TarTitle=Create%20Expense%20Report");
      else
           wdContext.currentContextElement().setTripNumber(wdContext.currentSettlement_DetailsElement().getReinr());
           wdContext.currentContextElement().
                setUrl("https://ruepd.mycompany.com:50001/irj/portal?" +
                         "NavigationTarget=ROLES%3A%2F%2Fportal_content%2Fcom.sap.pct%2Fevery_user%2Fcom.sap.pct.erp.ess.bp_folder%2Fcom.sap.pct.erp.ess.roles%2Fcom.sap.pct.erp.ess.employee_self_service%2Fcom.sap.pct.erp.ess.employee_self_service%2Fcom.sap.pct.erp.ess.area_travel_expenses%2Fcom.mycompany.portal.page.create_expense_report&DynamicParameter=trip_number%3D"+
                         wdContext.currentContextElement().getTripNumber() +
                         "%26mode%3Dcreate&TarTitle=Create%20Expense%20Report");  

Gary 
I have the same scenario and this code works very well:
change "BBAprovacoesPendentes" for your target application name.
  public void onActionAprovacoesPendentes(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionAprovacoesPendentes(ServerEvent)
       //Get component's message manager
       IWDMessageManager messageMgr = wdComponentAPI.getMessageManager();
       // Get name of deployable object this component belongs to
       String deployableObjectName = wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
       Map urlParameters = new HashMap();
       // get URL parameter value entered by user, stored in context attribute
       // u2018UrlParamValueu2019. Put parameter u2018hugou2019 in the sneak preview version.
       try {
       // Get deployable object part of target application.
       // Precondition: assume, that other application belongs to the same
       // Web Dynpro Project (Deployable Object)
       WDDeployableObjectPart deployableObjectPart =
       WDDeployableObject.getDeployableObjectPart(
       deployableObjectName,
       "BBAprovacoesPendentes",
       WDDeployableObjectPartType.APPLICATION);
       // Get target URL based on deployable object part and URL parameters 8
       String urlToTargetApp = WDURLGenerator.getApplicationURL(deployableObjectPart, urlParameters);
       // Fire exit plug to target URL via IPublic-API of used interface view
       // controller
       wdThis.wdGetRequisicaoCompraWindowController().wdFirePlugExitPlug( urlToTargetApp );
       } catch (WDURLException e) {
            messageMgr.reportException(e.getLocalizedMessage());
       } catch (WDDeploymentException ex) {
            messageMgr.reportException(ex.getLocalizedMessage());
    //@@end

Similar Messages

  • Link to URL - How to Open a New Tab

    I have created some PDF's in Adobe Acrobat and I am hosting them on my website. So for example here is one: <possible spam link removed - kglad>
    I have created links to URL's using the Link Properties tool, Actions tab. However it will only open the URL in the same tab.
    Is it possible to have the URL's open in a new tab?
    Hope someone can help.
    Heath

    You need to use the target="_blank" attribute to make links open in a new window or tab. Where the link actually opens is up to the browser settings. So if you have Tools > Internet Options > Tabbed Browsing Settings > "Always open pop-ups in new tabs" selected, a target="_blank" link will open in a new tab. Note that this type of link will open in a new window by default on most browsers.

  • APEX application or page url  - How to use enum string to replace ID number

    URL to a APEX page is format as ***/f?p=APPLICATION_ID:PAGE_ID:... . Here the APPLIACTION_ID and PAGE_ID are numbers.
    My Question is: Is there a way to replace the numbers by using strings? For example: can I have a URL like /f?p=MY_APPLICATION:MY_PAGE1: ... ? Juts like ENUM in other languages, MY_APPLICATION actually just represent the application id but much more readable since it is a string with a name the user may familar.
    Please help.
    Thank you.

    You can assign an alphanumeric alias to applications and pages using their respective attribute edit forms in the Application Builder. Then you can construct links that use those aliases instead of the IDs. These aliases will generally be preserved in the URL visible in the browser, but not in all cases. You have to deliberately use the aliases in any branch definitions, list item targets, etc. Note that application aliases must be unique within a workspace. Please see the User's Guide for more info.
    Scott

  • How to use real-time tracking and filing in EchoSign

    Click the link to learn how to use the notification, tracking, and filing features available in the Adobe electronic signatures service, EchoSign.

    Hi,
    You can observe the data for executables with the RTSM. Just be sure to
    first go to the Tolls>>RT Taget [x.x.x.x] Options and configure
    the VI Server to use TCP. Then add your desktop machine to the Access
    List on the TCP/IP Access tab. Now VI server should be able to export
    the info. about the executable.
    Richard
    Applications Engineer
    http://www.ni.com
    Richard
    Field Sales Engineer, New Jersey
    National Instruments

  • How to use TREX in Portals

    Hi,
    I installed TREX7.0 newly into Netweavwer Portals.
    Can any one provide me any good link to know How To use TREX in Netweaver Portals.
    Regds
    Phanikumar

    Hi Phani,
    Please go through the link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c7/e0d13f7fb44c21e10000000a1550b0/frameset.htm.
    Regards,
    Sudhir
    Reward Pts If the Answer is Useful

  • How to use SAP Memory analyser in CE7.1 EHP1

    Hi All,
    Please Can you provide proper link to know how to use SAP Memory analyser in CE7.1 EHP1.
    It is urgent .
    Regards
    Mahesh

    Problem solved.

  • How to disable - General preference - Create links from URLs. Using Acrobat Javascript

    http:\\www.sdss.com should not be suggested as a link. We have manual option to uncheck -> Create links from URLs, but I need to achieve this through the script.
    Please help on this ASAP.

    That is an end user preference only. Not accessible by JavaScript. If you control the installation, then you can turn off that option for the installation but the user could still turn it back on.

  • How to use quick link property in the km navigation iview

    Hi all
    I have requirement.
    T structured lables
    one on top and rest 12 at the bottem in 3 columns, 4 rows.
    when i click the lable it should connect to a  respective folder in the KM
    this entire page have to be connected to a folder link...ie when i click this folder link this page with T structured lables have to come and when i click each lable respective folders should open...
    so for that i have created  one KM Document iview(this is like heading in the page) and 12 KM Navigation iviews(pointing to  respective folders)
    after that which layout will be suitable for this in page layout???
    if i add all iviews into a  one single page
    how to connect lables to folder???
    one of my friend have suggested to use '"quicklink'" property along with html page...???
    how to use it ???
    so pls do help me???
    my dead line is by today evening i.e 2.12.08
    pl do reply me as soon as posible
    thanks and regards
    Gayathri vuthukota

    hi Nikhil
    cau u explain me in detail please.
    I have done with HTML page and attached to Km document iview.and i have my 12 Km navigation i views.
    Then create static Links on HTML page to navigate to other iviews. It can be created by using the Insert link in Km tool of the html editor available in Km. For opening a url iview from a link you can write this for executing the 'donavigate method' to open the iview you needed.???
    what is EPCF client eventing???
    thanksn regards
    Gayathri

  • How do i link to a specific tab using the spry tabbed widget

    Hello i'm working on a microsite using the spry tabbed widget. I'm having trouble figuring out how to link to a specific tab using a an external link.
    here is the site. http://www.efaxcorporate.co.uk
    for example: if i wanted to give a user a url link specifically tab#2.
    Im sure this is really easy i just can't seem to figure it out.

    Try http://foundationphp.com/tutorials/spry_url_utils.php

  • How to use URL for http adapter

    Hello,
         Iam working on IDOC2HTTP scenario. Here the end user system they have given only url address userid and password.End user is htttp. Please can u help me how ot use that.
    Thanks in Advance.
    Regards,
    Abhiram

    Hi Abhiram,
    you can put there the URL directly or link to a destination where you store the address.
    Have a look to [Configuration of HTTP receiver adapter|http://help.sap.com/saphelp_nw2004s/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/frameset.htm]
    Regards,
    Udo

  • How to use / on my website's url?

    I want to know how to use / on my website's url?

    the only way i can think off to do that is to build a folder structure which matches the URL you want, because the slash indicates a folder structure, each word between the slashes is a folder so in the root of your web space you'd have a folder called 'more' and within that a folder called 'dentistry' and so on, but i don't think you can control the file structure created when you export from Muse, you could manually create a folder structure and move the pages, but that would break all the links to images, scripts and css

  • How to use relative paths in Captivate 8 / Cómo usar URL's relativas en Captivate 8

    Hello, I have developed a bunch of courses which will be migrated to a new site and I am having trouble changing the absolute paths into relative URL's to resources such as PDF files inserted into the scorm packages. I cannot find information on how to use relative paths in Captivate. Please help. Thank you.

    I have the same issue with relative links using Captivate 8.  I am trying to load Captivate modules into an LMS using relative links to document files within the LMS.  The links work fine during a site page test so not an issue in the LMS, but from the Captivate module they aren't working....
    Help?

  • How to use a name="top" Hello I'm at the top /a tags in apex url ?

    I have a decode statement which creates link to different pages as below
    'f?p=107:1:&SESSION.::NO:::' and it works good.
    Now what I need to do is, I have 6 graphs in 6 different regions on a same page.
    so depending on the options I click, I need to reach to that particular graph using the anchor tags.
    Can you let me know how to do it in APEX ?
    Actually I dont know
    1. How to use these anchor tags in url's in APRX
    2. As well as how to put them on the same page at 6 different regions which I have created.
    Appreciate if someone can give me a good example for using it in apex.

    I have updated the region title with the anchor tags
    Now when I click on the link, it gets resolved to
    http://wsus01697353.am.adecco.net:7777/pls/apex/f?p=107:1:1063560330989286::DEBUG:::%23O2KP1
    instead of
    http://wsus01697353.am.adecco.net:7777/pls/apex/f?p=107:1:1063560330989286::DEBUG:::#O2KP1
    If i directly put in the above URL in the browser it works but when I try to get through the link it dose not work.
    Any suggestion ?

  • How  to use url iview???

    how  to use url iview???
    HI all
    I need to use url iview as back button in the same page with saptransaction iview.
    url iview to used as back button to the home page.
    pl suggeest how to use url ivew....what sort of properties need to be  used.

    HI chander
    thank u for ur response
    I have done an  aplication in which  i have called sap transsaction ivew usind quick link property in .html(page) language.
    where we will be fetching saplogon server using this sap trans saction ivew into the portal frame work  .
    when i loging into the server and log off  with in the portal frame work i am not able to go to my aplication home page. since back/ forward link are disabled.
    atleast i want know how to enable those links.
    or else
    i thought to use url ivew along with sap transaction ivew with a  same page with diffrent layouts.but that is also fine.
    and one   more option  was
    i thought it to be used as pop up as so that when user  login and log off into the server  they will close  that seperate window.
    for that i have set the  ivew property
    "launch in a new window property As : display in a seperate head less portal window"
    but even that is also not working.
    i dont know y  that property is not working
    finally i have coded with java script , now i am able to open the portal in a seperate window but with headed portal.
    for that i have coded some thing like below mentioned.
    problem here is still i am getting the headed portal
    but i want head less portal.
    here headless in the sence i want it like the preview of the ivew.
    please help me in this regard how to get the head less portal when i click on the link.
    Regards
    Gayathri

  • When curser is on hyper link the url will diplay on the bottom of the screen in the background.(where done is located when site is loaded) How do you control this function?

    When curser is on hyper link the URL will display on the bottom of the screen in the background.(where done is located when site is loaded) How do you control this function?

    Do you want to control that via code on a web page to prevent visitors from seeing the link or do you ask as a Firefox user?<br />
    Tools > Options > Content : JavaScript > Advanced > Allow Scripts to:
    [ ] "Hide the status bar"
    [ ] "Change the status bar text"
    The Status Bar will be gone in Firefox 4.0 and is replaced by the (View > Toolbars) Add-on bar that extensions can use.

Maybe you are looking for

  • Header/Detail Flat file parsing

    Hi, How to define a native flat file schema for a file with following kind of layout i.e., Master record followed by Multiple detail record. I need to have a correlation between the Master and its Detail records. MASTER_A1,MASTER_A2,MASTER_A3 DETAIL_

  • DiskWarrior can't fix disk, but I can still mount it?

    My MacBook kernel panicked the other day while I was using it, so I shut it down, and tried to reboot it. Upon rebooting, the Apple logo will appear and the loading wheel starts to spin, but then it just shuts down. I then decided to boot into single

  • IWeb 09 won't open iWeb 08 files

    I have iWeb 08 files I made using OS 10.5.8 that I can't open now that I've upgraded to iWeb  09 and OS 10.6.8. What's the deal?

  • Remote Disc and Windows Vista PC

    Just an FYI, if you are using a PC with Windows Vista on it as your remote drive, you will need to turn off the PC's firewall. With the firewall on, the MacBook Air will not mount the disk to the desktop. Hope this helps anybody with this issue.

  • End of life for JRE1.3.1 by Aug, 05?

    Is it true that Sun microsystem has scheduled end of life for JRE 1.3.1 by Aug, 05? Best regards