Select to view content in your preferred language

WidgetManager Error #2124

6803
35
Jump to solution
01-09-2012 07:23 AM
JustinGleeson
Deactivated User
Hi,

I have deployed a ThematicQueryWidget in my application. This works well but I always get a WidgetManager Error #2124 when I open the mapping viewer (see attached). This does not seems to stop the widget from working though. Any idea what causes this?

Code in main config

<widget label="Accessibility Maps" width="300" height="500"
                preload="open"
                left="95" top="50"
                icon="AccessMap_WidgetsPopUpsETC/assets/AccessMapTMW.png"
                config="AccessMap_WidgetsPopUpsETC/ThematicQueryWidgetAccessMap.xml"
                url="AccessMap_WidgetsPopUpsETC/widgets/Thematic Query Widget/ThematicQueryWidget.swf"/>

Code in ThematicQueryWidgetAccessMap.xml

<?xml version="1.0" ?>
<configuration>
    <!-- labelref should match the label of the operational layer's label in main config. -->
    <theme labelref="Train Stations" > 
<query legendurl="AccessMap_WidgetsPopUpsETC/assets/AccessMap_National.png" >
       </query>
    </theme>
</configuration>

thanks

Justin
Tags (2)
0 Kudos
35 Replies
RhettZufelt
MVP Notable Contributor
Jorge,

I am using the splash widget to do this.  Once you open the spash widget, you get a list of links.  click on the respective link and it opens a new browser and web page.

If you are using source code, it is fairly easy to modify the "About" link to pull up a splash page with the links on it.  Works just like the splash widget though, and it is stuck in the upper right hand corner.

This way, one click will pull up the list and you don't need a separate widget button for each web page.

R_
0 Kudos
JORGELAGOS2
Emerging Contributor
Justin,

    Glad you got it worked out. Please mark this post as answered by click on the check under this image: and promote by clicking on the upper arrow on any posts that helped you.


As you said it, the Link Widget was exactly what I needed. Thanks so much for your great I mean marvelous work.

Jorge
0 Kudos
JORGELAGOS2
Emerging Contributor
Sorry Robert I want to promote it as the answer but it seems that I don't get or I don't see the check option I only see the 0 between the up and down arrows.

Jorge
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jorge,

   You can not mark it as the answer as this thread is not originated by you, but you can promote my answer to you once you log in.
0 Kudos
JORGELAGOS2
Emerging Contributor
Sorry Robert I press the up arrow and the nimber changed to 1 is that promoting it? I just don't know how to promote it. By the way it will be really nice to show the url hyperlinks when the mouseover event instead of clik but I guess that has to be done on the code of the widgetgroup right?

Jorge
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jorge,

   Yes you did successfully promote the thread by pressing the up arrow and it becoming 1 instead of 0.

If you are tabling about the clicking of the folder icon to show the links, yes that would require A LOT of code change as that is the default nature of a group widget container.
0 Kudos
GeorgeHaskett
Deactivated User
Rob,

I am using Flex Viewer 3 and downloaded your latest version of the Link Widget.

Unfortunately my icon is not appearing properly and when I click on the defualt icon I get the dreaded error 2124 message.  The drop down list of links fails to appear.

You had three folders to choose from, compiled 2.5, app builder 3 and uncomplied with not version info.
I selected the 2.5 compiled version.  Is it possible that the error is being generated because the compiled version is 2.5 while my working version is 3?

My config code is as follows:

    <widgetgroup label="Related Websites" icon="assets/images/i_help.png">
      <widget label="GIS Training and Research Center at ISU" icon="assets/images/IT4GISLogo.jpg"    config="widgets/Link/LinkWidget_giscenter.xml" url="widgets/Link/LinkWidget.swf" />
      <widget label="MCPD - MT" icon="assets/images/i_globe.png" config="widgets/Link/LinkWidget_mt_mcpd.xml" url="widgets/Link/LinkWidget.swf" />
      <widget label="Visit esri Website" icon="widgets/Link/assets/images/esri.png" config="widgets/Link/LinkWidget_esri.xml" url="widgets/Link/LinkWidget.swf" />
    </widgetgroup>

I normally edit in Microsoft XML Notepad, however copied this out of the regular Notepad software.

Thanks,

George
0 Kudos
anne-laurefernet
Deactivated User
Hello,

Instad of creating a new thread, I reply to this one. I have the same error but cannot find from where it comes.

My mapservice was working perfectly until after a pb we had to restore the webapps folder of our tomcat.
and now, I have this error "WidgetManager Error 2124".
Other mapservices are working perfectly except this one.

I atteched my config.xml as example and as doc file, could not upload directly the .xml .

Could anybody could take a look at it quickly see if there is an issue in the config file?
I did not find the solution in previous posts.

I would like to add that my splahs window and the navigation widget work when I open the mapservice. The rest does not appear, nor the data.

Many thanks in advance!

Anne
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Anne-laure,

   Yes you have a syntax issue in your XML. on your commented 'Exporter' widget you have an opening comment but not a closing one. Add what I have in red or better yet remove all those items that are not needed.

        <!--<widget label="Time" left="60" top="400"
                icon="assets/images/i_clock.png"
                config="widgets/Time/TimeWidget.xml"
                url="widgets/Time/TimeWidget.swf"/> -->
        <!--widget label="Exporter" 
                icon="lu_assets/images/adv_print.png"
                config="lu/etat/pch/gis/widgets/pchPrintWidget/PchPrintWidget.xml" 
                url="lu/etat/pch/gis/widgets/pchPrintWidget/PchPrintWidget.swf"/> -->
        <!--<widget label="Edit" preload="close" left="75" bottom="75" icon="assets/images/i_edit.png" config="widgets/Edit/EditWidget.xml" url="widgets/Edit/EditWidget.swf" /> -->
0 Kudos
anne-laurefernet
Deactivated User
Robert,

You really have a sharp eye!
However, I added the red sign then removed all the inactive widgets tags but still the same error...

Now my widgetcontainer tag looks like this:

<widgetcontainer layout="float">
        <widget visible ="true" label="Saisissez votre adresse" left="150" top="90" preload="open"
    height = "100" width ="350"
                icon="assets/images/Westconf1.png"
                config="widgets/Locate/LocateWidget_EU.xml"
                url="widgets/Locate/LocateWidget.swf"/>
  <widget visible ="true" label="Cliquez à l'endroit de votre adresse" left="150" top="360" preload="open"
    height="300" width="350"
                icon="assets/images/Westconf2.png"
                config="widgets/Identify/IdentifyWidget.xml"
                url="widgets/Identify/IdentifyWidget.swf"/>
    </widgetcontainer>

Would it be caused by something else than the config file?

Thanks,

Anne
0 Kudos