Select to view content in your preferred language

identify widget 3.0 not linking to my documents anymore

1143
6
08-10-2012 06:03 AM
by Anonymous User
Not applicable
Original User: hockey31

At 2.5 document linking was working but at 3.0 i can only display attributes. i don't get the linking icon to click on anymore.  i am using the same code as before.  any ideas what i could be doing wrong?

here is the code i am using in the xml file:

  <layer>
   <name>Special Permits (SP)</name>
   <fields all="false" />
    <field name="SP_CODE" alias="Special Permit" popuponly="false" />
   <links>
    <link includeinresults="true" field="SP_CODE" alias="" tooltip="">
     <linkprefix>http://gis.sanangelotexas.us/cityscans/Planning/Special Permits/SP</linkprefix>
     <linksuffix>.pdf</linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
   </links>
   <zoomscale>4500</zoomscale>
   <forcescale>true</forcescale>
  </layer>
0 Kudos
6 Replies
by Anonymous User
Not applicable
Original User: rscheitlin

Mike,

   Can I assume the fact that your fields element is not closed is because you just chopped some fields out to make it shorter to post..? Also the all attribute in your fields is not part of the identify widget... That is from the eSearch.

        <layer>
            <name>Special Permits (SP)</name>
            <fields all="false" />
                <field name="SP_CODE" alias="Special Permit" popuponly="false" />
            </fields>
            <links>
                <link includeinresults="true" field="SP_CODE" alias="" tooltip="">
                    <linkprefix>http://gis.sanangelotexas.us/cityscans/Planning/Special Permits/SP</linkprefix>
                    <linksuffix>.pdf</linksuffix>
                    <iconfield></iconfield>
                    <iconprefix></iconprefix>
                    <iconsuffix></iconsuffix>
                </link>
            </links>
            <zoomscale>4500</zoomscale>
            <forcescale>true</forcescale>
        </layer>
0 Kudos
by Anonymous User
Not applicable
Original User: hockey31

Hi Robert,

No I guess there was not close fields tag.  I have added it but that didn't help either. I started with the code i downloaded from the flex site.  here is my updated code and i will also paste some code that was included from the original file which doesn't seem  to have the fields tag closed.  I did verify that this code was from the IdentifyWidget.xml because i do use both esearch and identify widgets.

My Updated Code:

  <layer>
   <name>Special Permits (SP)</name>
   <fields all="true" />
   </fields>
   <links>
    <link includeinresults="true" field="SP_CODE" alias="SP" tooltip="SP Tip">
     <linkprefix>http://gis.sanangelotexas.us/cityscans/Planning/Special Permits/SP</linkprefix>
     <linksuffix>.pdf</linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
   </links>
   <zoomscale>4500</zoomscale>
   <forcescale>true</forcescale>
  </layer>





Here is an excerpt from the original identifywidget.xml:

  <layer>
   <name>Forcemains</name>
   <fields all="true" />
   <links>
    <link includeinresults="true" field="" alias="" tooltip="">
     <linkprefix></linkprefix>
     <linksuffix></linksuffix>
     <iconfield></iconfield>
     <iconprefix></iconprefix>
     <iconsuffix></iconsuffix>
    </link>
   </links>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mike,

   Sorry to confuse you here. In basic XML language this is a closed tag:

<fields all="true" />
because of the forward slash at the end and the fact that the XML element does not have any children.  Your original XML had the tag closed but had a child which ended up orphaned.

So your updated code should look like this if you want all the fields returned:

        <layer>
            <name>Special Permits (SP)</name>
            <fields all="true" />
            <links>
                <link includeinresults="true" field="SP_CODE" alias="SP" tooltip="SP Tip">
                    <linkprefix>http://gis.sanangelotexas.us/cityscans/Planning/Special Permits/SP</linkprefix>
                    <linksuffix>.pdf</linksuffix>
                    <iconfield></iconfield>
                    <iconprefix></iconprefix>
                    <iconsuffix></iconsuffix>
                </link>
            </links>
            <zoomscale>4500</zoomscale>
            <forcescale>true</forcescale>
        </layer>
0 Kudos
by Anonymous User
Not applicable
Original User: hockey31

I used this updated code, but the identify widget tool still won't return any links to click on.  At the previous version, it would return my results with an "icon" out to the side of the field information.  I could click on the image icon and the pdf would open in a new window.  At version 3.0 i get results from fields returned to me but i no longer have the icon to click on.  The only changes i have made is to install v10.1 of ESRI.  I am wondering if that is the problem?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mike,

   Is your map service public? I have tested the 3.0 Identify widget with links like you have but I have not tested against a 10.1 map service yet.
0 Kudos
by Anonymous User
Not applicable
Original User: hockey31

Sorry, no the service is not available to the public.  If you need to, PM me and I can get you my contact or email info.
0 Kudos