CSBL - widgetTable (OUT)

×

Warning message

You can't delete this newsletter because it has not been sent to all its subscribers.

 

First of all, an existing widgetTable must be identified in the dashboard, of which the id <TARGET_WIDGET_NAME> must be noted.

The JS function to be inserted in the appropriate CK Editor box (in more options) of another widget of the same dashboard, in order to pilot the <TARGET_WIDGET_NAME> widgetTable  is of the following type:

 

function execute() {

       $('body').trigger({

             type: "showTableFromExternalContent_<TARGET_WIDGET_NAME>",

             eventGenerator: $(this),

             targetWidget: <TARGET_WIDGET_NAME>,

             passedData: [  {

    "metricId": "https://servicemap.disit.org/WebAppGrafo/api/v1/?serviceUri=http://www.disit.org/km4city/resource/iot/orionUNIFI/DISIT/I...",

    "metricHighLevelType": "Sensor",

    "metricName": "DISIT:orionUNIFI:IT0952A1",

    "metricType": "O3_"

  },  {

    "metricId": "https://servicemap.disit.org/WebAppGrafo/api/v1/?serviceUri=http://www.disit.org/km4city/resource/iot/orionUNIFI/DISIT/I...",

    "metricHighLevelType": "Sensor",

    "metricName": "DISIT:orionUNIFI:IT0952A1",

    "metricType": "NO2"

  },  {

    "metricId": "https://servicemap.disit.org/WebAppGrafo/api/v1/?serviceUri=http://www.disit.org/km4city/resource/iot/orionUNIFI/DISIT/I...",

    "metricHighLevelType": "Sensor",

    "metricName": "DISIT:orionUNIFI:IT0828A1",

    "metricType": "NO2"

 }

    ]}

);}