Don't close the searchdialog

How can I do when I open the item searchdialog and doubleclick, do not close the searchdialog?
Parents
  • 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
Reply
  • 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
Children
No Data