eSearch widget customization

6717
20
Jump to solution
03-25-2016 08:20 AM
ZhujingXia
Frequent Contributor

Robert,

I'd like to customize the Esearch little bit. I'd like to get a report for the result of the search( may be a new window of HTML page to list the result attribute info). I created a 'report' button next to the 'clear' button on the result tab. if user click on the 'report' button a new window will open to show all the attribute info. I could get the result data from

this.currentFeatures.attributes.ADDRESS;

this.currentFeatures.attributes.Parcel_ID;

I have to list all the field names individually, I have a long list of the field name. Is there a easy way get the field name and attribute info all together within a for loop?

Thanks

20 Replies
RobertScheitlin__GISP
MVP Emeritus

Zhujing,

Just use this.currentLayerAdded

ZhujingXia
Frequent Contributor

worked

0 Kudos
ZhujingXia
Frequent Contributor

Robert,

I used the ESearch to create buffer around the parcel. The buffer will add into the map as a operation layer. When I use the print widget to print out, the buffer in the legend on printout map shows as 'Override 1'. Is there a way to change it and show the correct legend on the printout?

Thanks

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

No this seems to be a ArcGIS Server issue.

ZhujingXia
Frequent Contributor

Robert,

In this eSearch Widget, if I go to the By shape Tab. The enable multi-part graphics is unchecked by default. How could I make it checked by default?

Thanks

Zhujing

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Zhujing,

Edit the Widget.html:

<div data-dojo-type="jimu/dijit/CheckBox" data-dojo-attach-point="cbxMultiGraphic" data-dojo-props="checked: true"></div>

ZhujingXia
Frequent Contributor

Robert,

I added in  data-dojo-props="checked: true", but it dose not work.

Zhujing

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Zhujing,

  Ahh, I forgot I already added a configuration option for this. Click on the "Edit Graphical Search Options" at the bottom of the main widget settings page and you will see the option there.

ZhujingXia
Frequent Contributor

Robert,

Worked. Thanks

0 Kudos
ZhujingXia
Frequent Contributor

Robert,

Is that possible to remove the attribute table fro this widget?

Thanks

Zhujing

0 Kudos