Select to view content in your preferred language

Identify Widget Link Function

1027
7
Jump to solution
06-27-2014 08:08 AM
jasonflake
Emerging Contributor
Having some issue getting the Link function to work from the Identify widget, version 3.6, through application builder.  Have used it successfully with various other versions but this is my first trial using Application Builder and it is giving me a fit.  Specifically, I am trying to create a link utilizing the link prefix and link suffix option with configuring the widget.  Basically I plug in the necessary link information and open the web site to test the widgets operation and when I click on the link button to open the linked page, it seems to be adding addition text to the link url, as can be seen below.

http://sc-beaufort-county.governmax.com/svc/site_authlink.asp?p=R120%20001%20000%200239%200000%3Clin...

The Link Prefix is
http://sc-beaufort-county.governmax.com/svc/site_authlink.asp?p=

the input field is

R120 001 000 0239 0000

The Link Suffix is

&r=webgis.bcgov.net

Basically, it is adding a <linksuffix> after the input field and </linksuffix><linksuffix>null</linksuffix><linksuffix>null</linksuffix><linksuffix>null</linksuffix> after the link suffix.  A link to the site can be found below.  I looked through the forums and could not find anything related to the issue I am having.  If anyone has any input or suggestions I would greatly appreciate it.

http://webgis.bcgov.net/flexviewers/assessorsite/

Thanks,

Jason
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Jason,

   The XML that App Builder is producing for the identify widget seems to be off.

This is what you are currently using:

    <layers onlythese="false">         <layer>             <name>Parcels</name>             <id>0</id>             <url>http://webgis.bcgov.net/ArcGIS/rest/services/Parcels/MapServer</url>             <fields>                 <field name="parcels_PIN_" alias="PIN_"/>                 <field name="gisfile_PIN" alias="gisfile_PIN"/>                 <field name="gisfile_AIN" alias="gisfile_AIN"/>             </fields>             <links>                 <link includeinresults="false" field="parcels_PIN_">                     <linkprefix>http://sc-beaufort-county.governmax.com/svc/site_authlink.asp?p=</linkprefix>                     <linksuffix>&amp;r=webgis.bcgov.net</linksuffix>                     <linksuffix>null</linksuffix>                     <linksuffix>null</linksuffix>                     <linksuffix>null</linksuffix>                 </link>             </links>             <zoomscale>2000</zoomscale>             <forcescale>true</forcescale>         </layer>     </layers>


This is what it should be:

    <layers onlythese="false">         <layer>             <name>Parcels</name>             <id>0</id>             <url>http://webgis.bcgov.net/ArcGIS/rest/services/Parcels/MapServer</url>             <fields>                 <field name="parcels_PIN_" alias="PIN_"/>                 <field name="gisfile_PIN" alias="gisfile_PIN"/>                 <field name="gisfile_AIN" alias="gisfile_AIN"/>             </fields>             <links>                 <link includeinresults="false" field="parcels_PIN_">                     <linkprefix>http://sc-beaufort-county.governmax.com/svc/site_authlink.asp?p=</linkprefix>                     <linksuffix>&amp;r=webgis.bcgov.net</linksuffix>                     <iconfield />                     <iconprefix />                     <iconsuffix />                 </link>             </links>             <zoomscale>2000</zoomscale>             <forcescale>true</forcescale>         </layer>     </layers>

View solution in original post

0 Kudos
7 Replies
RobertScheitlin__GISP
MVP Emeritus
Jason,

   The XML that App Builder is producing for the identify widget seems to be off.

This is what you are currently using:

    <layers onlythese="false">         <layer>             <name>Parcels</name>             <id>0</id>             <url>http://webgis.bcgov.net/ArcGIS/rest/services/Parcels/MapServer</url>             <fields>                 <field name="parcels_PIN_" alias="PIN_"/>                 <field name="gisfile_PIN" alias="gisfile_PIN"/>                 <field name="gisfile_AIN" alias="gisfile_AIN"/>             </fields>             <links>                 <link includeinresults="false" field="parcels_PIN_">                     <linkprefix>http://sc-beaufort-county.governmax.com/svc/site_authlink.asp?p=</linkprefix>                     <linksuffix>&amp;r=webgis.bcgov.net</linksuffix>                     <linksuffix>null</linksuffix>                     <linksuffix>null</linksuffix>                     <linksuffix>null</linksuffix>                 </link>             </links>             <zoomscale>2000</zoomscale>             <forcescale>true</forcescale>         </layer>     </layers>


This is what it should be:

    <layers onlythese="false">         <layer>             <name>Parcels</name>             <id>0</id>             <url>http://webgis.bcgov.net/ArcGIS/rest/services/Parcels/MapServer</url>             <fields>                 <field name="parcels_PIN_" alias="PIN_"/>                 <field name="gisfile_PIN" alias="gisfile_PIN"/>                 <field name="gisfile_AIN" alias="gisfile_AIN"/>             </fields>             <links>                 <link includeinresults="false" field="parcels_PIN_">                     <linkprefix>http://sc-beaufort-county.governmax.com/svc/site_authlink.asp?p=</linkprefix>                     <linksuffix>&amp;r=webgis.bcgov.net</linksuffix>                     <iconfield />                     <iconprefix />                     <iconsuffix />                 </link>             </links>             <zoomscale>2000</zoomscale>             <forcescale>true</forcescale>         </layer>     </layers>
0 Kudos
jasonflake
Emerging Contributor
Thanks for the help.  Not sure why I did not look a the XML on Friday.  Guess I was ready for the weekend.  In addition to going in and altering the XML after the tool/widget is created, I found that if I enter a space for the icon field, prefix, and suffix, the tool works perfectly.  Its like it is looking for something to be populated in icon fields since the link fields are populated when setting up the widget and it automatically populates it with null. No big deal and a miniscule step that I will include in my process.  Thanks again for the help and more importantly thanks for your time and effort in creating and maintaining these widgets for everyone to utilize. 

Jason
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

   Glad to help. Now your turn.

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
RobertScheitlin__GISP
MVP Emeritus
Jason,

   I would also suggest getting version 3.6.6 of the identify widget as I have fixed some issue with the App Builder GUI (like the link issue you are having).
0 Kudos
jasonflake
Emerging Contributor
Will do on both suggestions above above.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

   Thanks for marking this thread as answered. The only thing is MVPs like myself get points for answering questions if the post that we respond with are marked as the answer by the original poster. Currently you have Checked your original post as the answer and not one of my posts in answer to your question.
0 Kudos
jasonflake
Emerging Contributor
Sorry about that.  I was fiddling around in there a bit and must have backed out after a errand check.  Should be all squared away now.
0 Kudos