Select to view content in your preferred language

AttRelateInfoWinWidget - problem

510
6
Jump to solution
02-06-2012 07:57 AM
AayushKumar
Deactivated User
I am a newbie. I need help with AttRelateInfoWin Widget. Along with some textual information, I am trying to show images for particular points on the map.

in the main config file, i am using the following for the operational layer:
<operationallayers>  <layer label="Traffic Cameras" type="feature" visible="true" alpha="1.0"        info="widgets/InfoTemplates/AttRelateInfoWinWidget.swf"    popupconfig="widgets/InfoTemplates/IWT_Cameras.xml"     url="http://*Servername*/ArcGIS/rest/services/flextesta/MapServer/0"/>    </operationallayers>


and in the Widget config file, I have used the following

<?xml version="1.0" ?> <configuration>  <fields>URL,hisname</fields>               <titlefield>hisname</titlefield>               <multiimagefield linkprefix="" linksuffix="" nexttooltip="Next" prevtooltip="Prev">URL</multiimagefield>                     <layername>Traffic Cameras</layername>               <datefields></datefields>               <zoomscale>25000</zoomscale>              <csvseparator>,</csvseparator>  </configuration>



I have left the linksuffix blank because the entire path is provided by the URL attribute (Just for testing. once it works I will make this loosely coupled)

THE PROBLEM
The widget does  not work. The only thing that appears on the widget is a zoom button 😞

I tried to follow exactly what was written in 'Attachment Relate Info Window Widget XML Configuration' file. I configured the main XML by referencing the samples provided by you.

What I need
Exactly like when you click on Chuchhill Downs in the sample map http://gis.calhouncounty.org/FlexViewer2.5/index.html?config=config-infoimage.xml provided by Robert Scheitlin

Could you please guide me in the right direction? Since nothing (not even the text attributes - such as 'Name of Location' in the sample) is appearing on my widget, I am sure I am missing something basic.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Aayush,

   Are you using the compiled or uncompiled version of the widget?

View solution in original post

0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Aayush,

   Are you using the compiled or uncompiled version of the widget?
0 Kudos
AayushKumar
Deactivated User
Thank you for your response Robert. I am using the the compiled one.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Aayush,

   So you are using Flex Viewer 2.5 like the widget is compiled for then right?
0 Kudos
AayushKumar
Deactivated User
lol. that was it. This system is running 2.3 version of flex. I will start work on upgrading to the latest build of flex viewer.
Thank you Robert for your time and help
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Aayush,

   Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:
0 Kudos
DaveKirkley
Occasional Contributor
This works great for us!  A fantastic Widget.
I hope ESRI, or somebody, is paying you something for all the good work Mr. Scheitlin

Make sure you give your field attribute lots of space to hold the names of the pictures

<?xml version="1.0" ?>
<configuration>
    <fields>A,B,C</fields>
    <titlefield>Name</titlefield>
     
    <multiimagefield linkprefix="assets\images\file\" linksuffix=".gif" nexttooltip="Next" prevtooltip="Prev">Pic_link</multiimagefield >
   
    <layername>Alayer</layername>
    <datefields></datefields> <!-- field in milliseconds -->
    <zoomscale>1000</zoomscale>
    <csvseparator>,</csvseparator>
    <labels>
     <csvdefaultname>Related Records</csvdefaultname>
  <exportbtnlabel>Export...</exportbtnlabel>
  <export2csvoptionlabel>Export to CSV...</export2csvoptionlabel>
  <export2txtoptionlabel>Export to Txt...</export2txtoptionlabel>
    </labels>
</configuration>
0 Kudos