Show contents 

Web Service > Questions and Answers > How to Change Server Data Source for Dashboard Visualizer?

How to Change Server Data Source for Dashboard Visualizer?

Below is the example of JSON request template with using the SetEaxMd operation for changing a data source for dashboard visualizer. The request contains monikers of opened repository and dashboard, and visualizer key. The operation results in the key of changed visualizer.

JSON request:

{{
    "SetEaxMd": {
        "tEax": {
            "id": "Connection_Moniker!M!S!Dashboard_Moniker!DSO!Visualizer_Key"
        },
        "tArg": {
            "pattern": {
                "dataSources": "Set"
            },
            "meta": {
                "dataSources": {
                    "its": {
                        "it": [{
                            "k": 0,
                            "vis": true,
                            "cube": {
                                "obDesc": {
                                    "n": "",
                                    "i": "",
                                    "k": Visualizer_Source_Key,
                                    "c": Visualizer_Source_Key
                                }
                            }
                        }]
                    }
                }
            }
        }
    }
}

JSON response:

{
  "SetEaxMdResult":
   {
    "id":
     {
      "id": "Connection_Moniker!M!S!Dashboard_Moniker!DSO!Visualizer_Key"
     }
   }
}

See also:

Questions and Answers | Working with Dashboard | Working with Express Reports