Hi,
I Am using below code to add one more search criteria into New Search. But i am getting "TypeError: criterion.clone is not a function"
Can some help me where i am getting it wrong
Or any other way to add search criteria other than ResponseFilter
Code:
lang.extend(BasicSearchDefinition, {
onSearchTemplatePrepared: function(searchTemplate) {
console.log("NT old searchCriteria=",searchTemplate.searchCriteria);
var propJSON= new Array();
propJSON.push("Cancelled");
console.log("pooja11 propJSON=",propJSON);
searchTemplate.searchCriteria.push({
"name": "Document Status",
"id": "strsStatus",
"value": propJSON,
"dataType": "xs:string",
"defaultOperator": "EQUAL",
"selectedOperator": "EQUAL"
});
console.log("NT new searchCriteria=",searchTemplate.searchCriteria);
}
});
Error:
dojo.js.bd49b70890cdf1920cc7ae9e57094644.jgz:40055 TypeError: criterion.clone is not a function
at ecm.js.0a37a21ee10623d8e4bc8d6eced0b247.jgz:77634:34
at Object.map (dojo.js.bd49b70890cdf1920cc7ae9e57094644.jgz:1541:30)
at Object.clone (ecm.js.0a37a21ee10623d8e4bc8d6eced0b247.jgz:77633:64)
at Object.inherited (dojo.js.bd49b70890cdf1920cc7ae9e57094644.jgz:32267:43)
at Object.clone (ecm.js.0a37a21ee10623d8e4bc8d6eced0b247.jgz:164479:30)
at Object.onSearchCompleted (ecm.js.0a37a21ee10623d8e4bc8d6eced0b247.jgz:77655:52)
Thanks In Advance
#IBMContentNavigator(ICN)#Support#SupportMigration