Select to view content in your preferred language

eSearch - how to view attachments in popup?

4261
18
Jump to solution
08-10-2012 09:17 AM
MegPeterson
Regular Contributor
I have a point feature class with related attachements (photos) in a gdb. I'd like to view these in the popup associated with the eSearch widget, but I'm not sure how to configure the .xml. (I don't see any tags in the xml help configuration document.)

I tried <showattachments>true</showattachments> for my layer in the .xml, but no luck.

I'm also not sure what the tag <queryattachments> does....

Appreciate any help pointing me in the right direction!
Tags (2)
0 Kudos
18 Replies
RobertScheitlin__GISP
MVP Emeritus
Meg,

   Have you added anything in the default.css forcing the PopUpRenderer to use a certain skinClass?

Like this:
esri|PopUpRenderer
{
    skin-class: ClassReference("com.esri.viewer.customskins.PopUpRendererSkin");
}


I have a couple of mapservices that are working fine showing the attachments including the one in the eSearchWidget.xml that come in the download "SanFransisco 311".

Do you see the spinning busy cursor at the bottom of the popup when you hover over a result?
0 Kudos
MegPeterson
Regular Contributor
Nope - I haven't added anything to the default.css. Should I have?

No spinning cursor, either.

I've attached screen shots from searching on the incidents 'open' and 'closed' using SF 311.  'Closed' has the "no attachments" text, and 'open' doesn't, which makes me wonder if there are attachements that just aren't popping up. I'm also trying to look through your online example to see find a thumbnail image.

Do you know of a specific SF 311 record incident that has attachments?

Thanks so much for helping me on this.
0 Kudos
MegPeterson
Regular Contributor
Hi Robert -

I'm still working on getting the attachment thumbnails/links to display. I feel like I'm close by process of elimination.

When I perform a text search (eSearch), I still get the �??no attachments�?? text in the map popup. (See Attachement1.jpg)

However --when I add the popup.mxl in the config file and then click on the map, I get an interesting result.

<layer label="Cultural Resources" type="dynamic" visible="true" alpha="1"                   url="http://pogis/ArcGIS/rest/services/LiveMaps_v10/CultRes_MegTest_Attach/MapServer">  <sublayer id="0" poppupconfig="popups/PopUp_CultRes_Points.xml"/></layer>


The popup lists 1 of 2 info windows.

The first is associated to the eSearch with no thumbnail (See 1_of_2.jpg)

The second to the popup.xml which shows thumbnails!! And a different renderer? (See 2_of_2.jpg)

So it's making me wonder if it's a setting with a renderer? Maybe not reading the field correctly since my OBJECTID field is named OBJECTID_1?

Many thanks!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Meg,

   It must have something to do with your data and the two objectid fields... I am not sure what to tell you as I don not have a dataset that is like yours with the two objectid fields to test against. I will try something in the next version to see if I can work around this type of issue.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Meg,

   I am pretty confident I have it resolved in 3.0.7

Version 3.0.7 - 8/21/2012
* Tab labels are now configurable in the Fixed data grid (use the SearchWidgetFixedDG.xml).
* Fixed nobufferoutlincolor label being ignored in the eSearchWidget.xml
* Fixed show and hide animation on Fixed Datagrid.
* Fixed datagrid (if autohide) will show when a search is executed and hide with results are cleared.
* If multi field expressions are used, now all fields DO NOT have to be filled.
* Fixed PopUp Attachment Issue.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Meg,

   You can use my Live Preview site and choose:
Search Layer: SanFransisco 311
Search Layer Field: Request ID
Search Value: 508844
and you will see an attachment of a snake picture.


MAKE SURE YOU CLEAR YOUR BROWSERS CACHE
0 Kudos
MegPeterson
Regular Contributor
I'll check this all out. Thanks Robert!
0 Kudos
MegPeterson
Regular Contributor
!!! It works! Thank you so much. You're invaluable!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Meg,

   Glad that it worked for you. 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