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>

Similar Messages

  • 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

  • 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.

  • 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" )

  • [svn:fx-3.x] 11086: Fixing Safari 4.x support for url change detection.

    Revision: 11086
    Author:   [email protected]
    Date:     2009-10-22 11:42:17 -0700 (Thu, 22 Oct 2009)
    Log Message:
    Fixing Safari 4.x support for url change detection.
    QE notes: None
    Doc notes: None
    Bugs: SDK-22483
    Reviewer: Alex
    Tests run: Manual browser test.
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22483
    Modified Paths:
        flex/sdk/branches/3.x/templates/html-templates/client-side-detection-with-history/history /history.js
        flex/sdk/branches/3.x/templates/html-templates/express-installation-with-history/history/ history.js
        flex/sdk/branches/3.x/templates/html-templates/no-player-detection-with-history/history/h istory.js

    HI,
    Go to ~Library/Internet Plugins. You should see: Glims
    "/Library/InputManagers/Glims/Glims.bundle/Contents/MacOS/Glims"
    Delete Glims from the system and restart your Mac.
    If you need help uninstalling Glims go here.
    Safari 4: May unexpectedly quit with "Glims for Safari" Read where you see: Resolution.
    Carolyn
    Message was edited by: Carolyn Samit

  • Opendocument url changes automatically on different machines

    Hello All,
    I have one url of a Document
    http://server:8080/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=sample
    when i open this url on the same server, it asks for credentails, after passing the same, the page show could not find the document and page 404 missing
    When i open the same document on different server the URL changes automatically to
    http://server:8080/BOE/OpenDocument/1403251017/OpenDocument/opendoc/logonVintela.do?appKind=OpenDocument&iDocID=sample&sIDType=CUID&isApplication=true&appKind=OpenDocument&appCUID=AZXgyG8_ue9OtYITUhGG.wg
    the file gets downloaded.
    Does anybody know the solution?
    Kind Regards
    MD

    Hi
    In one machine without asking anything is runs and downloads the document (url changes automatically in this machine, second link)
    this is because
    The URL we are using to access the launch pad
    if we are using http://xyz:8080/BOE/BI
    the our URL for open doc should be http://xyz:8080/OpenDocument/opendoc/logonVintela.do?appKind=OpenDocument&iDocID=sample&sIDType=CUID&isApplication=true&appKind=OpenDocument&appCUID=AZXgyG8_ue9OtYITUhGG.wg
    then it will not ask for anything it will take from the existing session.
    or we are accessing the launch pad with the http://111.1115.556:8080/BOE/BI
    and passing the above URL
    http://xyz:8080/OpenDocument/opendoc/logonVintela.do?appKind=OpenDocument&iDocID=sample&sIDType=CUID&isApplication=true&appKind=OpenDocument&appCUID=AZXgyG8_ue9OtYITUhGG.wg
    then it will as for a user name and password
    then will as for a login screen

  • How to resolve Agents with pending URL changes

    Greetings,
    I have run the EMDIAG tool against my 12c OMS and one section of the results hows thie following -
    7001. Agents with pending URL changes
    LAST_EMD_URL
    EMD_URL
    https://lepisma.ucdavis.edu:3872/emd/main
    https://lepisma.ucdavis.edu:1830/emd/main
    1 row selected.
    verifyASLM
    ======================================================================
    On this host ./emctl status agent returns -
    Oracle Enterprise Manager 12c Cloud Control 12.1.0.1.0
    Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
    Agent Version : 12.1.0.1.0
    OMS Version : 12.1.0.1.0
    Protocol Version : 12.1.0.1.0
    Agent Home : /usr/local/oracle/product/agent12g/agent_inst
    Agent Binaries : /usr/local/oracle/product/agent12g/core/12.1.0.1.0
    Agent Process ID : 44637
    Parent Process ID : 44555
    Agent URL : https://lepisma.ucdavis.edu:3872/emd/main/
    Repository URL : https://oracle-emrep1.ucdavis.edu:4904/empbs/upload
    Started at : 2013-04-20 16:09:06
    Started by user : oracle
    Last Reload : (none)
    Last successful upload : 2013-04-22 13:34:14
    Last attempted upload : 2013-04-22 13:34:14
    Total Megabytes of XML files uploaded so far : 134.96
    Number of XML files pending upload : 1
    Size of XML files pending upload(MB) : 0.03
    Available disk space on upload filesystem : 62.49%
    Collection Status : Collections enabled
    Last attempted heartbeat to OMS : 2013-04-22 13:34:11
    Last successful heartbeat to OMS : 2013-04-22 13:34:11
    Agent is Running and Ready
    Examinig the emd.properties file shows no entry for https://lepisma.ucdavis.edu:1830/emd/main and ./emctl config agent listtargets only shows the following for oracle_emd -
    [lepisma.ucdavis.edu:3872, oracle_emd]
    This was recently upgraded from 11g and prior to the upgrade there were difficulties patching this agent. Because of that it was reinstalled in 12c. I have no clue what is causing the issue let alone how to resolve it. Any suggestions are greatly appreciated.
    Thank you.
    Bill Wagman

    It's ok to have 11g agent and 12c agents up and running simultaneously and we do it all the time during migration from one to the other since they have to run on different ports (12c checks this at install ONLY IF the 11g agent it up and running when the 12c agent is being pushed out to the host).
    Also, if EMDIAG is the only place you see 1830 port being reported, it may be becuase its doing a search for any agents currently installed on the server. So if you still have both the 11g agent and 12c agent installed, this should not be an issue that it it reporting that URL/port with 1830 for the 11g agent. Since you can't upgrade 11g agents to 12c, (its required to do a new install of 12c agent) you have to do a complete uninstall of the 11g agent first from the OEM 11g gui console, then at the inventory level where the inital 11g agent was installed, than you may still need to manually remove that 11g directory if your runInstaller did not remove it once its "uninstalled".
    Edited by: ora6dba on Apr 25, 2013 7:24 AM

  • 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.

  • HOW TO MOVE FROM ONE JSP TO ANOTHER BY HIDING URL CHANGES

    HOW TO MOVE FROM ONE JSP TO ANOTHER BY HIDING URL CHANGES IN AN ADDRESS BAR

    Please check before posting that you have not accidentally turned on the CAPS LOCK feature of your keyboard.
    To answer your question. You can't do that. There are alterate ways to solve this sort of problem. What exactly is the nature of the problem you are seeking to solve?

  • 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

  • Interesting sort issue: URL changes but does not refresh

    Thanks everyone for you help on my sort problem! There is still one tiny issue remaining.
    When I hit the SORT button, nothing happens except the URL changes from http://localhost/jserv/Invoice3.jsp to http://localhost/jserv/Invoice3.jsp?valueCheckbox=3&valueCheckbox=4&order=ID&sort=DESC
    The ID's of the records and the sort order are being added to the URL, but the sort is not being performed.
    -Michael
    <%@page language="java" import="java.sql.*"%>
    <%@ include file="../Connections/connBeachwear.jsp" %>
    <%
    String rsBeachwear__varCheckbox = "1";
    if (request.getParameter ("valueCheckbox") !=null) {rsBeachwear__varCheckbox = (String)request.getParameter ("valueCheckbox")   ;}
    %>
    <%
    //SORT VARIABLES:
    String rsBeachwear__name = "ID";//default sort value
    if (request.getParameter ("order") !=null) {rsBeachwear__name = (String)request.getParameter ("order");}
    String rsBeachwear__sort = "ASC";//default sort value
    if (request.getParameter ("sort") !=null) {rsBeachwear__sort = (String)request.getParameter ("sort");}
    %>
    <%
    Driver DriverrsBeachwear = (Driver)Class.forName(MM_connBeachwear_DRIVER).newInstance();
    Connection ConnrsBeachwear = DriverManager.getConnection(MM_connBeachwear_STRING,MM_connBeachwear_USERNAME,MM_connBeachwear_PASSWORD);
    String chkValues[]=request.getParameterValues("valueCheckbox");
    StringBuffer prepStr=new StringBuffer("SELECT ID, Item, Color, Size FROM Beachwear WHERE ID=");
    for(int x = 0; x < chkValues.length; ++x) {
    prepStr.append(chkValues[x]);
    if((x+1)<chkValues.length){
    prepStr.append(" OR ID=");
    }//end if
    }//end for loop
    prepStr.append(" ORDER BY '%" + rsBeachwear__name + "%' '%" + rsBeachwear__sort + "%'"); //NEW SQL SORT CODE:
    PreparedStatement StatementrsBeachwear=ConnrsBeachwear.prepareStatement(prepStr.toString());
    ResultSet rsBeachwear = StatementrsBeachwear.executeQuery();
    Object rsBeachwear_data;
    %>
    <title>Beachwear Title</title>
    <body bgcolor="#FFFFFF">
    <p> </p>
    <p> </p>
    <p><br>
    INVOICE<br>
    </p>
    <%//FORM "GET" METHOD<%>
    <form name="form1" method="get" action="Invoice3.jsp">
    <p><br>
    </p>
    <%while(rsBeachwear.next()){   //LOOP; RELEVANT, NOT POINTLESS %>
    <table width="75%" border="1">
    <tr>
    <td width="13%">ID:</td>
    <td width="87%"><%=(((rsBeachwear_data = rsBeachwear.getObject("ID"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    </tr>
    <tr>
    <td width="13%">ITEM:</td>
    <td width="87%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Item"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    </tr>
    <tr>
    <td width="13%">COLOR:</td>
    <td width="87%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Color"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    </tr>
    <tr>
    <td width="13%">SIZE:</td>
    <td width="87%"><%=(((rsBeachwear_data = rsBeachwear.getObject("Size"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%></td>
    </tr>
    <tr>
    <td width="13%"> </td>
    <td width="87%">
    <input type="checkbox" name="valueCheckbox" value="<%=(((rsBeachwear_data = rsBeachwear.getObject("ID"))==null || rsBeachwear.wasNull())?"":rsBeachwear_data)%>" checked> //NEW CHECKBOX ADDED WITH SAME CODE AS PREVIOUS (SEARCH) PAGE
    </td>
    </tr>
    </table>
    <%
    %>
    <p>  </p>
    <br>
    <table width="54%" border="1">
    <tr>
    <td width="29%">
    <div align="center">Parameter </div>
    </td>
    <td width="28%">
    <div align="center">1</div>
    </td>
    <td width="43%">
    <div align="center">2</div>
    </td>
    </tr>
    <%//TWO NEW PULL-DOWN MENUS FOR "ORDER BY" SQL SORT%>
    <tr>
    <td width="29%">
    <div align="center">
    <input type="submit" value="Sort Now">
    </div>
    </td>
    <td width="28%">
    <div align="center">
    <select name="order" size="1">
    <option value="ID" selected>ID</option>
    <option value="Item">Item</option>
    <option value="Color">Color</option>
    <option value="Size">Size</option>
    </select>
    </div>
    </td>
    <td width="43%">
    <div align="center">
    <select name="sort" size="1">
    <option value="ASC" selected>Ascending</option>
    <option value="DESC">Descending</option>
    </select>
    </div>
    </td>
    </tr>
    </table>
    </form>
    <%
    rsBeachwear.close();
    ConnrsBeachwear.close();
    %>

    The sort problem is solved: Mission accomplished!
    The single quotes and percentage marks in the SQL logic were causing the problem! The sort works great now. Now I just need to program memory into the list boxes so they remember their last setting, but I know how I will do that.
    Thanks again for all your help!

  • Have the web service API URLs changed?

    I'm currently in the beginning stages of working with the iTunes U Web Service API, and I'm running into an issue.
    Step 2 of uploading a web services document (pg 50 of the admin guide) says to request an upload URL. The base URL for this request:
    https://deimos.apple.com/WebObjects/Core.woa/API/GetUploadURL
    doesn't seem to be valid. I am receiving 404 errors:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>404 Not Found</title>
    <meta name="generator" content="Indigo">
    </head>
    <body>
    Not Found
    The requested URL /WebObjects/Core.woa/API/GetUploadURL was not found on this server.
    </body>
    </html>
    I've tried added the identifier path but still no luck. Just to be clear, I am generating and sending a proper authorization token; the issue is that the destination URL seems to be invalid.
    Have the API URLs changed or am I missing something?
    Thanks

    Hi Chris,
    A couple of things ...
    First is that you want to read page 54 of latest admin guide.
    Nextly, the basic way to access the API hasn't changed ... Apple has changed the XSD and the specifics of the API itself ... but not the way you call it. That's been pretty steady since I've been messing with it.
    The base URL should look like this:
    https://deimos.apple.com/WebObjects/Core.woa/API/GetUploadURL/your-university.ed u.111.222.333
    "111.222.333" is called a "handle" and it uniquely specifies a resource (track, cover image, etc.) within iTunes U. "111.222" is a path to the resource "333".
    After the base URL, you have to add the same kind of token string that you would for "Browsing" iTunes U ... that is a string in the form ...
    credentials=foo&identity=user&time=123456&signature =abc123abc&type=XMLControlFile
    A question mark "?" separates the base URL from the token string. Whatever you do, do -not- forget the type=XMLControlFile! The manual does not emphasize that you need to add this token, but you must to use the API.

  • 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

  • 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.

  • FeedBurner URL change for iTunes

    How do I submit a url change to iTunes? Apparently, I can then get iTunes stats.
    And would someone please tell me that this won't screw up everything!
    Thanks in advance.

    There are 3 options:
    1) Edit the default zone URL from CA --> Application Management --> AAM --> Select the web application
    Click on http://intranet.abc.com and change it to http://www.abc.com
    Extend the web application to some any other zone with URL http://www.abc.com
    3) Create a new web application with URL http://www.abc.com, Detach the content db/s from http://intranet.abc.com and attach it to newly created web application (Note: If you follow this option, it may break customizations)

Maybe you are looking for