Select to view content in your preferred language

WidgetManager Error#2036

2685
3
Jump to solution
02-02-2012 11:27 AM
by Anonymous User
Not applicable
Original User: Richmondgis

Following the instructions from ESRI, I tried to make my first simple widget in Flex Builder 4. After copying the "HelloWorld" mxml from the Samples folder to a new 'renamed" mxml. Slightly changed the coding in the xml code and complied the module to create the .swf and xml pair. Then copied the pair into my flexviewer test site samples folder in the widget directory. Then altered the config.xml to acces the new widget, and ran the application.

Though the application runs, the WidgetManager Eorr#2036 pops up when I click on the new widget icon. After reviewing the steps and code several times, I blew all that away to start from scratch.

This time, however, all I did was to alter the config.xml in my test viewer to access the the "helloworldwidget" directly, with no recodeing. Same results - Widgetmanager Error # 2036. Below is a copy of the config.xml section. I do not see any codeing problems, but granted I am very furstrated at this point. This should be fairly simple thing to do, but if any light can be shed on what is wrong here, please do so.

JEA

<widgetcontainer layout="float">
<widget left="100" top="90" icon="assets/images/i_target.png" label="Find an address" config="widgets/Locate/LocateWidget_Bing.xml" url="widgets/Locate/LocateWidget.swf"/>
<widget left="60" top="400" icon="assets/images/i_draw2.png" label="Draw and Measure" config="widgets/Draw/DrawWidget.xml" url="widgets/Draw/DrawWidget.swf"/>
<widget left="390" top="400" icon="assets/images/i_print.png" label="Print" config="widgets/Print/PrintWidget.xml" url="widgets/Print/PrintWidget.swf"/>
<widget left="70" top="400" icon="assets/images/i_flag.png" label="HelloWorld" config="widgets/Samples/HelloWorldWidget.xml" url="widgets/Samples/HelloWorldWidget.swf"/>
</widgetcontainer>

<widget url="widgets/Navigation/NavigationWidget.swf" config="widgets/Navigation/NavigationWidget.xml" left="10" top="50"/>
<widget url="widgets/OverviewMap/OverviewMapWidget.swf" config="widgets/OverviewMap/OverviewMapWidget.xml" right="-2" bottom="-2"/>
<widget url="widgets/MapSwitcher/MapSwitcherWidget.swf" config="widgets/MapSwitcher/MapSwitcherWidget.xml" right="20" top="55"/>
<widget url="widgets/HeaderController/HeaderControllerWidget.swf" config="widgets/HeaderController/HeaderControllerWidget.xml" left="0" top="0"/>
<widget url="widgets/Splash/SplashWidget.swf" config="widgets/Splash/SplashWidget.xml" label="Splash" icon="assets/images/i_globe.png"/>
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
Original User: Richmondgis

OK,  After stepping away and taling a walk around the buiolding, I came back to see the issue glaring at me.  The paths to the swf and xml were not complete.  I forgot to add the folder "helloWorld" in which they reside.   As I have said in the past, most of the issues are found between the keyboard and chair.....

Onward and upward!!!


JEA

View solution in original post

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
James,

   Something looks weird here but I need to see your whole Config.xml file to be sure.
0 Kudos
by Anonymous User
Not applicable
Original User: Richmondgis

OK,  After stepping away and taling a walk around the buiolding, I came back to see the issue glaring at me.  The paths to the swf and xml were not complete.  I forgot to add the folder "helloWorld" in which they reside.   As I have said in the past, most of the issues are found between the keyboard and chair.....

Onward and upward!!!


JEA
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
James,

   Great glad you got it worked out. Please make your last post as the answer so that this thread does not appear in the forum as needing an answer.

0 Kudos