How to  EPCM.doNavigate in WD4J?

Hi,
I've a WD Java Application and want to add a LinkToAction UI Element to give an Iview Link.
I want the link to be opened on the same page not as a popup.
On JSP Pages of Header codes like below are working.
a href="#" onclick="return EPCM.doNavigate ('ROLES://portal_content/pathtorole/ROLES/GeneralRole/Applications/ApplLink')">LinkText /a
Via above link, when i click LinkText on page, it navigates to the ApplLink application within a role on the same page.
How to simulate same with WD Java?
regards
Message was edited by:
        HUSEYIN BILGEN

Hi Huseyin,
In WD4J you need to use portalNavigation:
WDPortalNavigation.navigateAbsolute(
  "ROLES://portal_content...",
  WDPortalNavigationMode.<MODE>,
  WDPortalNavigationHistoryMode.<MODE>,
  null);
Omri

Similar Messages

  • Pass parameter in EPCM.doNavigate

    Hello!
    I have JSPDynpage the button, that have OnClientClick:
    addPosButton.setOnClientClick("EPCM.doNavigate('ROLES://portal_content/Webdynpro/java_local_add_lot_position_jwd_nrj_applications_AddLotPositionApplication', 1, 'width=400,height=500');");
    It's open WebDynpro page in new window.
    How can I pass parameters into opening WebDynpro page?

    Found solution.
    Write doNavigation with parameter qqq=test:
    addPosButton.setOnClientClick("EPCM.doNavigate('ROLES://portal_content/Webdynpro/java_local_add_lot_position_jwd_nrj_applications_AddLotPositionApplication? sap-qqq=test ', 1, 'width=400,height=500');");
    In Object property of WebDynpro page iView fill field "Parameters to Pass from Page Request" with value qqq (without sap-)
    Than in WebDynpro page get parameter:
    WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter( "sap-qqq" )

  • Parameters with EPCM.doNavigate

    Hi ,
    I want to call transaction and pass 2 parameters ,  one of them is to execute the screen ( like skip first screen in abap , or iview property ...show first page )..
    The first parameter passed but the execute parameter not working....
    The code :
    EPCM.doNavigate( 'ROLES://portal_content/xxx/iview?DynamicParameter=PRSNUM-LOW%3D"resnum'%26<b>okcode%3donli'</b>, 1)
    I try also ... sy-ucomm%3donli
    How to pass this parameter to make the screen execute ????
    Thanks

    Hi Faniel,
    You can use the following solutins:
    1) Crate another transaction iview and define the ok code, then, navigate to it.
    2) Use Application Integrator
    For example:
    document.location.href('/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.
    Transaction?System=<system name>&TCode=<Transaction
    code>&GuiType=WinGui&AutoStart=true&OkCode=<ok
    code>&DynamicParameter=<param name>%3D<param value>')
    res.write("document.location.href
    ('/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.
    Transaction?
    System=SAP_R3&TCode=ME9F&GuiType=WinGui&AutoStart=true&OkCode=ONLI&
    DynamicParameter=%3D123456');");
    Where:
    SAP_R3 is your backend system
    ME9F is the transaction
    OkCode is ONLI
    Parameter name is S_EBELN-LOW
    Parameter value is 123456
    res in the response component in your dynpage
    Omri

  • URL change in EPCM.doNavigate

    Hi Devina,
    one idea, two remarks:
    1.) Just try to set the onClientClick programmatically, that is before closing the button (</hbj:button>), call setOnClientClick on the button object. <i>Maybe</i> the encoding only happens by the taglib... (just an idea, didn't check it).
    2.) You have a strange parameter passung URL of the form blabla/blubblubb&p=1=2 instead of something like blabla/blubblubb?p1=1&p2=2 or so... any reason for that?!?!
    3.) Hardcoding the PCD location doesn't sound like a good idea in general. Maybe a relative navigation could work, otherwise at least you should parametrize the PCD location.
    Hope it helps
    Detlev

    Detlev ....
    I am still stuck ...
    Now, I do get the number of the row clicked .. but i need to pass this value to the bean to get the corresponding employee to pass as a parameter to EPCM.doNavigate. But i guess it is not possible to pass a value frm javascript to java. Pls see the code..
    JSP
    <script language='JavaScript'>
    <% int i = 0;
    %>
    function test(){
    alert(' i am being passed to onclick of button ' + i);
    <b>pernr = <%=myTableViewBean.getModel.getValueAt(i,2) %>;</b>
    EPCM.doNavigate('ROLES://portal_content/com.hersheys.Hershey_Content/com.hersheys.Human_Resources/com.hersheys.hr.sap_mss_iviews/EmployeeExit?SCENARIO_PARAMS=PERNR=pernr',0);
    function test2(){
    alert(' selected row is ' + htmlbevent.obj.getClickedRow());
    i = htmlbevent.obj.getClickedRow();
    </script>
    <hbj:page title="AIP TeamViewer" >
            <hbj:form id="myFormId">
                   <%  pageContext.setAttribute("myRootNode", OrgSelectionBean.getTree());
                    OrgSelectionBean.renderTree(myFormId);
                   %>
              <hbj:tableView
               id="myTableView2"
               model="myTableViewBean.model"
               design="ALTERNATING"
               headerVisible="true"
               footerVisible="true"
               fillUpEmptyRows="true"
               navigationMode="BYLINE"
               selectionMode="SINGLESELECT"
               headerText="TableView example 1"
               onNavigate="myOnNavigate"
               visibleFirstRow="1"
               visibleRowCount="5"
               rowCount="16"
               width="500 px"
              >
              <% 
               myTableView2.setOnClientRowSelection("test2()");
               myTableView2.setJsObjectNeeded(true);
               %>
              </hbj:tableView>
    <hbj:button
                   id="ButtonSearch"
                   text="Retrieve Forms"
                   width="50px"
                   tooltip="Click here to search"
                   jsObjectNeeded="true"
                   disabled="false"
                   design="STANDARD"
                   onClientClick="test()"
                   />
              </hbj:button>

  • Additional parameter in EPCM.doNavigate

    Hi all,
    I would like to know if I can pass additional parameters in EPCM.doNavigate like
    EPCM.doNavigate("pcd://...."?name=value). If it is not possible is there anyother anyway of achieving it.
    Regards,
    Janvi.

    Sure you cud, if the recieving thing cud take it...
    Eg: If you want to pass some vlaue to a screen field on R3 Transaction Iview, then in the DynamicParameter part you wud say something like this:
    var myValue = 'XYZ';
    EPCM.doNavigate('ROLES://pcd_path/iview?DynamicParameter=P_Val%3d'+myValue,1);void(0);
    where P_Val is the screen field on transaction.
    Plz don forget points, if it helped.
    Regards,
    p.

  • EPCM.doNavigate

    Hello!
    I would like to navigate from one iView to another. I'm using javascript EPCM.doNavigate method.
    When User click on some button with this method new iview opens instead of current iview, but tab of current iview in top navigation is active.
    What can I do, that opening iview's tab become active?

    hi ,
    hope this will give some idea,  it has the parameter to pass to navigate from one view to anview
    http://help.sap.com/saphelp_nw04/helpdata/EN/26/71c74030308431e10000000a1550b0/content.htm
    and explain u r problem more clearly
    ravindra

  • Why EPCM.donavigate doesnt work for Iview with isolation type embedded

    I am using EPCM.donavigate in JavaScript  in portal jspdynpage to navigate to different page. This works fine when my iView  isolation method is URL but it doesnt work when it is embedded. Am I missing something here? some import?
    Regards,
    Nitesh

    Hi,
    In Javacript of Portal jsp page, we are calling EPCM.doNavigate method  as below:
       function callfunc(obj,externalLink,rid,portalPageURL,InvalidLink)
                   return EPCM.doNavigate('ROLES://' + obj)     
    Final URL look something like this...
    portal_content/com.sap.pct/com.sap.prod_fld/com.sap.roles/com.sap.rol_career/com.sap.wks_1_1/Folder_2/com.sap.pag_1_1_2
    This Code works only for Iviews with URL Isolation but doesnt work with Embedded Iviews as my Page which contains this Iviews is also Embedded and Desktop is also embedded.

  • Epcm.doNavigate(): browser url changes

    Hi,<br>
    <br>
    i created a whole new navigation area. When using epcm.doNavigate, the url of the browser changes to the location of the current page.But i want it to stay the same: .../irj/portal.<br><br>
    I compared my code to the original topLevelNavigation, but i can't find any differences that could prevent this url change.<br><br>
    Any ideas?<br><br>
    kind regards,<br>
    Stephie<br><br>
    <script><br>
    function doMouseClick(clickedNode){<br>
         EPCM.doNavigate(clickedNode);<br>
    }<br>
    </script<br>
    ...<br>
    a href="#" onclick="doMouseClick('<%=node1stLevel.getHashedName()%>')"><%=node1stLevel.getTitle(locale)%>  </a

    Hi,
    do you have a real link or an HTMLB link?
    In HTMLB you just have to
    link.setOnClientClick("EPCM.doNavigate('ROLES://" + <yourTarget> + "', 0);");
    But even if it is no HTMLB you could try to set the mode as second parameter.
    0 or not specified: Depending on the setting of the WorkProtect feature the target is opened in a new window or on the current desktop.
    1: Open target in a new window, with no a portal header and navigation bar.
    2: Open target in a new window, with a portal header and navigation bar.
    Maybe that helps.
    Best regards
    Robert

  • EPCM.doNavigate within page

    Hi all -
    our problem is that we click on a sidebar iView and do a
    EPCM.doNavigate to a 2nd iView on the same page, but
    we want the 2nd iView to scroll to the location that was clicked on the first
    the alerts are telling us the data is getting through
    but the 2nd iView just loads (1st iView is questions 1-10)
    2nd page is answers 1-10
    on 2nd page we are trying EPCM.doNavigate to scroll to
    the right location but not working

    Hi Dennis,
    I guess you have links in your iview and when clicked you want to call an iview of the same page and want them to be opened in the portal content area right.
    Probably you could think of Dynamic navigation iviews then where such iviews appear in the portal content area
    else have alook at this forum where they ve tried forwading control from one iview to another of the same page using EPCM.
    EPCF - iView forwarding with EPCM.doNavigate()
    Hope this helps,
    Regards,
    Uma.

  • Problem with EPCM.doNavigate

    Hello all,
    I have a problem here with navigation.
    The code works fine in the dev portal, I hit the 'Enter' button and I'm taken to the appropriate page.
    When I transfer to prod it doesn't work.
    I hit the 'Enter' button and the 'homepage' loads, the default page after login.
    Strange thing is though, I have a button beside an input field, if I click the button it all works fine but when I press the Enter button after making an entry in the input field (I have the button set as default) then the navigation takes me to the homepage and not the appropriate page.
    So clicking the button works, but pressing 'Enter' when the button is the forms' default doesn't work. It navigates to the wrong place.
    Has anyone faced similar problems, any ideas what it could be?
    I'm all ears...
    Best regards,
    Patrick.
    Message was edited by: Patrick O'Neill

    Hi,
    Yeah the paths are the same from dev to prod. I'd checked that in the morning.
    I played around with it, played with onClientClick, onClick, played with this, played with that...... done a transfer and now it seems to be working.
    Strange thing though, for a whiles it was working only on my client and nowhere else..... I think that was related to setJsObjectNeeded somehow. I'd set that true when I was using onClientClick and forgotten to remove it when I went back to onClick. It's so strange though that it worked on this machine and not on the others untill I removed the setJsObjectNeeded. Once I removed that it worked everywhere. Versions of IE I guess.
    It seems to be sorted now anyhoos. Thanks for the contribution
    Best regards,
    Patrick.

  • How to open another iView in the same window

    Hallo,
    I user following code for opening iView:
    String iView = "http://server/irj/portal?NavigationTarget=ROLES://portal_content/example";
              this.getForm().addRawText("<SCRIPT>\n");
              this.getForm().addRawText("EPCM.doNavigate('" + iView + "',"
                             + "'1',"
                             + "'toolbar,menubar,resizable,scrollbars',"
                             + "'',"
                             + "'',"
                             + "'',"
                             + "''"
                             +
                        //","+
                        ");\n");
              this.getForm().addRawText("</SCRIPT>");
    ... but this open iView in new window. I'd like to open iView in the same window as the primary iView.
    Best Regards,
    Josef Motl

    Hello all:
    And... How could I show some i-views with another contents in the same page, like this?
    photo
    IVIEW
    photo
    IVIEW
    Thanks,
    Alejandro.
    P.D.: Excuse my poor English.

  • How to divide the iview into frames?

    Hi Experts,
                  Please tell me how to divide the iview into frames.Kindly provide the   steps.Its urgent.
    Regards,
    Nutan

    Hi Nutan,
    Now its clear!!
    If I understand right. You want an overview page full of links to go to your different pages?
    Or maybe you want a link form each page to go to another page?
    In Portal Navigation through hyperlinks is possible.
    You can either do that using EPCM.doNavigate("ROLES://...") {check for EPCM API of help.spa.com}
    Or you could do that by simple
    <a href="http://www.sdn.sap.com/irj/portal/myql">CLICK</a>
    {check for Quicklinks on help.sap.com}
    Either way you'll have to make a small JSP for that.
    Hope this helped
    If so kindly reward with points
    Prem

  • How to devide the vedio into frames??

    Hi everybody;
    i want o capture a video from a cam. and convert this online video into images to process without STORING THIS VIDEO , can jmf do that??? and how???
    thx in advance ,
    Rofa.

    Hi Nutan,
    Now its clear!!
    If I understand right. You want an overview page full of links to go to your different pages?
    Or maybe you want a link form each page to go to another page?
    In Portal Navigation through hyperlinks is possible.
    You can either do that using EPCM.doNavigate("ROLES://...") {check for EPCM API of help.spa.com}
    Or you could do that by simple
    <a href="http://www.sdn.sap.com/irj/portal/myql">CLICK</a>
    {check for Quicklinks on help.sap.com}
    Either way you'll have to make a small JSP for that.
    Hope this helped
    If so kindly reward with points
    Prem

  • Issue:  node id in doNavigate() 's first parameter

    Hi all,
    I have a link on the main portal page called 'Sitemap'. Whenever an user clicks it then the sitemap iview should be displayed. I have added the sitemap iview to the user role and set its 'Invisible in navigation area' to 'Yes'  since I dont want to display it in DTN but on the top explicitly.
    On the link click event of "Sitemap' link, I wrote following code :
    <b>EPCM.doNavigate('ROLES://portal_content/pc.roles/com.pc.ANONYMOUS_ROLE/com.pc.PC_Sitemap',0);</b>
    Thus the navigation target here is hardcoded. If the path of the role or sitemap iview is changed later then this code wont work. This case will surely occur while migrating from development to quality server.
    How do I make this navTarget in doNavigate() dynamic ???  Say my iview name ' _Sitemap'  remains constant in all scenarios but only its path changes.
    Please help me in this regard.
    Thanks, in advance
    Prasanna

    Hi,
    Yes it should contain the server name. the table S_NQ_ACCT is below just make sure..
    COLUMN_NAME     TYPE_NAME
    USER_NAME     varchar
    REPOSITORY_NAME     varchar
    SUBJECT_AREA_NAME     varchar
    NODE_ID     varchar
    START_TS     datetime
    START_DT     datetime
    START_HOUR_MIN     char
    END_TS     datetime
    END_DT     datetime
    END_HOUR_MIN     char
    QUERY_TEXT     varchar
    QUERY_BLOB     ntext
    QUERY_KEY     varchar
    SUCCESS_FLG     numeric
    ROW_COUNT     numeric
    TOTAL_TIME_SEC     numeric
    COMPILE_TIME_SEC     numeric
    NUM_DB_QUERY     numeric
    CUM_DB_TIME_SEC     numeric
    CUM_NUM_DB_ROW     numeric
    CACHE_IND_FLG     char
    QUERY_SRC_CD     varchar
    SAW_SRC_PATH     varchar
    SAW_DASHBOARD     varchar
    SAW_DASHBOARD_PG     varchar
    PRESENTATION_NAME     varchar
    ERROR_TEXT     varchar
    IMPERSONATOR_USER_NAME     varchar
    NUM_CACHE_INSERTED     numeric
    NUM_CACHE_HITS     numeric
    for more refer this
    http://total-bi.com/2011/09/obiee-11g-usage-tracking-rpd/
    Thanks
    Deva

  • How to make link that browses your detailed navigation

    Hello Sapies,
    I'm currently working with EP7 and I'm showing a html page in a iview that contains links. I want that these links automatically browse my menu-structure. So to other roles and/or to other iviews in my detailed navigation. How do I build these hyperlinks.
    In EP6 it worked like this
    See my thread - URL iView
    What has changed? Can you also do this within the same browser screen?
    Thanks,
    Frederik

    Hi,
    As far as I know there is nothing changed in EP7 to trigger Navigation.
    You can navigate two ways:
    1. Use EPCF to navigate:
    A HREF="myLink"
      onclick="return EPCM.doNavigate
            ('ROLES://portal_content/myRole/myIView')">
    This is an HTML Link
    /A
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/0029d0e7371aa2e10000000a422035/frameset.htm
    2. Navigating using <b>NavigationTarget</b>, as you already know from your thread:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/91e33edd37de63e10000000a11405a/frameset.htm
    Also check these:
    Logical Name for the EP 6.0 Server for window.navigate URL.
    Portal 6.0 Top-Level navigation problem?
    Greetings,
    Praveen Gudapati
    [Points are welcome for helpful answers]

Maybe you are looking for