Skip to main content

In the HTML5 Viewer 2.4, what is the command to switch to tabular view?

Comments

4 comments

  • John Nerge
    Have you tried ShowResultsTable?
    0
  • Tyson Schoepflin
    Where did you find ShowResultsTable?  It is not listed in the Workflow Designer. It is not listed in the command autofill field in Geocortex Essentials Manager.  It is mentioned in an example in the GVH5 guide (now that I could search for the command directly).  Is there a document that lists these commands?
    0
  • Nico Burgerhart
    At 2.4 they should be in the Command Reference in the viewer admin guide.

     

    Since 2.5 they are in the Geocortex SDK for HTML5 API Reference.
    0
  • John Nerge
    Ditto to what Nico said. To add to that, when you want to do something but don't know the command, looking in the viewer config is helpful sometimes too. In this case, I looked at items in the ResultsListActions in the Menu module, which I found eventually by searching the viewer config for all references of the string "Results".

     

    {

     

                  "id": "ResultsListActions",

     

                  "description": "@language-menu-results-list-actions-desc",

     

                  "items": [

     

                    {

     

                      "text": "@language-results-toggle-table-view",

     

                      "description": "@language-results-toggle-table-view-desc",

     

                      "iconUri": "Resources/Images/Icons/Toolbar/view-switch-table-24.png",

     

                      "libraryId": "Mapping.Infrastructure",

     

                      "hideOnDisable": true,

     

                      "batch": [

     

                        {

     

                          "command": "ShowResultsTable",

     

                          "commandParameter": "{{context}}",

     

                          "abortBatchOnFailure": true

     

                        },

     

                        {

     

                          "command": "CloseDataFrame"

     

                        }

     

                      ]

     

                    },

     

                    {

     

                      "text": "@language-menu-identify-buffered-feature-set-collection",

     

                      "description": "@language-menu-identify-buffered-feature-set-collection-desc",

     

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

     

                      "hideOnDisable": true,

     

                      "command": "IdentifyBufferedFeatureSetCollection",

     

                      "commandParameter": "{{context}}"

     

                    },

     

                    {

     

                      "text": "@language-menu-show-charting-view",

     

                      "description": "@language-menu-show-charting-view-desc",

     

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

     

                      "hideOnDisable": true,

     

                      "command": "ShowChartingView"

     

                    },

     

                    {

     

                      "text": "@language-menu-export-results-to-csv",

     

                      "description": "@language-menu-export-results-to-csv-desc",

     

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

     

                      "hideOnDisable": true,

     

                      "command": "ExportResultsTo",

     

                      "commandParameter": {

     

                        "format": "csv",

     

                        "fsc": "{{context}}"

     

                      }

     

                    },

     

                    {

     

                      "text": "@language-menu-export-results-to-xlsx",

     

                      "description": "@language-menu-export-results-to-xlsx-desc",

     

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

     

                      "hideOnDisable": true,

     

                      "command": "ExportResultsTo",

     

                      "commandParameter": {

     

                        "format": "xlsx",

     

                        "fsc": "{{context}}"

     

                      }

     

                    },

     

                    {

     

                      "text": "@language-menu-export-results-to-shp",

     

                      "description": "@language-menu-export-results-to-shp-desc",

     

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

     

                      "hideOnDisable": true,

     

                      "command": "ExportResultsTo",

     

                      "commandParameter": {

     

                        "format": "shp",

     

                        "fsc": "{{context}}"

     

                      }

     

                    }

     

                  ]

     

                },
    0

Please sign in to leave a comment.