Select to view content in your preferred language

literal variables in viewer.xml

587
3
Jump to solution
01-24-2012 10:44 AM
DebbieAlger
Deactivated User
I am using an xml file of multiple languages, but don't know how to access them for the <menus> tag items, such as "Navigation" and "Markup and Printing" shown below..

<menus>
   <menu id="menuNavigation"  visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_globe.png">Navigation</menu>  
   <menu id="menuTasks"   visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_servicearea.png">Markup and Printing</menu>
    </menus>

I got is ok for the widget labels...
   <widget label="#!LayerListWidget_Label"         menu="menuMap"        config="virtual://config/LayerListWidget.xml"         icon="assets/images/i_layers.png" >com/geocortex/essentials/viewer/widgets/layerlist/LayerListWidget.swf</widget>


thanks,
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
DebbieAlger
Deactivated User
I did figure it out myself, pretty obvious really.

put in the variable WITHOUT quotes  .. #!Label_Name

and I am using Flex 2.3.1 so the code I have is compatible.

thanks anyway

View solution in original post

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
Debbie,

   Your question is a little cryptic... Are you saying you need help with code for reading an xml file in actionscript, or what?
0 Kudos
BjornSvensson
Esri Regular Contributor
<menus>
<menu id="menuNavigation"  visible="true" icon="com/esri/solutions/flexviewer/assets/images/icons/i_globe.png">Navigation</menu>


Debbie, which version of flex viewer are you working with here? It's sort of looks like the old Sample Flex Viewer which wouldn't be directly compatible with ArcGIS Viewer for Flex 2.x...
0 Kudos
DebbieAlger
Deactivated User
I did figure it out myself, pretty obvious really.

put in the variable WITHOUT quotes  .. #!Label_Name

and I am using Flex 2.3.1 so the code I have is compatible.

thanks anyway
0 Kudos