hyperlinkaliastext - the text to show instead of the url
Actually, I don't see the alias for the URL. Is there a more current version with that in there?Anyway, I'm getting TONS of use out of this widget!!!
<iconprefix>http://myserver/icons/</iconprefix> <iconfield>icofield</iconfield> <iconsuffix>.jpg</iconsuffix>
Jon, Thanks for pointing that out. I was actually getting this widget and by enhanced Search Widget confused. Currently in 2.2 of the Identify widget there is no hyperlink alias.I will look at adding this to a future version though.The spaces issue has been resolved in Version 2.2 so it does not matter if you have them in there or not NOW.What iconfield, iconprefix, and iconsuffix do is allow you to specify a particular icon to use in the identify results instead of the standard black circle with the orange arrow inside it.So a use case would be you have a hyperlink field that has a pdf url in it. if you had a iconfield in your data also that specified a image file that is url accessible then the orange arrow icon could be replaced with your custom image in the identify results.So example would be iconprefix would have:<iconprefix>http://myserver/icons/</iconprefix> <iconfield>icofield</iconfield> <iconsuffix>.jpg</iconsuffix>so if your icofield has a value of "pdf" then the complete url would be "http://myserver/icons/pdf.jpg" and that image would be used for the little icon that by default is the black circle with the orange arrow in it.Hope this clears some things up. I will consider better documentation. No promises though as these widgets are done in my free time and the majority of them I don't even use on my site.
Robert - great job on the widget and thanks for sharing.I initially had issues when I installed, but reading all these posts eventually showed all the necessary fixes. Is it possible to put an FAQ on the download site?It seems customary that everyone throw in a "wish list" item, so here's mine. It would be great if there was an alias name for the hyperlink. Instead of users seeing the web link, they'd see something like "Click here to see the plans".Oh - and multiple hyperlink fields would be good, too.Thanks again!
Jon, I went ahead an created documentation for this widget and in doing so noticed that I had something in the xml configuration that was not be used anyway (so documenting was a good thing).Version 2.2.1 is now available.
Robert,Thanks for the quick response. Yes sir, it is a string field containing text that should work in combination with the prefix and suffix to form a valid url. I was hoping others were having the same issue, but sounds like I'm on my own! I'll spend a little more time troubleshooting and hopefully be able to let you know where my error was.Thank you for your time,-Eric
Nathan, The first thing I would try is add wkt='PROJCS["Qatar_National_Grid",GEOGCS blah blah blah....' from your REST Services directory as well as your inital extent to the map element in your config.xml.
<iconprefix>\\xyz\xyz\xyz\Photos\</iconprefix>
<layer> <name>Weather Observations</name> <fields>Icon_used,URL,Type,OBJECTID</fields> <linkfield>URL</linkfield> <linkprefix></linkprefix> <linksuffix></linksuffix> <iconfield>Icon_used</iconfield> <iconprefix>http://gislap134/FlexViewer2.2/assets/images/i_</iconprefix> <iconsuffix>.png</iconsuffix> <zoomscale>15000</zoomscale> <forcescale>true</forcescale> </layer>
Dave, Currently no there is no support for multiple hyperlinks. Mid month there will be an option available that does support multiple hyperlinks though. It is quite different than this widget.Take a look here:http://forums.arcgis.com/threads/20281-Preview-of-two-great-new-widgets-coming-out-mid-January-2011
David, Version 2.2 is the latest is that the one you are using? Also you are talking about the link in the datagrid right?
Eric, I realize what you issue is. You are trying to use a UNC path<iconprefix>\\xyz\xyz\xyz\Photos\</iconprefix>The client machine has no idea how to get to that. You need to use a http url insteadlike this <layer> <name>Weather Observations</name> <fields>Icon_used,URL,Type,OBJECTID</fields> <linkfield>URL</linkfield> <linkprefix></linkprefix> <linksuffix></linksuffix> <iconfield>Icon_used</iconfield> <iconprefix>http://gislap134/FlexViewer2.2/assets/images/i_</iconprefix> <iconsuffix>.png</iconsuffix> <zoomscale>15000</zoomscale> <forcescale>true</forcescale> </layer>
David, Can you provide me with a screen shot of what you are wanting aliased? I think want you are asking for is not actually part of this widget but I need to be sure.
I can confirm that the hyperlinkalias tag is not present in the 2.2 xml. It would be extremely helpful if either in the readme or a comment in the xml contained guidance on what each tag is for; some of them like <iconprefix> are not immediately apparent to me, and there are some other tricky things (like requiring field alias to be used rather than field name) that would be great to document.I also notice that in your examples you do have spaces after each field although you mention they shouldn't be there.One last question: I have gotten this to work for all of my layers/fields except one case. I have a map service where several fields come from a joined table (http://maps.tnc.org/ecadpubprod-anon/rest/services/conservation_projects_anon_WM/MapServer/1), and the fields that have an alias with an "_" character aren't coming through. I have other layers with fields that have an underscore in the alias, and the fields in this layer that don't have underscores in the alias work fine. Is that a possible limitation of the code? I've triple-checked I have the exact alias name in my xml file.This is a great widget, and will be incredibly helpful to The Nature Conservancy, thanks for submitting!I'm pasting in the contents of the 2.2 IdentifyWidget.xml so you can confirm whether or not it's what it should be:<?xml version="1.0" ?><!-- //////////////////////////////////////////////////////////////////////////////// // // Version 2.2 - Dec. 17, 2010 // ///////////////////////////////////////////////////////////////////////////////--><configuration> <identifylayeroption>visible</identifylayeroption> <identifytolerance>5</identifytolerance> <defaultzoomscale>5000</defaultzoomscale> <keepidentifyactive>true</keepidentifyactive> <labels> <zoom2message>Click to Zoom to Point</zoom2message> <identifylabel>Identify</identifylabel> <resultslabel>Results</resultslabel> <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel> <pointlabel>Identify</pointlabel> <clearlabel>Clear</clearlabel> <loadinglabel>Loading...</loadinglabel> <selectionlabel>Features Identified:</selectionlabel> </labels> <useproxy> <proxylayer> <!--name>Imagery</name--> </proxylayer> </useproxy> <layers onlythese="false"> <layer> <name>Zoning</name> <fields>ZONING_NAME, ZONING_TYPE</fields> <linkfield></linkfield> <linkprefix></linkprefix> <linksuffix></linksuffix> <iconfield></iconfield> <iconprefix></iconprefix> <iconsuffix></iconsuffix> <zoomscale>15000</zoomscale> <forcescale>true</forcescale> </layer> <layer> <name>LandUse</name> <fields>LANDUSE_NAME</fields> <linkfield></linkfield> <linkprefix></linkprefix> <linksuffix></linksuffix> <iconfield></iconfield> <iconprefix></iconprefix> <iconsuffix></iconsuffix> <zoomscale>15000</zoomscale> <forcescale>true</forcescale> </layer> <layer> <name>Parcels</name> <fields>PARCELID</fields> <linkfield></linkfield> <linkprefix></linkprefix> <linksuffix></linksuffix> <iconfield></iconfield> <iconprefix></iconprefix> <iconsuffix></iconsuffix> <zoomscale>12000</zoomscale> <forcescale>true</forcescale> </layer> <layer> <name>TrafficCams</name> <fields>ONLINE, DESCRIPTION, LAST_UPDATED, URL</fields> <linkfield>URL</linkfield> <linkprefix></linkprefix> <linksuffix></linksuffix> <iconfield></iconfield> <iconprefix></iconprefix> <iconsuffix></iconsuffix> <zoomscale>2000</zoomscale> <forcescale>true</forcescale> </layer> <layer> <name>PoliceStations</name> <fields>PD_NAME, ADDRESS</fields> <linkfield></linkfield> <linkprefix></linkprefix> <linksuffix></linksuffix> <iconfield></iconfield> <iconprefix></iconprefix> <iconsuffix></iconsuffix> <zoomscale>2000</zoomscale> <forcescale>true</forcescale> </layer> </layers> <info>widgets/InfoTemplates/InfoPopupWidget.swf</info></configuration>
I cant seem to get to the fields in my joined (or related) table to show up. Not sure I have the syntax correct. Do you have to have two layer blocks, one for the master layer and one for the joined layer?
Or do you need to qualify the field names with which table they are coming from. (Doesnt look like you did this, but it would make sense if you needed to.)
Just to be clear, the "_" in the field name only seem to be a problem with the alias and link field. if you just have an alias field with an "_" in it and you want to simply display it, then it works fine.Stephen
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.