Zum Hauptinhalt gehen

Closing the results list?

Kommentare

18 Kommentare

  • Permanently deleted user

    Hello Gareth,

     

    I have filed the addition of a close button to the results list view as a future improvement in our bug tracking software. For future reference the issue number is GVH-6139. 

     

    In the meantime I have a possible solution. In your configuration file (C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Sites\<site_name>\Viewers\<viewer_name> \VirtualDirectory\Resources\Config\Default\Desktop.json.js) you can set an action item to close the results list view. 

     

    To do this open the Desktop.json.js file and search for "ResultsListActions" . There should be a parameter within this json object called "items": add the following within the squared brackets ([ ] ):

     

    Note: the only important parameters here are the command and the commandParameter, the text/description can be set to whatever you would like.

     

    {

     

        "text": "Close",

     

        "description": "Close the Results List view",

     

        "command": "DestroyView",

     

        "commandParameter": "ResultsListView"

     

    },

     

    The resulting json file should look similar to mine (for reference):

     

    /customer/servlet/servlet.FileDownload?file=00P6000000elzSaEAI

     

     

    The end result in your viewer will be a close button within the configurable actions menu of the results list.

    /customer/servlet/servlet.FileDownload?file=00P6000000eluDDEAY

     

    Hopefully this helped out, let me know if you have any questions or if this solution doesn't fit your needs.

     

    Cory Purnell

     

    Latitude Quality Assurance Team
    0
  • Permanently deleted user

    Thanks Corey for the quick respopnse.

    I'll give this a go. A good start - and the close button will be a welcome addition in a future release so thanks for adding to the list...

    cheers

    Gareth

    0
  • Chris Roberts

    Thanks Corey

    That's a useful workaround. Will give that a go ourselves.

    0
  • Permanently deleted user

    I found that the command "DeactivateView" actually worked better for me. When using "DestroyView", after I hit the close button, I was no longer able to identify features with map tips. Also for some reason, when I identified multiple features at once, the close button wouldn't work with "DestroyView" but it would with "DeactivateView". 

    0
  • Permanently deleted user

    Robert,

    nice pick up! thanks for that.... I can confirm I'm seeing the same behaviour, so have swapped over to the 'DeactivateView' also....

    0
  • Chris Roberts

    Cheers Robert!

    Saved me some research this morningI  I have noticed some wierd behaviour when closing the results using 'DestroyView'  will try your solution.

    Cheers

    Chris

     

    0
  • Permanently deleted user

    I had this problem too and also the problem that even when I used "DeactivateView" the layerlist stayed open. Put in a "CloseDataFrame" after the "Deactivate..." and the layerlist closes too.

    0
  • John Nerge

    My workaround was to switch the ResultsListView region to the FeatureEditingContainerRegion since I'm not using it (all of the layers in my viewer are read-only). That region includes a back arrow in the upper left corner that closes the view.

    I also updated the region for the FeatureDetailsCompactView to use the same one so it has a back arrow too that goes back to the results view.

    0
  • Permanently deleted user

    /customer/servlet/servlet.FileDownload?file=00P6000000em1ENEAY

    Hello all,

    My question is if there is a way to disable the "Switch to table" menu.  I want users to have less options.  I noticed that after i used switch to table tool then i have to switch back using "Switch to list" to make the list function work again.  If I just use "X" to close the window and my tool in "I want to" menu will not get query result displayed.  I tried to add steps in my workflow but none of them worked.

    Also is there a way to select field which displays as title for the query results?  I did not find a place in manager which allow me to change it.

    /customer/servlet/servlet.FileDownload?file=00P6000000elttXEAQ

    Thanks

    Yinghong Li

    City of Austin

     

    0
  • John Nerge

    An easy way to remove the Switch to Table option on identify results is simply to review it from your results list action options. To do that,

    1. open your viewer config file (ex. Desktop.json.js)
    2. search for ResultsListActions
    3. under the items section, comment out or delete the item that runs the ShowResultsTable command

    For your results title, you need to assign your Feature Label in Rest Manager under the map layer's Details tab.

     

    0
  • Permanently deleted user

    Thanks for the reply.

    I tried to change the config file.  However the viewer stopped to start.  Forgive me for my slow understanding.  I do not know which part to comment out.

    {

                      "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"

                        }

                      ]

                    },

    I tried to comment out the whole section listed above or just batch section.  None of them worked.  Please help.

     

    0
  • Chris Roberts

    It is my understanding that it is not possible to comment out sections of code in a json file, as its not supported.  You will need to delete the section you want to disable.

    Cheers

    Chris

    0
  • Permanently deleted user

    Thanks Chris.  That worked.

    0
  • Cattyann Campbell

    +1 and bonus for making the results list look more like the following/customer/servlet/servlet.FileDownload?file=00P6000000em1jkEAA

    0
  • Permanently deleted user

    Hi

    The solution I found will provide a back button on the results list, without having to change the region :

    /customer/servlet/servlet.FileDownload?file=00P6000000elzmHEAQ

     

              {

     

                "id": "ResultsListView",

     

                "viewModelId": "ResultsListViewModel",

     

                "libraryId": "Mapping.Infrastructure",

     

                "iconUri": "Resources/Images/Icons/Toolbar/search-24.png",

     

                "type": "geocortex.essentialsHtmlViewer.mapping.infrastructure.results.ResultsListView",

     

                "markup": "Mapping/infrastructure/results/ResultsListView.html",

     

                "region": "DataFrameResultsContainerRegion",

     

                "visible": false,

     

                "title": "@language-common-results",

     

                "description": "@language-common-query-results",

     

                "configuration": {

     

                  "contentField": "description",

     

                  "isPaged": true,

     

                  "pageSize": 50

     

                }

     

     

    --------------------------------

    {

     

                "id": "DataFrameResultsContainerViewModel",

     

                "type": "geocortex.essentialsHtmlViewer.mapping.infrastructure.ui.components.SmartPanel.SmartPanelViewModel",

     

                "libraryId": "Mapping.Infrastructure",

     

                "configuration": {

     

                  "containerRegionName": "DataFrameResultsContainerRegion",

     

                  "headerIsVisible": true,

     

                  "backButtonOnRootView": true,

     

                  "showBackButtonAsX": false,

     

                  "showHostedViews": true,

     

                  "ordering": {

     

                    "ResultsListView": 0

     

                  }

     

    0
  • Cattyann Campbell

    Any ideas how to get the results list, home panel, layer list on the right side of the screen rather than left in HTML 5 viewer? I think SL had the option to float right or left...

    0
  • John Nerge

    Awesome find, Lisa, thanks!

    Cattyann, there's a region called the RightPanelRegion you could try moving your results list, home panel, and layer list to.

    0
  • Permanently deleted user

    i think the json file has changed i cannot follow this post and achieve the close view entry like i want.  whats the trick for the new json format.

     

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.