Didn't even realize they still had these old flex forums up!
Will do and good call!
Andrew,
You are posting in the Obsolete Flex Viewer forum. It would be best for you to search the WAB forums for launching a widget from another widget.
Hey Robert!
Running into a slightly more obtuse situation that I haven't been able to solve with either your solution or DOM calls.
I'm using the 'About' Widget and, within the widget's content-pane I have create buttons using <div> elements. I was hoping that a user would be able to click on a button from the panel and the widget launches -- unfortunately, since I'm basically editing the innerHTML of an element, I was able to get your solution working.
I then looked into some document.getElementBy... operations but it appears that div classes in WAB use settingid, not id and the classes change depending on whether the element is in focus, so I wasn't able to push a nested JS function that would simulate clicking the appropriate widget's icon.
Any ideas on how I could open a widget using an html button within the About widget?
AppEvent.dispatch(AppEvent.WIDGET_RUN,ViewerContainer.getInstance().widgetManager.getWidgetId("yourPrintWidget"));
import com.esri.viewer.AppEvent; import com.esri.viewer.ViewerContainer;
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.