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
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" ) -
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
DetlevDetlev ....
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. -
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,
NiteshHi,
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. -
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 ????
ThanksHi 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)%> </aHi,
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 workingHi 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. -
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 BILGENHi Huseyin,
In WD4J you need to use portalNavigation:
WDPortalNavigation.navigateAbsolute(
"ROLES://portal_content...",
WDPortalNavigationMode.<MODE>,
WDPortalNavigationHistoryMode.<MODE>,
null);
Omri -
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'NeillHi,
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. -
Parent.EPCM is null or not an object
Hi gurus,
I have created a portal page in pcd. And uploaded an html file in KM.
Now in this html, on click of a link I want to load the portal page of pcd.
So i wrote following script -
<script>
function doNavigate(path) {
parent.EPCM.doNavigate('ROLES://' + path);
</script>
and the html code -
<a href="javascript:doNavigate('portal_content/test/iviews/com.test.testPage');">Goto Portal Test Page</a>
when i click on the link, it gives me error in statusbar - <b>"parent.EPCM is null or not an object"</b>
Please help me to solve this problem.
Any help will be appreciated.
Its urgent !
Regards,
AmiHi Ami,
If you include the following line in the head of your KM html file it will work. This javascript contains the EPCM object. You need to change your doNavigate to just EPCM.doNavigate, so without "parent".
<SCRIPT src="/irj/portalapps/com.sap.portal.epcf.loader/script/standard/js13_epcf.js"></SCRIPT>
Regards,
Johan -
Problem in EPCM in Light Framework
Hi All,
We are using 2004s EP 7.0.
We are implementing external facing portal using light framework for anonymous users. All the portal objects have anonymous authorization.
We have an iView in framework with code:
<a href ="javascript:open("ROLES://<pcd path>");">LINK</a>
And in the script tags:
<script language = "Javascript">
EPCM.doNavigate(pageID);
</script>
The iview corresponding to the pcd path is assigned to a role. But when we click on LINK it opens the iview but throws an error in Top Level and DetailLevel navigation Iview. But the same thing works fine in default framework.
Thanks,
SarangHi Sarang,
Light Framework does not support EPCF. Light framework has some limitations and this is one of them. For more details about the limitations of LF, see the SAP note number: <b>853509</b>. You can also refer the documentation at help.sap.com
Hope this helps you.
Regards
Ranjith -
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
PrasannaHi,
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 -
Change Visited Link Color onClick of EPCM function
Hi we have a link within an iview which when clicked opens another iview in the Portal Content Area. We are achieving that using EPCM.doNavigate function. The requirement is to change the link color when visited. We tried using both style sheet and also this.style.color, however, it doesn't take into affect. The same thing when used with a normal href or a js function changes its color.
response.write("<td style='padding: background='"strImagePath"/header-background.gif'><a href=\"" + strQuickLinkName + "\"" + " onclick=\"EPCM.doNavigate(\'" + strChildNodeName + "\'); return false;\" class='Archive'>Archive</a></td>");
Is it that EPCM function doesn't act like normal java scripts or do we need to use any other alternative approach?On criagslist, however, it doesn't work.
That sounds odd. When I visit craigslist, the links are blue; they turn purple when I hover over them, and orange when I actually click on them. And since it works on other sites, I'll venture a guess that the site was created with Windows users in mind, so it doesn't adhere to web standards, which is why it works fine with IE and Firefox, since they're both prominent browsers on Windows.
Mulder -
Epcm navigation , acces denied
Hi everybody,
I am trying to make the navigation between two IViews, using epcm.doNavigate... with my own user it works fine, but with other users (with less roles assigned, just like the final users.) I get the following exception:
#com.sapportals.portal.pcd.gl.PermissionControlException: Access denied (Object: portal_content/com.ibermatica.centrocompetenciassap.elearning.elearning/com.ibermatica.centrocompetenciassap.elearning.elearning_pages/com.ibermatica.centrocompetenciassap.elearning.page_elearning_mostrarinfo)
does anybody knows where is the problem? thanksHi,
Maybe the iview you are trying to navigate to using epcm.donavigate is assigned to a role that is not further assigned to a user. If so you would need to assign that role to the user as portal content objects (iview pages etc) seen to a user has to be assigned to roles which are further assigned to users.
Maybe you are looking for
-
Multilevel Categorization in the normal Appointment View
Dear experts, We're using CRM 7.0 SP3. We're well aware that Multilevel Categorization as per Standard is supported in IC Webclient in Interaction Record View and not in the normal Appointment View (i.e. UI Component BT126H_CALL). However we want to
-
My iPod touch isn't taking my iTunes card? iTunes isn't working or loading
Is anyone else having this problem?
-
XMLDecoder not returning all data...
I am connecting to a web service and viewing the response in the Network Monitor. It shows the appropriate collection of data objects - each contains 2 string variables (name, url) and 2 arrays all containing data. When I view the Result Event in the
-
Soap response message encryption using integration broker
hi gurus, i have a requirement that to send encrypted soap response to a third pary system. so for testing purpose i am using soapui tool. i am able to encrypt request message and i am getting proper response from peoplsoft but its not in encrpting f
-
List of values icon ... does not appear in 9i
Hello, We have migrated to Designer and Headstart 9i and we ave regenrated all of our forms succesfully. When we go into an item with a LOV, the lov icon ... does not appear? Thanks in advance.