Add "Open Saved Queries" button to toolbar
I would like to add a button to "Open Saved Queries" on my toolbar to save my users a few steps. I did this but when the Saved Queries list opens the Build Query Dialog is in the background (overlapped). Can anyone help me pulll up just the saved query list? If I open the Build Query dialog first then click on the button to open the Saved Queries, it works just fine but his would be confusing to the user.
Any ideas would be appreciated.
Thank you,
Bobby Jo
0
-
Hi Bobby Jo,
In the desktop.JSON (and tablet and handheld) you can change the order of the views in the "SimpleQueryBuilderViewContainerViewModel". In the "ordering" section change the order so that the "ListQueriesView" is first. Something like this:
"ordering": {
"QueryStatusMessageView": 1,
"SimpleQueryBuilderView": 2,
"ListQueriesView": 0,
"QueryActionsView": 3,
"SaveQueryView": 4
}That seemed to work for me.
Ali
0 -
This override does not work in GVH 2.9, at least in the toolbar (I haven't tried it in earlier versions). I notice that when I change the the ActivateView value from the default SimpleQueryBuilderView to ListQueriesView, a line is added to the configuration of the button:
"items": [
{
"id": "ShowSimpleQueryBuilderButton",
"type": "button",
"iconUri": "Resources/Images/Icons/query-24.png",
"command": "ActivateView",
"commandParameter": "ListQueriesView",
"hideOnDisable": false,
"name": "@language-querybuilder-simple-title",
"tooltip": "@language-querybuilder-simple-tooltip"
},
This would seem to suggest that the command to execute the default is happening someplace where we can't get to it and then the ListQueriesView is executing without clearing the area first. Is there a way to force the clear? Somehow that happens when the ListQueriesView is selected from the query action panel.
Thanks,
Martha0 -
not really a solution but what happens if you click the button twice? Does it then clear the view? 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer