cancel
Showing results for 
Search instead for 
Did you mean: 

EPCM.doNavigate() Does not work from html

Former Member
0 Kudos

Hi all,

this A herf does not work anyone has an idea how to make it work??????????

<a href=""onclick="javascript:EPCM.doNavigate('ROLES://portal_content/com.tsl.eTower/com.tsl.Roles/com.tsl.etower.Manufacturing_and_Tech_document/com.tsl.manufactoringTechDocs/com.tsl.assemblyAndFT','','','','2');return false;">Assembly & Final Test </a>

I hope you can help me because i have no more ideas

by the way i have two ways of connecting to the portal :

the first one is a short name(it works there)

the second is the full name(it doesn't work there and the portal seems to be just fine)

so once again

H E L P

have a lovely weekend,

Yoav

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member189428
Contributor
0 Kudos

hi

u try like that

private void createTreeEntry(IPortalComponentRequest request, TreeNode treeNode, INavigationNode node, int nodeCount) {

String title = node.getTitle(request.getLocale());

Link l = new Link("LINK_" + nodeCount, title);

<b>String navigationAction = "EPCM.doNavigate('" + node.getName() + "',2)";</b>

l.setOnClientClick(navigationAction);

treeNode.setComponent(l);

}

former_member394902
Contributor
0 Kudos

use this and it will work

<a href="myLink" onclick="return EPCM.doNavigate('ROLES://portal_content/com.tsl.eTower/com.tsl.Roles/com.tsl.etower.Manufacturing_and_Tech_document/com.tsl.manufactoringTechDocs/com.tsl.assemblyAndFT');void(0);">Assembly & Final Test </a>

Hope this helps...

Dont forget to award points if helpful.

Akhilesh

Former Member
0 Kudos

Hi,

I did not undrestand the solution, can you please help me

Regards,

Orlando Covault