David, that is what I was afraid of... The info popup that you want to have the alias for is not part of the identifyWidget code it is part of the FlexViewer base code.
//on fault private function onFault(event:FaultEvent):void { if(event.fault.faultDetail != "Identify operation not supported on this service") showMessage(event.fault.faultDetail, false); }
Georgianna, 1. have you set the onlythese="false" 2. Here is the code to be changed: //on fault private function onFault(event:FaultEvent):void { if(event.fault.faultDetail != "Identify operation not supported on this service") showMessage(event.fault.faultDetail, false); }
Jon, I am working on that issue right now. I am thinking it is because you are using a prefix and/or suffix the link is never and empty string so you always get the link whether it is null or not. Can you verify for me that some of your fields that the link is set to do actually display with a null in them when you are looking at them in ArcMap?
<?xml version="1.0" ?> <layers onlythese="true"> <layer> <name>Marine ERAs</name> <fields>EAA_MARINE,MARINE_STA,ERA_REPT</fields> <linkfield>ERA_REPT</linkfield> <linkprefix></linkprefix> <linksuffix></linksuffix> <iconfield></iconfield> <iconprefix></iconprefix> <iconsuffix></iconsuffix> <zoomscale>9244648.8686180003</zoomscale> <forcescale>true</forcescale> </layer> </layers>
if(fldArr.toUpperCase() == identLinkField.toUpperCase()){ //concatenate if(value != "" && value != "Null") link = identLinkPre + value + identLinkSuffix; }
David, It looks like your production machine does not have access to the images. Are they in a virtual directory that is restricted in some way?
<layer> <name>ParksPreserves</name> <fields>SiteName,Address,ZipCode,PhoneNumber,OperationHours,Weblink</fields> <linkfield>WebLink</linkfield> <linkprefix></linkprefix> <linksuffix></linksuffix> <iconfield></iconfield> <iconprefix></iconprefix> <iconsuffix></iconsuffix> <zoomscale>12000</zoomscale> <forcescale>true</forcescale> </layer>
<layer> <name>Parks & Preserves</name> <fields>SiteName,Address,ZipCode,PhoneNumber,OperationHours,Weblink</fields> <linkfield>WebLink</linkfield> <linkprefix></linkprefix> <linksuffix></linksuffix> <iconfield></iconfield> <iconprefix></iconprefix> <iconsuffix></iconsuffix> <zoomscale>12000</zoomscale> <forcescale>true</forcescale> </layer>
'
<layer> <name>All water wells</name> <fields>Well Log ID,Aquifer Elevation,Bailing Rate,Depth to Bedrock,Bedrock Elevation,Pump Rate,Screen Length,Static Water Level,Total Well Depth,Owner,Owner Address</fields> <linkfield>Well Log ID</linkfield> <linkprefix>https://secure.in.gov/apps/dnr/water/dnr_waterwell?refNo=</linkprefix> <linksuffix>&_from=SUMMARY&_action=Details</linksuffix> <iconfield></iconfield> <iconprefix></iconprefix> <iconsuffix></iconsuffix> <zoomscale>9027</zoomscale> <forcescale>false</forcescale> </layer>
Mike, Unfortunately this is just the way that it is in my widget and all of esris as well. The issue is that the field is either or (either it is a link field or a display field, not both). This is just a coding limitation. My immediate suggestion is add another field to the data if it is absolutely necessary to have both.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.