Select to view content in your preferred language

Print Widget (V3.0) problems with eSearch Widget

3826
18
Jump to solution
07-06-2012 08:44 AM
MattPohl
Frequent Contributor
Hey All-

I have been migrating my viewer to the new 3.0 version and have ran into a problem that I wonder if anyone else has. I can successfully use the new print widget without any problems with all my services. I also use the eSearch widget without any problems, but when I make a selection using eSearch and than try to print the map with that selection, the viewer (and browser) locks up. The only way to unlock it is to end the process in task manager. Has anyone else run into this, or maybe someone could shed some light on why this is happening. Thanks in advance.

Matt
Tags (2)
0 Kudos
18 Replies
MattPohl
Frequent Contributor
Finally got some time to look into this a bit more, but have had not luck solving the problem. Just to test my configuration I downloaded a new eSearch Widget and did nothing to it (keep all the default code) and then preformed a query on Louisville Zoning. So here is what is happening. If I perform the query and leave the results on the map, everything locks up after hitting the print button. If I perform the query then clear the results of the map by either using the clear button on the eSearch Widget, or by just closing the eSearch Widget using the "X" then the print will work.

If I wait about 4 minutes after lockup I get a screen that looks like the attached screen shot.

Any thoughts on this from anyone would be great. I am a little bit lost on where to go from here. Has this situation happened to anyone else?

Matt
0 Kudos
RhettZufelt
MVP Notable Contributor
Since I seem to be the only one that does not experience this, I looked again.

My site is not external, and I do not have 10.1 so I have commented out the taskurl portion of my printwidget.xml.

<configuration>
    <!-- change this URL to your own Export Web Map Task (requires ArcGIS Server 10.1), or just remove the taskurl tag to get quick printing -->
<!--    <taskurl>http://sampleserver6.arcgisonline.com/ArcGIS/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task</taskurl>-->
</configuration>


Howerver, If I uncomment this line out, even though I can't utilize the ESRI export task server, I then get the hang and exclamation point error if I try to run it with a eSearch selection.
If I don't have a selection, then I get the error messages related to the task server not being able to see my services.

So, for what it's worth, it seems to be related to the enhanced features of the print widget as "quick printing" does not do it.

Hope this helps,

R_
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Guys,

   I have narrowed it down to the JSON serialization of the graphics attributes but I have not found the exact culript yet and am worried that it will take a pretty big change to code to get the graphics attributes more light weight and stringified... There might not be a quick fix to this issue. I see that in esri's 3.0 SearchWidget the graphics attributes only have four simple strings and no longer have all the old bloat that it use to have in 2.5. My eSearch graphics have a lot of bloat based on all the enhanced feature I have added and how the datagrids interact with the widgets results, etc, etc. Well looks like it is back to the drawing board.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   The new version 3.0.1 is now available.

Version 3.0.1 - 7/26/2012

* The name of the swf and xml file has changed to eSearchWidget.swf and eSearchWidget.xml
* Fixed application hang bug when using the eSearch and new 3.0 print widget.
* Added autozoom configuration to zoom to the selected features automatically whena search is complete.
* Added keepgraphicalsearchenabled configuration option to keep the graphical selection tool that the
  user chooses active even after a selection has been made. This means that you will not have to clear
  your selection and re-choose a graphical selection tool in order to make another selection.
* Added autohide to the fixed datagrid. Control of this is now in the SearchWidgetFixedDG.xml file.
* Added predefined datagrid column sorting to all the datagrids.
0 Kudos
MattPohl
Frequent Contributor
Hey Robert-

Great work on this fix. I have tested it out a few different ways and it seems to work every time. Thanks for all the support you provide with your development.

~Matt
0 Kudos
BlaiseMacLean
Deactivated User
Hi,

I'm using the stock Search widget and I'm getting the same error as Steve Nelson "Missing or invalid 'height' in marker symbol".

Steve - did you find a solution for the stock widget?

Robert (or anyone) - how difficult would it be for me to have a look at the eSearch tool changes and implement the same thing in the stock search widget?  Can you point me at the section of code I need to look at?

Thanks,

Blaise
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Blaise,

   The fix for the stock search widget is simple in the SearchWidget.xml just add the height and width attributes to the picturemakersymbol:

    <symbols>
        <picturemarkersymbol height="30" width="30"
            url="http://resources.arcgis.com/en/help/flex-viewer/live/assets/images/i_search.png"/> 
    </symbols>


Don't forget to click the top arrow (promote).
Follow the steps as shown in the below graphic:
0 Kudos
BlaiseMacLean
Deactivated User
Works; I like those nice simple solutions.

Thanks again Robert.
0 Kudos
AnthonyKroon
Deactivated User
Hello,

I am also getting this error.  But only get this problem when running on a server vs my local environment.  Anyone encounter that issue? Thanks for any help!
0 Kudos