Dynamically change URL iView link

Hi,
I have a requirement like this:
Button1 would open an external link from Portqal
Button2 would open a KM document from KM
Button3 would open a KM folder
In future the link type of these button can change.
These external link, KM document location and KM folder location are read from a properties file and are subject to change.
Here is my Approach
I have created a separate URL iViews for testing purpose and tested that with URL iView, it is possible to open:
External link in the format of http://www.<link>.com
KM Folder in the format /irj/go/km/navigation/documents/..../<Destination Folder> , &
KM document in the format /irj/go/km/docs/documents/..../<Destination File>
I have now created a single URL iView pointing to a default URL(google), and marked the URL iView parameter Forced URL - Enabled as True
The plan is to use this single iView for invoking any type of links - be it external, KM Folder or KM document
In WebDynpro, I have tried using the following code to call this iView:
WDPortalNavigation.navigateAbsolute(("ROLES://portal_content/demo_role/universal_url_iview",
WDPortalNavigationMode.SHOW_EXTERNAL,
WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
"forcedURL="+dynamicURL);
Not Working! Always opening the default google link.
WDPortalNavigation.navigateAbsolute(("ROLES://portal_content/demo_role/universal_url_iview",
WDPortalNavigationMode.SHOW_EXTERNAL,
WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
"app.forcedURL="+dynamicURL);
Not Working! Always opening the default google link.
where dynamicURL= either  http://www.<link>.com or /irj/go/km/navigation/documents/..../<Destination Folder> or /irj/go/km/docs/documents/..../<Destination File>
Am I missing any configuration or the code is wrong?

You really need to open the url within an iView? Oo
IWDWindow window=wdComponentAPI.getWindowManager().
.createExternalWindow("http://www.google.co.in","Google-search for an email address",false);
window.setWindowSize(100,100);
window.open();
or
String linkToBeOpen = "https://www.sdn.sap.com/irj/sdn";
IWDWindow window =
wdComponentAPI.getWindowManager().createNonModalExternalWindow(
linkToBeOpen,
"My window title");
window.show();
or
import com.sap.tc.webdynpro.clientserver.portal.WDPortalUtils;
import com.sap.tc.webdynpro.clientserver.navigation.api.WDPortalNavigation;
if ( ! WDPortalUtils.isRunningInPortal()  ) { // standalone mode
  wdThis
    .wdGetExternalcompInterfaceViewController()
      .wdFirePlugGoToUrl(urlobject);
} else { // portal iView mode
  WDPortalNavigation.navigateAbsolute(
    ... /*set of parameters that I do not understand ;) */
regards,
Angelo

Similar Messages

  • Dynamically change a partner link config property via the BPEL Consle

    Is it possible to dynamically change a configuration property
    for a partnerlink in the BPEL Console?
    From Help in Jdev:
    - Double click Partner Link
    - Property tab
    -- Help
    --- "Property Tab"
    Partner link properties are simple name-value pair properties that
    are defined and can be accessed at runtime by the BPEL process.
    The value of a property can be changed from Oracle BPEL Console
    at runtime without having to redeploy the BPEL process.
    Steps to reproduce:
    1. Set the configuration property retryMaxCount on a partnerlink
    2. Enter the BPEL Console, click on the process and then the descriptor tab.
    3. Not seeing a utility to change the value in the BPEL Console.

    Hi Dave,
    the console only allows changes to activation agent properties.
    There are two kinds of partnerlinks. Those associated with a receive (inbound, activation), and those associated with an invoke (outbound, webservices invoke). Only the former polling process properties can be configured from the console.
    Outbound there are only a handfull of properties and the lifecycle management is not the same.
    Thanks
    Steve

  • Javascript to dynamically change url in submit button

    Hi guys
    Is there anyone who can share the code to dynamically change the url in the submit button?
    Thanks
    Sam

    Change the button to Regular button instead of Submit and write the code in the click event of the button.
    (OR)
    Keep the button as Submit and remove the URL in the button properties. Place the code in preSubmit event to set the URL for submit.
    The code to set the URL in any of the above approaches:
    this.resolveNode("#event").submit.target = "PLACE URL HERE";
    Thanks
    Srini

  • Pass parameters dynamically to url iview from web dynpro abap

    Hi,
    I am trying to pass 3 key-value pairs via absolute navigation to a URL iview.
    The url expected is : http://www.sap.com?field1=value1&field2=value2&field3=value3
    For this, I have done the following:
    1) Created a url iview with the 3 parameters in get.
    2) Used the pcd location of the url iview and referred it in the navigate_absolute method.
    Following is the call:
            CALL METHOD lr_port_manager->navigate_absolute
              EXPORTING
                navigation_target   = wa_navigation-target
                navigation_mode     = wa_navigation-mode
                use_sap_launcher    = abap_false
                business_parameters = l_bus_parameter_tab.
    The l_bus_parameter_tab has the key-value pairs populated and I can see them populated.
    However, when the url is being called the parameters are not getting passed. Am I missing anything to be passed?
    Thanks.

    Hi Kumar,
    I have followed your reccomendation and updated the code and iview properties.
    The code now looks like:
            l_parameter-key = 'userid'.
            l_parameter-value = sy-uname.
            INSERT l_parameter INTO TABLE l_bus_parameter_tab.
            l_parameter-key = 'portal'.
            l_parameter-value = 'test'.
            INSERT l_parameter INTO TABLE l_bus_parameter_tab.
            l_parameter-key = 'mode'.
            l_parameter-value = 'I'.
            INSERT l_parameter INTO TABLE l_bus_parameter_tab.
    *End of business parameters population
            CALL METHOD lr_port_manager->navigate_absolute
              EXPORTING
                navigation_target   = wa_navigation-target
                navigation_mode     = wa_navigation-mode
                use_sap_launcher    = abap_true
               business_parameters = l_bus_parameter_tab.
                launcher_parameters = l_bus_parameter_tab.
    However, when the method is called, it does nothing and the url does not get called.
    When I manually add parameters to the url iview and preview it, it does the job.
    For some reason, these parameters are not getting passed to the url iview or page.
    Is there a limitation that parameters cant be passed to url iviews?

  • Dynamically change and re-link shared object

    I work on a digital signal processing system that never shuts down. I am trying to develop the capability to dynamically change a processing algorithm. Where can I find more information on how to swap out a function or object method, relink and keep the system going with the new code?

    One more thing. This is in C or C++.

  • Change URL iview

    Hi,
    I change the URL on an existing iview, but on the portal the old URL remains!
    What step is missing?
    Thanks.
    Best regards,
    Maria João Rocha

    Hi,
    Going 1 step foward:
    on the portal content:
    If i display the iview it is correct
    if i display the page is is correct
    if i display the worset it is correct
    if i displai the role is not correct!
    What can i do?
    Thanks.
    Best regards,
    Maria João Rocha

  • Dynamic open URL based link in OAF

    It's My Urgent Requirement,Please help me!
    I have added addition column using  VO Extension in seeded OAF page, that additional column contain URL value.
    my requirement, if click link in the column, it will open corresponding URL in New tab.

    Yes, the cookbook version works in AIR.
    Here it is
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
    <mx:Script>
          <![CDATA[
                private function init():void
                      html.htmlLoader.navigateInSystemBrowser = true;
          ]]>
    </mx:Script>
          <mx:HTML location="test.html" id="html" creationComplete="init()"/>
    </mx:WindowedApplication>

  • Hyperlink not changing url to linked site

    I started a post on this before but spoke with Moniker.com and got a bunch of info.
    On my site www.jonbrownonline.com, the link to sweetasswebsite on the bottom works but the url stays "jonbrownonline.com".
    They explained that this is because jonbrownonline.com is in a "frame". I guess iweb creates pages in frames? Anyone know anything about this because he said if I could get it out of a frame, it will not keep the url when it links to other sites.
    thanks,
    jon

    Same here. My Site which is hosted on .Mac is linked to by the domain markusknak.de and that is the URL that is shown by the browser.
    Within my site there is a link to an external site which should NOT be shown under the name of my domain - but it is.
    I talked to my domain provider and he too said, that the reason has to be frames in the code.
    Any Idea yet, how to solve this?
    -Markus

  • URL iView becomes blank / white page

    Hi,
    I have a problem with some url iviews. We have several url iviews linked to a page. These url iviews are displaying a jsp page from another webserver. One of those jsp pages is automatically reloaded after 3 minutes.
    The problem is:
    After some time each url iview is getting blank. It is only showing a white page without any content. I've checked the source code, which is also blank. If I reload the iview or the page, nothing happens, the iviews stay blank. When I log of, start a new browser an log on again, the iviews work again.
    Does anybody know this problem? Can you please post a solution for this problem?
    Thanks a lot,
    Sebastian

    I had a problem like yours today. It´s not copletely the same, because our sap crm web was allways white after selecting a menu, but maybe it can be usefull for you.
    We added these two parameters to DEFAULT profile using RZ10:
    a. login/accept_sso2_ticket value should be 1
    b. login/create_sso2_ticket value should be 2
    After saving and activating the profile, you need to restart SAP.

  • URL iView doesn't open link in new window

    Hi All,
    I'm have an URL iView that I want to display in the portal content area but whenever the user clicks on a hyperlink on that iView launch a new window for the link.
    I've tried using the 'Open iView links in new window' without any success. Is this supposed to work or this property is for another purpose...? Can someone point me to a solution.
    Thanks

    Hi Detlev,
    I checked what you said. I've already looked at that page but didn't saw that important disclaimer. My problem was that I didn't had a captured area-URL iView but a full page-URL iView as it says:
    +These properties are relevant in the following instances only:
    §         The iView content is displayed in its source format. The rendering type must be defined as Keep Source Formatting. See Defining the Look and Feel of the iView Content.
    §         The iView content displays a captured area, and not the entire Web page. See Selecting the Capture Area.+
    I only had to change the 'Open iView links in new window' to Yes after capturing a part of my page and it started working.
    Thanks for sharing

  • How to set dynamic host name in the URL of a URL iView?

    Hello,
    I am using a standard URL iView that points to some J2EE app I've written and deployed on the same server.
    I would like to set the host name to be a dynamic one, this way I won't need to change the iView URL when transporting it from one portal to another. As far as I know the system for a URL iView only controls authorizations but cannot replace the full URL set in the iView.
    Any idea who can this be achieved?
    Roy

    Hi Mrityunjay,
    forced URL at runtime will require me to call the URL iView from another iView that I will need to code (setting the URL in the Request object). If I did all this I might as well call it from this iView already.
    I would like to do it with no further developments. I would have thought that SAP has constants that can be plugged in the URL for this type of thing, i.e. $hostname...
    Rgds,
    Roy
    Edited by: Roy Cohen on Aug 21, 2008 4:03 PM

  • Dynamic Parameters in URL-IView

    Hai,
    I am using the ESS-framework and I want to create a link which calls an URL with dynamic parameters.
    I have already created an URL-Iview with the example url:
    http://a.nl:51800/webdynpro/dispatcher/sap.com/pcui_gp~isr/IsrForm
    And I also defined a resource and a service in the backend (Customizing)
    My question is:
    How can I dynamically generate the Parameters SCENARIO and MODE in the url using the URL input field in the defined resource?

    Hi Remco,
    If you create several resources for the same webdynpro (isrform) you can pass params via the resource definition (URL params).
    Your webdynpro application can be defined as:
    - Webdynpro application (in the xss homepage framework) as a resource;
    - URL resource linking to a portal page/iview (with params): url iview with params
    - URL resource linking to a portal page/iview (with params): webdynpro iview with params
    But before you are going to tweak with it, please try to find out if your url will work:
    http://a.nl:51800/webdynpro/dispatcher/sap.com/pcui_gp~isr/IsrForm?scenaro=SPEG&mode=CREATE.
    If this works, then create an iview in the portal of the url type or webdynpro type. Does it still work with static params? If so, remove the static params from your iview properties.
    Now try the following link:
    http://yourportal:port/irj/portal?NavigationTarget=pcd_path_to_your_iview
    If this works, check out the following link:
    http://yourportal:port/irj/portal?NavigationTarget=pcd_path_to_your_iview&DynamicParameter=MODE%3DCREATE%26SCENARIO%3DSPEG
    Everything after DynamicParameter must be encoded. To find out what the encoding is, just use google and search for your characher. As an example (let's find the = sign):
    http://www.google.nl/search?hl=nl&q=%3D&meta=
    %3D is the = sign
    Last step:
    Create a resource as described on top of this post.
    This will be my approach to get this working
    Good luck!

  • Dynamic URL Iview

    Hi
    We need to show language specific content to the user logged in. We have different URL for each language.
    We are using URL iviews in portal.
    If a Arabic user logs into portal I want him to see the Arabic page by default. If a English user logs on I want him to see the English page by default.
    I wanted to know whether it is possible to change the URL dynamically depending on the user profile.
    Rgds
    NagaKishore V

    Hi
    My req is
    We are using url iviews for in portal. We have web pages for different languages.  Req. is when a user with Arabic as language preference logs in he should see the web pages in Arabic. If the user preference is Japanese he should see Japanese pages. We dont want to maintain mulitiple iviews for each language. The webpage urls are in this format
    For englisj ;--  www.xxx.com/yyy/en
    for japanese - www.xxx.com/yyy/jp
    for arabic - www.xxx.com/yyy/ar
    Since only the last 2 characters are differeent and rest of the url is same, Is there is a way where we can create 1 iview and depending on the user preference he is navigated to that page.
    Regards
    NagaKishore V

  • How to change the URL of a URL-iView over Code ?

    Hi all,
    i am getting started with the Portal-Application-Developement and want to change the URL of an URL-iView on runtime with java-code.
    i have read the context and can get the Property url with this statement.
    endContext.getProfile().getProperty("url")
    But if i change this property, nothing is done.
    endContext.getProfile().setProperty("url", "http://www.yahoo.com");
    Where is my fault.
    Thanks for help.
    Regards Jürgen

    Hi,
    the context is of Type IPortalComponentContext.
    I cant find no method getParameter() at the context or the profile.
    The methods to read the properties of the URL-iView are
    context.getProfile().getProperty("url")
    context.getProfile().getAttributeValue("url")
    But if i want to set (change) this attribute, nothing is done.
    Regards Jürgen

  • How to open URL IView with dynamic url parameter (navigate_absolute)

    Hi Experts,
    i would like to open an URL-IView from the WebDynpro ABAP Application in the Enterprise Portal 7.0
    and i want to set the URL parameter dynamically. Is this possible and how can i achieve this!!
    Thx Markus

    Hi Markus,
    You can take help of the following code snippet.
    Here we are calling an Iview using absolute navigation and passing URL parameters as well
    * Select the input value entered and then pass it to REM INQ application---------
      DATA lv_inputbusobjid   TYPE          wd_this->Element_context-inputbusobjid.
      DATA lv_path            TYPE          string.
      DATA lv_tab_wd_param     TYPE          wdy_key_value_list.
      DATA lv_str_wd_param     TYPE          wdy_key_value.
      DATA lo_el_context      TYPE REF TO   if_wd_context_element.
      DATA api_component      TYPE REF TO   if_wd_component.
      DATA window_manager     TYPE REF TO   if_wd_window_manager.
      DATA window             TYPE REF TO   if_wd_window.
      DATA lo_api_component   TYPE REF TO   if_wd_component.
      DATA lo_portal_manager  TYPE REF TO   if_wd_portal_integration.
    * read the imput data first-------------
    * get element via lead selection
      lo_el_context = wd_context->get_element( ).
    * get single attribute
      lo_el_context->get_attribute(
        EXPORTING
          name =  `INPUTBUSOBJID`
        IMPORTING
          value = lv_inputbusobjid ).
    ** call remuneration inquiry window using absolute navigation
      CLEAR lv_tab_wd_param.
    * Adding parameters
      lv_str_wd_param-key = 'sap-wd-configId'.
      lv_str_wd_param-value = 'CACS_REMINQ_CONF'.
      APPEND lv_str_wd_param TO lv_tab_wd_param.
      lv_str_wd_param-key = 'BUSOBJ_ID'.
      lv_str_wd_param-value = lv_inputbusobjid.
      APPEND lv_str_wd_param TO lv_tab_wd_param.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_portal_manager = lo_api_component->get_portal_manager( ).
      if lo_portal_manager is BOUND.
    * PCD
      lv_path = 'ROLES://portal_content/com.sap.pct/specialist/com.sap.pct.erp.common.workset_reuse/com.sap.pct.erp.icmparticip.bp_folder/com.sap.pct.erp.icmparticip.15.bp_folder/com.sap.pct.erp.icmparticip.15.pages/com.sap.pct.erp.icmparticip.RemInquiry'.
      lo_portal_manager->navigate_absolute(
        navigation_target   = lv_path
        navigation_mode     = if_wd_portal_integration=>co_show_external
        window_features     = 'toolbar=no,resizable=yes,scrollbars=yes'
        business_parameters = lv_tab_wd_param
      endif.
    Hope this helps
    Regards
    Manas Dua

Maybe you are looking for

  • Error while receivind a pdu - wrong version  grrr

    Hi, I work on Solaris 8.0 and I installed SDK toolkit. I wrote my own subagent starting with the demoAgent into the toolkit. I created X.acl and X.reg Also, I configured into snmpdx.acl my traps exactly like I did into my X.acl I started snmpdx in de

  • How to correct the sequence of pricing condition in ME21N

    Hi, I checked the sequence of pricing condition for a contract in ME33K in Quality and development server, the sequence is correct in both ME33K  and ME21N also but I faced the problem the pricing condition showing in reverse order in ME21N as compar

  • Exception handling - JMS

    I have number of types exceptions being thrown in my application. Of them JMS, Database, user-defined and others. I am using MessageListener to receive messages from a queue. If I use ExceptionListener, I can only handle JMS exceptions in a class imp

  • Sales order Customer Requested Delivery Date

    Hi Experts We are getting date difference of Customer Requested Delivery Date in MD04 and Product View for one customer. Scenario: Created Sales order by giving CRD date as 26.07.2010 and In APO Product View the same sales order shows 25.07.2010. Ple

  • The ramp output vi seems not to be ramping(correct attachment)

    I have a vi that should ramp the voltage from an inicial set voltage to a final set voltage over a period of time established by the user, but it seems to be jumping from the initial to final set with no ramp. I have attached the library in which it