Select to view content in your preferred language

Search widget results not showing up in 3.1 attribute table

5734
18
01-17-2013 12:31 PM
JasonHarshman
Frequent Contributor
I've checked the box for "Add results as operational layer", and as expected, the results from a search are shown in the legend, layer list, and a tab is added for the results layer in the attribute table. However, the attribute table is blank with no records or fields. The results in the search widget are visible and there parcels selected. I've attached a screenshot to help illustrating what I'm experiencing.

[ATTACH=CONFIG]20817[/ATTACH]
Tags (2)
0 Kudos
18 Replies
AnthonyGiles
Honored Contributor
Jason,

Are you using a modified search widget as I have not seen any option to add your results as an operational layer.

Also the attribute table widget and the search widget work independent of each other

Regards

Anthony
0 Kudos
JasonHarshman
Frequent Contributor
Anthony,

I'm using the out-of-the box search widget. When you edit the widget in the builder, there's an check box option on the bottom to make results an operational layer.
0 Kudos
AnthonyGiles
Honored Contributor
Jason,

Are you talking about configuring the attribute table widget in the application builder and not the search widget. If so:

"the Attribute Table widget checks for any feature layer feature(s) in the current extent and populates the attribute table with its feature(s)."

This widget is independent of the search widget, so is your search widget searching against a dynamic layer or a feature layer?

Regards

Anthony
0 Kudos
JasonHarshman
Frequent Contributor
The check box I referred to is for the search widget. I haven't done anything to configure the attribute table other than turn it on using the builder. But because I've selected the option for my search results to become an operational layer, the attribute table appears to look for this search result operational layer and based on your statement, "the Attribute Table widget checks for any feature layer feature(s) in the current extent and populates the attribute table with its feature(s)." This statement proves true because a new tab shows up in the attribute table for my search results, but like I've mentioned, no data is populated.
0 Kudos
RhettZufelt
MVP Notable Contributor
don't know if the selection is supposed to pass to the attribute table or not.

Just wanted to check and make sure you are using SDE and have published your service as a FeatureService.

The attribute table widget requires a featureservice (not just mapservice loaded as type="feature") in order to populate.

See here for more info:

http://forums.arcgis.com/threads/73842-New-Attribute-Table-Widget?p=258403#post258403

R_
0 Kudos
AnthonyGiles
Honored Contributor
Jason,

For the effect you want have you tried using Roberts esearch widget with a fixed data grid:

http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e

Regards

Anthony
0 Kudos
JasonHarshman
Frequent Contributor
The layer I'm searching is indeed a feature service and not a map service.

Robert's esearch widget is great, like many of his widgets, but it has too many features that are unnecessary for my needs. I know I could edit the code to strip its features down, but I'm not a flash developer so that's uncharted territory for me.

If you look at my original post with the screenshot, you can see that the search results are being passed to the attribute table (w/o data) because a new tab becomes available. When I clear my search results, that tab goes away. So if the attribute table needs a feature service to show attributes, why does a new tab show up from the results of a search?
0 Kudos
SarthakDatt
Frequent Contributor
I've checked the box for "Add results as operational layer", and as expected, the results from a search are shown in the legend, layer list, and a tab is added for the results layer in the attribute table. However, the attribute table is blank with no records or fields. The results in the search widget are visible and there parcels selected. I've attached a screenshot to help illustrating what I'm experiencing.


Yes, the search and query widgets were both updated at 3.1 to start using feature layer(s) instead of graphics layer to be able to share results.

I tried using the out-of-the-box search widget with the Attribute Table widget working as expected. Would it be possible for you to share the config.xml and the search widget's config. Would be easier to debug.
0 Kudos
AnthonyGiles
Honored Contributor
Sarthak,

Yes, the search and query widgets were both updated at 3.1 to start using feature layer(s) instead of graphics layer to be able to share results.

I tried using the out-of-the-box search widget with the Attribute Table widget working as expected. Would it be possible for you to share the config.xml and the search widget's config. Would be easier to debug.


Is this documented any where as I can not seem to find any reference to it. Does this mean you save the results of many searches as layers in the viewer. If so how do you enable this feature in the config file.

Regards

Anthony
0 Kudos