Forum Discussion
christopher_gillis
8 years agoNew Member
Hello,
It doesn't appear possible to access the parameters passed to the Search Dialog through the method that applies the filter.
That being said, it may be possible to create a copy of the SearchDialog.html file in the code tree and modify that copy to accept an additional "filter" parameter.
We do not have any samples of customizing the SearchDialog in this way, but you can modify your method based on the sample below to call your custom Search Dialog.
var Filter = {};
Filter["state"] = { filterValue: "Released", isFilterFixed: true };
// Set up parameters for search dialog
var param = {
aras: top.aras,
content: 'SearchDialogWithFilter.html', // <-- Use "content" rather than "type" to point to a specific .html page
dialogWidth: 700,
dialogHeight: 450,
itemtypeName: 'Part',
multiselect: true,
handler: addRelationshipHandler,
sourceItemTypeName: "Part",
sourcePropertyName: "dummytrigger",
myCustomFilterParam: Filter // <-- Pass in the filter parameter that you've added to your custom SearchDialog
};
Chris
___________________________________
Christopher Gillis
Aras Labs Software Engineer