10-31-2006 10:05 AM
11-08-2006 07:42 AM
var curForum;
forums = companyhome.childByNamePath("Forums");
logger.log(forums.name);
forumsChildren =forums.children;
for(i=0;i<forumsChildren .length;i++)
{
child =forumsChildren[i];
if(child.id.equals(args["id"]))
{
curForum = child;
logger.log("Current Forum Name : " + curForum .name);
}
}
11-08-2006 09:46 AM
you can pass the ID for the space e.g. SpaceDetailsBean.space.id should work ok. Of course SpaceDetailsBean.space.id is only valid when in the context of the Space Details dialog page. Generally the "current" space can be found using:
NavigationBean.currentNodeId
11-08-2006 09:56 AM
11-08-2006 04:04 PM
companyhome.childrenByXPath("//*[@cm:name='"+ myNodename + "']")
11-09-2006 04:13 AM
var id = args["id"]; // assume the 'id' arg contains a node id
var node = search.findNode("workspace://SpacesStore/" + id);
if (node != null)
{
// we found the node…
}
11-09-2006 04:21 AM
01-08-2007 07:36 AM
I read the other post again and now it worked for him. When i saw your answer i tried some things and i now know what the problem is!
<action-group id="document_browse_menu">
<action idref="test_js" />
</action-group>
This one does not work
<action-group id="doc_details_actions">
<action idref="test_js" />
</action-group>
This one does not work
<action-group id="document_browse">
<action idref="test_js" />
</action-group>
This one does work
Is this all how it should work, or should i be able to get actionContext.id from document_browse_menu and doc_details_actions?
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.