Select to view content in your preferred language

eSearch Widget and links for FV 3.0

1577
10
Jump to solution
07-02-2012 04:12 AM
EricVenden
Frequent Contributor
Good morning all...I'm using Robert's Identify widget (3.0) and creating multiple links to separate URL's using 1 attribute field.  I am trying to set this same functionality up in the eSearch widget, but cannot find a similar example in the documentation (so far).  I have the following in the links section of the xml:

   <links>
    <link includeinresults="true" field="PIN" alias="Tax Maps" gridfield="true"/>
    <linkprefix>http://oldapps.lakecountyil.gov/gis/MapGallery/MapsInqPin.asp?pin=</linkprefix>
    <linksuffix></linksuffix>
    <iconfield></iconfield>
    <iconprefix></iconprefix>
    <iconsuffix>assets/images/map.png</iconsuffix>
    </link>
    <link includeinresults="true" field="PIN" alias="Tax Bill" gridfield="true"/>
    <linkprefix>http://apps01.lakecountyil.gov/sptreasurer/collbook/collbook2.asp?PIN=</linkprefix>
    <linksuffix></linksuffix>
    <iconfield></iconfield>
    <iconprefix></iconprefix>
    <iconsuffix>assets/images/money.png</iconsuffix>
    </link>
    <link includeinresults="true" field="PIN" alias="Assessment Info" gridfield="true"/>
    <linkprefix>http://apps01.lakecountyil.gov/spassessor/assessments/asmt2.asp?PIN=</linkprefix>
    <linksuffix></linksuffix>
    <iconfield></iconfield>
    <iconprefix></iconprefix>
    <iconsuffix>assets/images/house.png</iconsuffix>
    </link>
   </links>

Is this same functionality possible in the eSearch and, if so, what modifications would I need to make to the above code or other code in the xml.
Thanks for your time.
Eric V
Gurnee, IL
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Eric,

   You need to read the new documentation as the whole link structure has changed.

Example:
<links> <link alias="REST Services Directory"> <![CDATA[{URL}]]> <icon><![CDATA[assets/images/i_camera.png]]></icon> </link> </links>


Example for your data:
<links> <link alias="Tax Maps"> <![CDATA[http://oldapps.lakecountyil.gov/gis/MapGallery/MapsInqPin.asp?pin={PIN}]]> <icon><![CDATA[assets/images/map.png]]></icon> </link> </links>


Example for your data if you need the link in the datagrid:
<fields all="false">                 <field name="PIN" alias="Tax Maps" hyperlinkgridfield="true"                     hyperlinkaliastext="Tax Maps" visible="false" linkprefix="http://oldapps.lakecountyil.gov/gis/MapGallery/MapsInqPin.asp?pin=" />             </fields>

View solution in original post

0 Kudos
10 Replies
RobertScheitlin__GISP
MVP Emeritus
Eric,

   You need to read the new documentation as the whole link structure has changed.

Example:
<links> <link alias="REST Services Directory"> <![CDATA[{URL}]]> <icon><![CDATA[assets/images/i_camera.png]]></icon> </link> </links>


Example for your data:
<links> <link alias="Tax Maps"> <![CDATA[http://oldapps.lakecountyil.gov/gis/MapGallery/MapsInqPin.asp?pin={PIN}]]> <icon><![CDATA[assets/images/map.png]]></icon> </link> </links>


Example for your data if you need the link in the datagrid:
<fields all="false">                 <field name="PIN" alias="Tax Maps" hyperlinkgridfield="true"                     hyperlinkaliastext="Tax Maps" visible="false" linkprefix="http://oldapps.lakecountyil.gov/gis/MapGallery/MapsInqPin.asp?pin=" />             </fields>
0 Kudos
EricVenden
Frequent Contributor
Thanks Robert.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Eric,

Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:
0 Kudos
RobSpeer
Deactivated User
Hi Robert,

Another quick question regarding the links wrapped in CDATA - from the example earlier:

Code:
<links>
<link alias="Tax Maps">
<![CDATA[http://oldapps.lakecountyil.gov/gis/MapGallery/MapsInqPin.asp?pin={PIN}]]>
<icon><![CDATA[assets/images/map.png]]></icon>
</link>
</links>


In your previous versions, the prefix and suffix were found under the <link> tag.  The result if the {PIN} field was null: no link would even be shown for the user to click.

Now that the prefix/suffix are in the CDATA section, just the prefix/suffix will return as a hyperlink if the field is null or blank.  So what happens in the above example, if the {PIN} field were null, is that the link would still be shown and hyperlink to just the prefix: "http://oldapps.lakecountyil.gov/gis/MapGallery/MapsInqPin.asp?pin=" and return a PIN not found result since no PIN was submitted.

Is there any way to get this to behave like links in previous versions, where no hyperlink is presented in the results and popup if the field is null/blank?

Thanks!
-rob.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rob,

   I will have to look into this.
0 Kudos
Marion_CountyAuditor
Occasional Contributor
E
Example for your data if you need the link in the datagrid:
<fields all="false">
                <field name="PIN" alias="Tax Maps" hyperlinkgridfield="true"
                    hyperlinkaliastext="Tax Maps" visible="false" linkprefix="http://oldapps.lakecountyil.gov/gis/MapGallery/MapsInqPin.asp?pin=" />
            </fields>




Is it possible to link 1 attribute to separate URL fields in the datagrid?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Elizabeth,

Is it possible to link 1 attribute to separate URL fields in the datagrid?      


I am not understanding the question at all.
0 Kudos
Marion_CountyAuditor
Occasional Contributor
I have a field - PIN (Parcel Identification Number)

I would like to display 3 fields in my data grid:

1. The parcel number itself - 123456789

2. A hyperlink to a photo website = http://photowebsite.com/record=123456789

3. A hyperlink to the property record site - http://propertyrecordsite.com/record=123456789



So, I thought I could do this:

<fields all="false">
<field name="PIN" alias="Parcel ID" gridfield="true" gridfieldonly="true"/>
<field name="PIN" alias="Photo" hyperlinkgridfield="true" hyperlinkaliastext="Show Image" visible="false" linkprefix="http://photowebsite.com/record="/>
<field name="PIN" alias="Parcel Records" hyperlinkgridfield="true" hyperlinkaliastext="Parcel Info" visible="false" linkprefix="http://propertyrecordsite.com/record="/>
</fields>


But it didn't work.

Is it possible to set this up?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Elizabeth,

   So as you have noticed this is not currently possible but I will look into this as an enhancement.
0 Kudos