 
					
				
		
06-01-2007 06:24 PM
<webscript>
  <shortname>Search example</shortname>
  <description>Demonstrate use of javascript search api</description>
  <url format="html" template="/showname?noderef={noderef}"/>
  <authentication>user</authentication>
</webscript>
// use the javascript search api to get the node for the noderef argument
var node = search.findNode(args.noderef);
// setup model for template to render
model.node_that_has_been_found = node;
<html>
  <body>
     <#if node_that_has_been_found?exists>
       Name of node ${args.noderef} is ${node_that_has_been_found.name}.
     <#else>
       Node ${args.noderef} does not exist.
     </#if>
  </body>
</html>
http://localhost:8080/alfresco/service/showname?noderef=workspace://SpacesStore/cb7c90ec-0dcc-11dc-8... 
					
				
		
07-03-2007 05:33 AM
 
					
				
		
07-03-2007 06:23 AM
(1) search.findNode(<nodeRef string>) works only when the lucene search is completed? Or the contents with this nodeRef is alive, find method returns node object with no exception?
(2) Can search.findNode(<nodeRef string>) find the node of past versioned content with versionable aspect?
The form of nodeRef string of This past versioned content is "ersionStore://lightWeightVersionStore/xxxxxxxx"
 
					
				
				
			
		
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.