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

Similar Messages

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

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

  • Pass parameter from iView to AbstractPortalComponent

    Dear All,
    I have an iView (PAR iView) which invokes an AbstractPortalComponent. Is there any way by which I can
    pass parameters to the AbstractPortalComponent?
    Kind regards,
    Sreejesh.

    Hi,
    When ever you are invoking the Abstract Portal Component ,you would be passing the url.
    The url can be appended with parameters as follows.
    url?p1=v1&p2=v2,,where p1 and p2 are the parameters.
    If you are directly calling the component from the Iview ,let us say in a new window, then you would write
    this in a javascript function
    <b>window.open('par.componentname')</b>
    or you can use EPCM.doNavigate('target')
    where target is the pcd path for the iview.I am not sure if the parameters can be appended in the same manner to the target,as shown above for url.
    In the code of your abstract portal component,
    you can write
    IPortalComponentRequest request = (Iportal ComponentRequest) this.getRequest();
    String parameter = request.getParameter("p1");
    Regards,
    Harish
    (Please award points for helpful answers)

  • 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

  • Passing parameter from JSPDynpage to Webdynpro

    Hi,
    I am trying to get parameter in webdynpro application from JSPdynpage and i have pasted my code snippet.
    JSPDynpage Code:
    EPCM.doNavigate('My Targett URL');
    IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
    request.getServletRequest().getSession().setAttribute("PNUMBER", "10001");
    In webdynpro:
    HttpServletRequest request = ((IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();     
    HttpSession session = request.getSession();
    pNumber = (String)session.getAttribute("PNUMBER");
    From JSPDynpage it navigating to webdynpro application but getparameter() always null.
    I cross checked both JSPdynpage and webdynpro session getId() both are returning same id but parameter is not passing.
    where i am doing wrong?
    thanks in advance,
    regards,
    SKB

    Hi SKB,
    The problem is that portal applications and Web Dynpro applications have different sessions (even if they have the same session ID). All portal applications are technically one J2EE application (called "sap.com/irj") and all Web Dynpro applications are technically one J2EE application (called "sap.com/tcwddispwda"). The reason why sessions must be different, is because of the J2EE specs. Below is an extract from the Java Servlet Specification 2.4.
    <u>SRV.7.3 Session Scope</u>
    <i>HttpSession objects must be scoped at the application (or servlet context) level.
    The underlying mechanism, such as the cookie used to establish the session, can be the same for different contexts, but the object referenced, including the attributes in that object, must never be shared between contexts by the container.
    To illustrate this requirement with an example: if a servlet uses the RequestDispatcher to call a servlet in another Web application, any sessions created for and visible to the servlet being called must be different from those visible to the calling servlet.</i>
    The solution to your problem is not to use session attributes, but URL parameters. In your JSPDynpage use something like this
    EPCM.doNavigate('ROLES://portal_content/foo&DynamicParameter=PNUMBER%3D10001');
    And in your Web Dynpro application use something like this
    String pNumber = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("PNUMBER");
    Kind regards,
    Sigiswald

  • 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(): 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

  • Import statement: pass parameter or variable in import statement ??

    Hi All..
    Is there a way to pass parameter or a variable to a url in the import statement..
    I'll be using a url in the import statement, the url will be having a dynamic .rtf file...something like
    <?import:http://#server#:#port#/xmlpserver/<mySubTemplate>.rtf?>
    where <mySubTemplate> is dynamic..
    I've been searching this thread for a while now and ended up close...
    Import sub template dynamically
    Thanks in Advance..

    Have you tried replacing the mySubtemplate.rtf part with a variable, or replace the entire URL using a variable? Try using the same construct from this example in the Report Designer's guide (page 7-14, 10.1.3.4).
    In Microsoft Word's Format Picture dialog box select the Web tab. Enter the
    following syntax in the Alternative text region to reference the image URL:
    url:{IMAGE_LOCATION}
    where IMAGE_LOCATION is an element from your XML file that holds the full
    URL to the image.
    You can also build a URL based on multiple elements at runtime. Just use the
    concat function to build the URL string. For example:
    url:{concat(SERVER,'/',IMAGE_DIR,'/',IMAGE_FILE)}
    where SERVER, IMAGE_DIR, and IMAGE_FILE are element names from your XML
    file that hold the values to construct the URL.
    This method can also be used with the OA_MEDIA reference as follows:
    url:{concat('${OA_MEDIA}','/',IMAGE_FILE)}

  • Pass parameter from request

    Hi,
    I have 2 pages, in page2 CO2, it passes parameter 'cancel'
    processFormRequest{
    else if("Cancel".equals(pageContext.getParameter("event")))
    pageContext.putParameter("cancel", "Y");
    pageContext.forwardImmediately("OA.jsp?page=/company/oracle/apps/xxg2c/goaling/webui/Xxg2cGoalSheetSearchePG",
    null,(byte)0,null,null,true,null);
    in page1, CO1, I get the parameter 'cancel'.
    processRequest{
    cancel = pageContext.getParameter("cancel");
    Now, if I want pass 'cancel' to processFormRequest of CO1, how should I do it?
    thanks
    Lei

    Lei,
    To get the value in co1, there are two alternatives:
    1)Pass value in hashmap:
    HashMap hmap= new HashMap();
    hmap.put("cancel","Y");
    pageContext.forwardImmediately("OA.jsp?page=/company/oracle/apps/xxg2c/goaling/webui/Xxg2cGoalSheetSearchePG",
    null,(byte)0,null,hmap,true,null);
    in page1, CO1 processRequest, you can get it by
    cancel = pageContext.getParameter("cancel");
    2)Pass param in url itself:
    pageContext.forwardImmediately("OA.jsp?page=/company/oracle/apps/xxg2c/goaling/webui/Xxg2cGoalSheetSearchePG&cancel=Y",
    null,(byte)0,null,null,true,null);
    in page1, CO1 processRequest, you can get it by
    cancel = pageContext.getParameter("cancel");
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Issue on How to mimic Deski document from CMS to local machine, pass parameter, execute and save in a mutiple report format then store in a network drive.

    Post Author: usaitconsultant
    CA Forum: JAVA
    Would you know if there's a way to mimic Deski
    document from BOXI server(CMS) to local machine, pass parameter, execute and
    save in a mutiple report format then store in a local drive or network
    drive? Most examples and tutorials in BO XI R2 I've seen are scheduling while drilling report is for web intelligence only and not desktop intelligence.  Please let me know your ideas. I would really appreciate your help. Thanks.

    Post Author: usaitconsultant
    CA Forum: JAVA
    Hi Ted,
    Thanks for the reply.The file is not available in the server. Though, I checked CMS and I found an instance in history tab and the status is failed with error below. 
                Error Message:
                A variable prevented the data provider Query 1 with BANRRD30 from being refreshed. (DMA0008).When I checked my codes, I found out that the object Im using is for web intelligence data provider. However, I cannot find any documentation and example for passing parameter values in desktop intelligence data provider. Any idea on this? You think this is not suported by Report Engine SDK?Thanks.    

  • 'Driver]Parameter missing' Error while trying to pass parameter to MS query & Return Data to Microsoft Excel

    I am trying to set up a parameter query using ODBC-Microsoft Query
    to BMC Remedy The ODBC connection is "AR System ODBC Data Source".
    I want to pass a parameter to modified date field and get all the remedy tickets for which the modified date is<= to the passed parameter date.
    So in MS query, SQL- 
    the query looks like
     WHERE ("Trouble Ticket"."Create Date">={ts '2014-10-01 00:00:00'}) AND ("Trouble Ticket"."Modified-date"<=?)
    I am getting the data fetched from database in the MS query window, but unfortunately
    When I click File-Return Data to Microsoft Excel, its showing an error: Driver]Parameter missing
    I set the connection properties- parameter-Prompt for value using the following string.
    Please help

    Hi,
    Based on the error message, I recommend we try the suggestion: Replace all "..."  with [...]
    http://www.pcreview.co.uk/forums/error-parameter-query-odbc-remedy-bmc-software-com-t3232964.html
    Then, if you want to connect the Remedy's oracle database, please see the thread:
    http://www.tek-tips.com/viewthread.cfm?qid=1123112
    We may try the workaround: Write an Excel macro which connects to the database and fetch the data based on the SQL query.
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    If you have further question about write macro, I recommend you post the question to the MSDN forum for Excel
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to get month value from custom calendar without passing parameter from SSRS in MDX query

    Could you please throw some light to achieve below requirement?  
    I need to filter the data between two periods dynamically . The date calendar here works differently(ex:-Date 26-Aug-2014 will fall in period 7 which is last date and 27-Aug-2014 will fall in period 8 and it is first date of period 8),so I cannot go
    with system date period/Month. Date Hierarchy is like YEAR,QUARTER,PERIOD ,WEEK and DAY.
    I cannot use SSRS for passing parameter. Requirement is to extract last 2 period of data dynamically in Power Pivot with MDX.
    Thanks Chandan

    Hi Chandan,
    You might try something like this
    Tail(null:
    Extract(
    StrToMember("[FYDay].[DATE].&[ + cStr(Format(Now(),"yyyy-MM-ddT00:00:00")) + "]")
    *[FYDay].[DateHierarchy].[Day]
    ,[FYDay].[DateHierarchy]).parent.parent
    ,2)
    What it is doing is multiplying Day by the current date, which returns a set of one date with cardinality of (Date,Day).  The Extract is pulling out just the datehierarchy Day.  the the Tail() is getting it and the previous day.
    Hope that helps,
    Richard

  • How to pass parameter into a source variable of a invoke activity

    I'm an new BPELer, I created a invoke activity to submit Oracle Appplications concurrent program, but I don't know how to pass parameter into source variable.
    BTW, I have created the mapper file (.xsl) file.
    could anyone tell me how to do that?
    Thanks,
    Victor

    Hi.
    How you start application? I think you send message to webservice(BPEL process is webservice too). So construct message with variable and value.
    But I created only processes where input value doesn't matter. I haven't use mapper yet too.

  • Using Go URL to Pass parameter between dashboard

    Hi All,
    I am trying to pass parameter using GO URL functionality from one dashboard analysis field to another dashboard.
    The navigation is working properly but the parameter is not getting passed, I am not sure why.
    The Called dashboard has a analysis which has IS PROMPTED filter attached to it for the passing filter. I tried various ways to make this work
    Option 1
    In the calling analysis, I am using a Narrative View and inside I have used the below code.
    <a href="saw.dll?Go&Path=/shared/MI/_portal/Client-MI&Page=Supplier%20Detail%20Tab&Action=Navigate&P0=1&P1=eq&P2=Dim%20Supplier.Supplier%20Name%20Current&P3=1+%22STR%20LTD%22"> @2[br/]
    This one navigate but filtering is not happening
    Option 2 (My first preference will be this option)
    Also I tried to provide custom Data Format under the column Properties
    [html]"<font class="nav" onclick=\"JavaScript:GoNav(event, '/shared/MI/_portal/Client-MI/Supplier Detail Tab','Dim Supplier','Supplier Name Current','"@"');\">"@"</font>
    This ends up giving error
    Type mismatch of catalog object /shared/MI/_portal/Client-MI/Supplier Detail Tab -- expected , got .
      Error Details
    Error Codes: UVWDR6UA 
    Also, both the tabs (Called and Calling are under the same Dashboard)
    Can anyone please let me know, were I am making mistake. I tried refereeing Oracle documentation but still no result.
    Thanks

    Looks like you've got it almost right - just an extra unneeded "
    <a href="two.jsp"?ant=<%= ant %>"><%=antName%></a>
    which should render on the page as something like
    My Ant Task
    When you click the link, it should pass that parameter, and you can get it via request.getParameter().

Maybe you are looking for

  • How can I Remove Firefox Hello in a high-security environment?

    Hi, After a recent Firefox update in a test environment for a high-security environment (I'm not at liberty to disclose the nature of this environment, sorry. Let's just say we have to disable Firefox from contacting Mozilla's servers and further dis

  • How can I see .cgi streams in ios6?

    since I have upgraded to IOS6 my webcam streams in the format of GetData.cgi are no longer visible. I only get one frame and then it stops. on ipad and iphone still runing on ios5.1 they are perfectly visible. Same happens on my mac under mountain li

  • Issue in Combobox flex 3.5

    Hello all, I got a serious issue in combobox while using flex sdk 3.5. The issue is if we filter the collection before creation complete of component and use that filtered collection as a dataprovider for combobox. If the result from the filtered col

  • Can someone PLEAAASE HELP

    PLEASE SOME HELP ME TO AT LEAST LET ME KNOW WHAT IS WRONG WITH MY SOUND CARD its a Audigy 2 value my system is : windows xp 768mb memory 20gb hd creative speakers (digital) okay..i'v always had this sound card and loved it...untill one day i removed

  • Publishing iCal calendar to CalDAV on 10.5 server

    I think I have iCal service set up on my 10.5 server (finally) but I'm getting stumped by iCal and its lack of help. I follow the Setting up a CalDAV account in iCal instructions, but I get Account information not found, Calendar http://<myfqdnhere>/