Retrieve the widget config information without using shortcut tile

Using the new feature from the hotfix, I am able to declare a custom widget type, params. Modify it in D2-config, and retrieve the widget config information using the "RestResources.getWigetConfigs()". However it needs to be a shortcut tile and it has to be in the Smartview landing page.

Is there a way to retrieve the widget config information without using shortcut tile?

Best Answer

  • @lementree : So by default all the widgets are driven from the landing page configuration in the D2-Smartview.. So as workaround you can add it as default widgets if the widget used is the same to fech it via approach which you have mentioned .

    Another way to handle it is directly firing the d2-rest api for d2-widgets which are as follows

    d2-widgets?widget-type={widgetType}&widget-name={widgetName}

Answers

  • @lementree : So by default all the widgets are driven from the landing page configuration in the D2-Smartview.. So as workaround you can add it as default widgets if the widget used is the same to fech it via approach which you have mentioned .

    Another way to handle it is directly firing the d2-rest api for d2-widgets which are as follows

    d2-widgets?widget-type={widgetType}&widget-name={widgetName}

  • lementree
    lementree Member
    edited August 3, 2023 #4

    @Antony Nalkara how about in java? without connecting to the d2-widgets?widget-type={widgetType}&widget-name={widgetName} with http.

    i want to use the widget params to the D2 rest controller i added