AnsweredAssumed Answered

Opening widget from another widget programatically

Question asked by arcgoogle7 on Jul 3, 2017
Latest reply on Jul 5, 2017 by rscheitlin

Hello,

I have been working on a project to generate report for few weeks now, and I encountered some problem when I am opening widget from another widget programmatically.

The code I used is this,

var generateReportWidget = this.appConfig.getConfigElementsByName('GenerateReport');
var widgetId = generateReportWidget[0].id;
this.openWidgetById(widgetId);

I got this code from widget Sample folder(widget to widget communication). 

I works great but when I open widgetA from widgetB programmatically, then if I open widgetB, the tab is blank.

 

here is the before and after screenshot of the widget. 

    before                                           after

Thank you.

Outcomes