Catch user Workflow "X" close
I have a workflow that queries and selects features based on some user filtering. The workflow is contained within a workflow container. Everything works fine but when the user closes the container via the "X", the features stay highlighted with no way of clearing them. Is there some way of capturing the close or some control that is fired, so that I can do some clean up when the user closes this way? Either that or some way to hide the close "X". I have a cancel button that closes and cleans up but that doesn't always get used.
Also, slightly off topic, but is there a way to remove the option of exporting table results to shapefile, csv, etc.
Thanks
-
You could use a different workflow container: DefaultNoCloseButton or ModalWindowNoCloseButton.
0 -
You can edit the options on your results table view in your viewer config file.
0 -
Thanks Nico, the DefaultNoCloseButton worked for me.
John, is that within the json file for the viewer? i.e. Desktop, handheld, etc.
Thanks
0 -
Yes, it's within the json file for each viewer. Search for ResultsTableActions and ResultsListActions and remove the items you don't want to show up.
{
"id": "ResultsListActions",
"description": "@language-menu-results-list-actions-desc",
"items": [
{
"text": "@language-results-toggle-table-view",
"description": "@language-results-toggle-table-view-desc",
"libraryId": "Mapping.Infrastructure",
"hideOnDisable": true,
"batch": [
{
"command": "ShowResultsTable",
"commandParameter": "{{context}}",
"abortBatchOnFailure": true
},
{
"command": "CloseDataFrame"
}
]
},
{
"text": "@language-menu-show-charting-view",
"description": "@language-menu-show-charting-view-desc",
"hideOnDisable": true,
"command": "ShowChartingView"
},
{
"text": "@language-menu-export-results-to-csv",
"description": "@language-menu-export-results-to-csv-desc",
"hideOnDisable": true,
"command": "ExportResultsTo",
"commandParameter": {
"format": "csv",
"fsc": "{{context}}"
}
},
{
"text": "@language-menu-export-results-to-xlsx",
"description": "@language-menu-export-results-to-xlsx-desc",
"hideOnDisable": true,
"command": "ExportResultsTo",
"commandParameter": {
"format": "xlsx",
"fsc": "{{context}}"
}
},
{
"text": "@language-menu-export-results-to-shp",
"description": "@language-menu-export-results-to-shp-desc",
"hideOnDisable": true,
"command": "ExportResultsTo",
"commandParameter": {
"format": "shp",
"fsc": "{{context}}"
}
}
]
},0 -
Thanks John, thats exactly what I needed.
0
Please sign in to leave a comment.
Comments
5 comments