Select to view content in your preferred language

Showing .html in Flex Viewer, .html embedded popups

704
1
12-04-2012 03:24 AM
LiamCollins
Emerging Contributor
Hi I was hoping someone on here could help me.
I have recently used ArcGIS viewer for flex and Adobe flash builder to build and host an online map.
Now I want to show popups of panoramic photos I have taken in the field which are in .html form. So basically I need a popup or widget which can retrieve these from my local drive and display them.

I first wrote a query widget using the �??QueryWidget_Louisville_TrafficCams.xml�?� as my base. This was my widget code
<?xml version="1.0" ?>
<configuration label=Photos">
    <layer>http://MyMap </layer>
    <titlefield>DESCRIPT</titlefield>
    <linkfield>"C:\My project photo storage\Photos\"+Hyperlink_Relative_Path</linkfield>
    <fields all="false">
        <field name="DESCRIPT"/>
        <field name="Hyperlink_Relative_Path"/>
        <field name="FIELDDATE" alias="Taken"/>
    </fields>
    <filterfield>
        <name></name>
        <alias></alias>
    </filterfield>
    <refreshrate></refreshrate>
    <zoomscale>18000</zoomscale>
    <query>1=1</query>
</configuration>

this is showing is the �??Hyperlink_Relative_path�?� field information rather than retrieving the actual .html image.

I also wrote a popup
<?xml version="1.0" ?>
<configuration>
    <title>{Hyperlink_Relative_Path}</title>
    <description>
  <![CDATA[<a href='C:\My project photo storage\Photos\Hyperlink_Relative_Path'><u>LINK</u></a>
   <p><li>Description = {DESCRIPT}</li>
         <li>PHOTOTYPE = {PHOTOTYPE}</li>
      <li>Hyperlink_Relative_Path = {Hyperlink_Relative_Path}</li></p>
  ]]>
    </description>

    <fields>
     <field name="DESCRIPT"/>
        <field name="PHOTOTYPE"/>
        <field name="Hyperlink_Relative_Path"/>
    </fields>

</configuration

This shows �??Link�?� text to click however it is dead, Does not retrieve anything.
Could anyone help me with where I am going wrong or with another solution to displaying �??.html�?� popups in flex viewer?
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Liam,

   You need to set up a virtual directory to this path "C:\My project photo storage\Photos\Hyperlink_Relative_Path" as Flex Viewer is a web application it need an http: address for the link.

Robert

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow these steps as shown in the below graphic:

0 Kudos