12-01-2010 01:50 PM
case "custom":
logger.log("Entering custom code");
var strData=decodeURI(args.filterData);
var lstParamVal = strData.split("-");
var lstNextParamVal;
var strNextParam = "";
var strNextVal = "";
logger.log("—–>>>" + strData);
filterQuery = "+PATH:\"" + parsedArgs.rootNode.qnamePath + "//*\"";
for(var i=0; i < lstParamVal.length; i++)
{
lstNextParamVal = lstParamVal[i].split("_");
strNextParam = lstNextParamVal[0];
strNextVal = lstNextParamVal[1];
logger.log("strNextParam[" + i + "]=" + strNextParam);
logger.log("strNextVal[" + i + "]=" + strNextVal);
switch (strNextParam)
{
case "folio":
filterQuery += " +@tsg\\:folioInbursa:"+strNextVal+;
break;
case "servicio":
filterQuery += " +@tsg\\:servicioInbursa:"+strNextVal;
break;
case "curp":
filterQuery += " +@tsg\\:curpInbursa:"+strNextVal;
break;
case "sort":
if(strQueryArray[1]=="editdesc")
{
filterParams.sort = [
{
column: "@{http://www.alfresco.org/model/content/1.0}modified",
ascending: false
}];
}
if(strQueryArray[1]=="editasc")
{
filterParams.sort = [
{
column: "@{http://www.alfresco.org/model/content/1.0}modified",
ascending: true
}];
}
break;
}
// ADD THE CASE LOGIC TO PROCESS THE ARGUMENTS, NEED THIS LINE TO COMPLETE THE QUERY
//filterQuery += " +@cm\\:PARAM:\"VALUE\"";
}
filterParams.query = filterQuery;
logger.log(filterQuery);
break;
12-01-2010 06:07 PM
12-01-2010 06:56 PM
<filter id="custom" label="Frontman's Filter" />
to filter.get.config.xml in site-webscripts/org/alfresco/components/documentlibrary within Share.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.