Select to view content in your preferred language

Formatting the Identify Widget - Hyperlinks

1398
6
08-11-2011 07:23 AM
DavidMarquette
Emerging Contributor
I have an address stored in my attribut table.  With the plain vb map app I could accomplish this by having something like this stored in the geodatabase under a Link field. 
<a href= "http://www.deltami.gov/edc/maps/Delta Investments.pdf" target= blank> Delta Investments </a>

Now I have been customizing the Silverlight template found here:
http://www.arcgis.com/home/item.html?id=67f62c5c30cc4b3ca942068e404c442c
Having lots of success except for the identify results and the corresponding hyperlinke.  As you can see I just want it to say Delta Investments for the sake of the above example. 

I have created another link field and placed http://www.deltami.gov/edc/maps/Delta Investments.pdf in it and it works great.  I just dont want the user to see the whole address in the identify tool.  Please help.  Having trouble finding a solution.  Must not be searching correctly.
0 Kudos
6 Replies
JenniferNery
Esri Regular Contributor
If you are using Silverlight Viewer, please post your question in the ESRI Beta Community site https://betacommunity.esri.com/home.html. Thanks.
0 Kudos
DavidMarquette
Emerging Contributor
I dont see anywhere to post at the provided link.
0 Kudos
JenniferNery
Esri Regular Contributor
I'm sorry I just realized that you were actually looking at a developer contribution in the arcgis.com Resource Center [not the Silverlight Viewer product as I assumed]. This project was built on top of our API but question regarding the app would have to be answered by the developer who contributed the project (Ping Jiang). I will send him an email so he can reply back to you in this forum thread.
0 Kudos
PingJiang
Esri Contributor
Hi, I am the author of the viewer you downloaded. Please contact me at pjiang@esri.com and let me know more details about this issue. You have to do some customization in the WidgetBase.cs or in fucntion AddToGraphicsLayer in IdentifyWidget.cs
0 Kudos
CarolKennedy
Deactivated User
I have been using Robert Scheitlin's Identify Widget version 3.0.2.  I am a non-programmer and new to Flex.   I am thrilled with the quality of his documentation so that even I can modify the xml to "Customize" the widget.

Everything so far has done what I expect with the exception of my inability to get the results to show a photo.  The .jpegs are in a folder on the same server, outside my geodatabase.  The field in the feature class has the photo name.  I have used the link suffix to add ".jpg" (working) and in the prefix tried various ways to put the path to the folder (not working).  All it is doing is in the popup it is showing the name of the photo. 

In looking at examples on line, I added the linkfield line of code, which may be a problem.

I assume in my ignorance of code there is something simple I am missing.

Any help is appreciated.  My code is attached.

Thanks,
Carol
0 Kudos
CarolKennedy
Deactivated User
I think I got it working but want to confirm that my assumption is correct.  I saw that while my Requested URL pointed to the D drive, the phisical path went to C:intepub\wwwroot.  So I moved my photos to that drive and voila!  It now finds them.  Is there something that is hard coded that it will only look in the wwwroot folder for the links?
0 Kudos