var param = {
aras: top.aras,
type: 'SearchDialog',
dialogWidth: 700,
dialogHeight: 450,
itemtypeName: 'Part',
multiselect: true,
handler: addRelationshipHandler,
sourceItemTypeName: "Part", // <-- The name of your ItemType
sourcePropertyName: "dummyForFilter" // <-- The name of your dummy property
};
Following this example, you will see that the "state" column of the resulting search dialog now auto-populates with a value of "Released" and cannot be changed.
Chris
_______________________________
Christopher Gillis
Aras Labs Software Engineervar 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