06-03-2010 05:50 PM
var nodeid = args.nodeid;
if ( crossCheck(nodeid) ){ // This is a Custom function!!!
var file = search.findNode("workspace://SpacesStore/" + nodeid);
// Render the content of the file here !!! HELP pls!!
}else{
status.code = 400;
status.message = "Check on back-end system is failed!";
status.redirect = true;
}
function crossCheck(nodeid){
…..
}
06-04-2010 02:48 AM
var fileDownLoadUrl = file[0].downloadUrl;
${file[0].downloadUrl}
06-04-2010 10:06 AM
var fileDownLoadUrl = file.downloadUrl;
just produce the service path to use to download the file (something like "/d/a/workspace/SpacesStore/eb0d2fa7-ff5f-440c-9f49-6edc4036b6ce/mypic.jpg"), and it could be used in the xml/html output (ie: cstdownload.get.xml.ftl) as link to the file download.06-17-2010 04:43 PM
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.