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.
{ { "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 } } }] } } } } }}
{ "SetEaxMdResult": { "id": { "id": "Connection_Moniker!M!S!Dashboard_Moniker!DSO!Visualizer_Key" } }}
See also:
Questions and Answers | Working with Dashboard | Working with Express Reports