Select to view content in your preferred language

Enhanced Search Widget Version 2.11 Group By

877
5
08-05-2019 12:08 AM
KafilBaig
Regular Contributor

Thanks for the Enhanced Search Widget Version 2.11. It is very useful .

We are using this widget in our application and it works fine. Just wanted to check this is possible.

We have a layer in which data is of Point features.

ObjectId  SQ  PID   Name  PhoneNo  

1              1     123    John    123456

2              1     123    Royce  456789

3              1      789   Alex     789456

4              1      125   Goel    963852

5              1      789   Paul     852852

When we search with field SQ = 1 it returns all fields whereas we need to group the result based on PID as given below.

It should show only 3 points on the map and in result.

In Popup it should group data by PID.

Is it possible in this widget.

0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus

Kafil,


  No there is no option to group results based on a certain field.

0 Kudos
KafilBaig
Regular Contributor

In the result panel can we append 2 values for example

 Now only the title selected value is displayed but i would need like given below

John - 123456

In your widget link the result is displayed all fields

https://gis.calhouncounty.org/WAB/V2.11/widgets/eSearch/index.html?esearch=I-71&slayer=1&exprnum=0

How can i achieve similar like your result.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Kafil,

   There is no way to combine two field values into one string to display in the widgets results without some code changes. But you can configure any number of fields to display in the widgets settings dialog.

0 Kudos
KafilBaig
Regular Contributor

Hi Robert,

As per my requirement the data looks like this 

ObjectId  SQ  PID   Name  PhoneNo  

1              1     123    John    123456

2              1     123    Royce  456789

3              1      789   Alex     789456

4              1      125   Goel    963852

5              1      789   Paul     852852

Where the coordinates of Pid -123 and 789 is same so on the map the points would be overlapping on each other . Is there that we can do something when user hovers on the point we show 2 points exploded like in google maps. 

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

I have no plans currently to implement such a feature for this widget.

0 Kudos