cancel
Showing results for 
Search instead for 
Did you mean: 

URL of an iView

Former Member
0 Kudos

Hi,

Is there any way to determine the URL of an iView that I create in EP6? Please let me know.

Thanks

Shakeel

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks everyone!!

-Shakeel

Former Member
0 Kudos

Try this

http://<server>:<port>/irj/servlet/prt/portal/prtroot/<par file name>.<iView name as appears in portalapp.xml>

Former Member
0 Kudos

Hi Rajeev,

That'z a great help. Could you please let me know where can I see that file "portalapp.xml". I have Portal Administrative rights but I don't know where to look for that file.

thanks in advance.

Hari

Former Member
0 Kudos

yes, there is a way as documented in the Portal Admin Guide. try these two links. in case they don't work, search for New Navigation Model and URL Navigation.

http://help.sap.com/saphelp_ep60sp2/helpdata/en/38/76bd3b6e74d708e10000000a11402f/frameset.htm

and here too:

http://help.sap.com/saphelp_ep60sp2/helpdata/en/38/76bd3b6e74d708e10000000a11402f/frameset.htm

there is a minor error in the above doc. i also found mention of Navigation Target or Cross Navigation in the PDK, Java Development/Documentation/Portal Runtime, i think.

what worked for me is something like the following:

http://server:port/irj/index.html?NavigationTarget=ROLES://pcd_content/...path to your iview in pcd depending on your folder,role, workset and page hierarchy.

if you are to use client side js, then try EPCM.doNavigate('ROLES://....');

there is a demo on sdn, try this link. the demo is part of the eBook on Portal Customization, i think.

http://devnetmedia.sap.com/ebooks/ep6/addons/exercises/Navigation_By_URL.htm

Former Member
0 Kudos

Hi Wentao,

the information you provided is going to help us a lot. i went to all of the links you provided and all are very very useful. but, i have couple of doubts.

http://server:port/irj/index.html?NavigationTarget=ROLES://pcd_content/...path

in the above link, could u plz explain more abt "index.html" and " NavigationTarget. I anticipate that NavigationTarget is common for all servers. is index.html also common for all servers?

let'z say, there is a page in folder assigned to a role on yahoo server with port 100.

then, is the link for this going to be some thing like this...

http://yahoo:100/irj/index.html?NavigationTarget=ROLES://role/folder/page

can you provide some example (with some code) with client side js to use this command EPCM.doNavigate('ROLES://....');

will this code work?

<script>

function CallIView(pageID){

EPCM.doNavigate('pageID');

}

</script>

<html>

<a href=javascript:CallIView('ROLES://role/folder/page')>click to get page </a>

</html>

should I include any js file when am using EPCM.doNavigate with cleint side eventing in the above code?

I appreciate if you can answer my questions. Can I have a chance to discuss more with you about the issue I am having which I need to solve immediately. you can write to me at clemson_guy2001@yahoo.com so that I can contact you directly.

Much appreciate your help in advance.

thanks

veeru

Former Member
0 Kudos

yes, as stated in the URL Navigation part of the doc, index.html and NavigationTarget are the same for any iview. the server and port refer to where the sap portal is installed, not where the external app is, in case this point was not clear.

yes, i believe your js snippet will work. the only other things are, if the contents of your iview comes from another server, then

-you need to relax the document domain, namely removing the hostname. otherwise, you can't use any portal client side js functions. you will see errors such as access denied or permission denied.

-you need to include epcfproxy.js and use EPCMProxy object. otherwise, you will get EPCM doesn't exist error.

Former Member
0 Kudos

Hi Wentao,

Could you please guide me to find the path for the epcfproxy.js file. I can't figure out the location of the file.

should i include the js file both in senderevent iView as well as recieverEvent Iview if in case am using eventing?

if am just using EPCM.doNavigate('ROLES://....'); object, you said i should use epcfproxy.js and EPCMProxy object. so, in this case should i use EPCMProxy.doNavigate('ROLES://....');

Appreciate your help.

Veeru

Former Member
0 Kudos

assuming you have installed the PDK on your portal, go to Java Development menu, then Downloads. the last entry there is epcfproxy.zip.

i'd suggest that you read the related portal documentation before using it. the basic idea is that portal runtime typically includes EPCM object in the resulting html document, except when an external app places contents in an iframe. then the external app has to explicitly include epcfproxy.js in any pages it returns to the portal. because the content is in its iframes, it must delegate all client-side calls through the parent document's EPCM object. therefore it requires the EPCMProxy object as well domain relaxation.

yes, in this case, you need to use EPCMProxy.doNavigate('ROLES://....').

wentao