Select to view content in your preferred language

Hyperlinks for Flex Viewer 3.0

3097
14
Jump to solution
06-03-2012 07:43 AM
TimHayes
Frequent Contributor
I installed the Flex Viewer 3.0. Works great. But, I have 100 digital photos each one is linked to a point in a point feature class. I want the user to be able to click on the point and the photo with some associated data fields will popup in a Flash Window. All of the photos are in one directory on our server, there is a field called "PHOTOS" in the attribute table of the point feature class with the name of each photo, for example, img6543.jpg, img3234.jpg, img7684.jpg associated with each point.

Any suggestions on how to do this?

NOTE: I am not a coder, I know the basics of XML, and prefer to work with compiled widgets.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RhettZufelt
MVP Notable Contributor
I removed it from the config.xml, but, it still shows up. Here is my config.xml:


Since you are using the compiled version, it shouldn't be a build project issue.  My first thought would be to clear all the browser cache files, then open in a "new" browser window.

Pressing <cntrl><F5> is supposed to reload without cached pages, so might try that.  However, depends on what flakiness your windows has, this works great on some of my computers, others it just ignores it.  Have not been able to figure out why, but on the ignore box's, one has to clear the cache pages AND start a new browser EVERY time you make a change, or you won't see it.

R_

View solution in original post

0 Kudos
14 Replies
BjornSvensson
Esri Regular Contributor
I installed the Flex Viewer 3.0. Works great. But, I have 100 digital photos each one is linked to a point in a point feature class. I want the user to be able to click on the point and the photo with some associated data fields will popup in a Flash Window. All of the photos are in one directory on our server, there is a field called "PHOTOS" in the attribute table of the point feature class with the name of each photo, for example, img6543.jpg, img3234.jpg, img7684.jpg associated with each point.


You can set up the popup for this layer, and specify something like this in your configuration file:
<img src="http://yourserver/yourphotofolder/{PHOTOS}"/>
0 Kudos
TimHayes
Frequent Contributor
You can set up the popup for this layer, and specify something like this in your configuration file:
<img src="http://yourserver/yourphotofolder/{PHOTOS}"/>


I am relatively new to Flex Viewer customization and XML (but I am learning!), can you tell me where to insert this bit of code in the config.xml file?
0 Kudos
RhettZufelt
MVP Notable Contributor
Don't know that it works in 3.0, but this is the only way I have found to hyperlink "multiple" comma separated photos for a single feature.  At least using Viewer 2.5.

http://www.arcgis.com/home/item.html?id=4ec33120c9ea4d019fddf722fc34ea3c

Might get some ideas there.

R_
0 Kudos
TimHayes
Frequent Contributor
Don't know that it works in 3.0, but this is the only way I have found to hyperlink "multiple" comma separated photos for a single feature.  At least using Viewer 2.5.

http://www.arcgis.com/home/item.html?id=4ec33120c9ea4d019fddf722fc34ea3c

Might get some ideas there.

R_


AMAZING! I am going to uninstall 3.0 and install 2.5. With this widget's clear instructions I think I can get it up and running. This is exactly what we need.
0 Kudos
RhettZufelt
MVP Notable Contributor
Timothy,

I tried it with 3.0 yesterday with no joy.  I'm hopefull that we will get this functionalilty in 3.0 as it is a great feature.

Your are right, Roberts widget works like a charm if you follow the instructions exactly..  Remember no spaces in between the photo names, etc.  The following link has a bunch of good info on some of the quirks I ran into, how to code sub-folders into the path, etc.

http://forums.arcgis.com/threads/26094-view-multiple-pictures?p=157815#post157815

Once you get it set up, should do just what you are after,

R_
0 Kudos
TimHayes
Frequent Contributor
Timothy,

I tried it with 3.0 yesterday with no joy.  I'm hopefull that we will get this functionalilty in 3.0 as it is a great feature.

Your are right, Roberts widget works like a charm if you follow the instructions exactly..  Remember no spaces in between the photo names, etc.  The following link has a bunch of good info on some of the quirks I ran into, how to code sub-folders into the path, etc.

http://forums.arcgis.com/threads/26094-view-multiple-pictures?p=157815#post157815

Once you get it set up, should do just what you are after,

R_


I followed all the instructions for this widget per your earlier post. I have San Francisco 3-1-1 still listed in the Layers under the "More" Tab. How do I remove this?
0 Kudos
RhettZufelt
MVP Notable Contributor
The "more" tab is related to the MapSwitcher widget.  either remove the San Francisco 3-1-1 service from your operational layers in the config.xml (if you don't want it on the map) OR, set up the MapSwitcherWidget.xml to exclude that layer if you need it in your map but do not want it to show in the "more" tab.

R_
0 Kudos
TimHayes
Frequent Contributor
The "more" tab is related to the MapSwitcher widget.  either remove the San Francisco 3-1-1 service from your operational layers in the config.xml (if you don't want it on the map) OR, set up the MapSwitcherWidget.xml to exclude that layer if you need it in your map but do not want it to show in the "more" tab.

R_


I removed it from the config.xml, but, it still shows up. Here is my config.xml:

<?xml version="1.0" ?>
<configuration>
    <title>Hyperlink Test 1</title>
    <logo>assets/images/logo.png</logo>
    <style>
        <colors>0xffffff,0x333333,0x101010,0x0,0xffd700</colors>
        <alpha>0.8</alpha>
    </style>
    <!-- replace the following url with your own geometryservice -->
    <geometryservice url="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer" useproxy="false"/>
    <widgetcontainer layout="float">
        <widget icon="assets/images/i_bookmark.png" label="Bookmarks" config="widgets/Bookmark/BookmarkWidget.xml" url="widgets/Bookmark/BookmarkWidget.swf"/>
        <widget icon="assets/images/i_target.png" label="Find an address" config="widgets/Locate/LocateWidget_World.xml" url="widgets/Locate/LocateWidget.swf"/>
        <widget icon="assets/images/i_draw2.png" label="Draw and Measure" config="widgets/Draw/DrawWidget.xml" url="widgets/Draw/DrawWidget.swf"/>
        <widget icon="assets/images/i_print.png" label="Print" config="widgets/Print/PrintWidget.xml" url="widgets/Print/PrintWidget.swf"/>
        <widget url="widgets/LayerList/LayerListWidget.swf" config="widgets/LayerList/LayerListWidget_LayerList.xml" label="Layer List" icon="assets/images/i_layers.png"/>
        <widget url="widgets/Legend/LegendWidget.swf" config="widgets/Legend/LegendWidget_Legend.xml" label="Legend" icon="assets/images/Legend32.png"/>
    </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"/>
    <map esrilogovisible="true" openhandcursorvisible="true" scalebarvisible="true" zoomslidervisible="false" wraparound180="true" initialextent="-13576048.284565514 4498922.921890645 -13574025.091973038 4500138.748371839" top="40">
        <basemaps>
            <layer type="tiled" label="Imagery" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" visible="true"/>
            <layer type="feature" label="Structures" url="http://esdgisnew/ArcGIS/rest/services/FlexHyperlinkTest/MapServer/9" visible="false"/>
        </basemaps>
        <operationallayers>
            <layer type="feature" label="Pipes" url="http://esdgisnew/ArcGIS/rest/services/FlexHyperlinkTest/MapServer/10" mode="snapshot" visible="true"/>
            <layer label="Exposed_Pipes_GPS_Test" type="feature" visible="true" alpha="1"
                   info="widgets/InfoTemplates/AttRelateInfoWinWidget.swf"
                   infoconfig="widgets/InfoTemplates/ExPipesHyperlinks.xml"
                   url="http://esdgisnew/ArcGIS/rest/services/FlexHyperlinkTest/MapServer/0"/>
        </operationallayers>
    </map>
</configuration>
0 Kudos
RhettZufelt
MVP Notable Contributor
I removed it from the config.xml, but, it still shows up. Here is my config.xml:


Since you are using the compiled version, it shouldn't be a build project issue.  My first thought would be to clear all the browser cache files, then open in a "new" browser window.

Pressing <cntrl><F5> is supposed to reload without cached pages, so might try that.  However, depends on what flakiness your windows has, this works great on some of my computers, others it just ignores it.  Have not been able to figure out why, but on the ignore box's, one has to clear the cache pages AND start a new browser EVERY time you make a change, or you won't see it.

R_
0 Kudos