Can't get my head around how to render a fresh filtered result. I've been combing the internet for an example i can understand.
What i have:
web map with 2 layers. layer_A is pretty much a pick list, which has an attribute that relates to layer_B. Layer_B contains everything i need to render. User clicks layer_A list and the map adjusts accordingly, showing only the data associated to the list item. When i click a point on map, my desire is to have this function exactly as the list click. What im getting is the list item changes to reflect the clicked item on the map, but the map data doesnt change. I suspect its trying to use the already filtered data.
What I desire:
When i click the point on the map, i would like it to use the unfiltered data as the source for the filter.
What ive tried:
I have attempted to make a copy of the web map data, with the intent of using this unfiltered source. But i cannot get my head around how to actually execute this. It seems no matter how i wire it, i end up with filtered data on the map click
Pretty sure ive read everything on the google about how to handle this, but it somewhere gets lost in translation.
Thank you in advance for any clues or sources of this scenario that can make this crayons.
Cheers
Let's see if I understand this right. I'll admit it is a little difficult to follow your post.
1) You have a list widget configured with Layer A. When a user clicks an item in the list it filters Layer B per a matching attribute. Presumably this is done using Message action > Record selection changes > Framework > Filter data records.
2) You want users to be able to click on Layer A in the map widget, and make Layer B filter identical to how the list widget behaves.
In that case, you need to set up another action on the map widget. Whenever you click a feature in the map it makes a selection, so you can use Message action > Record selection changes > Framework > Filter data records the same way the list widget is configured. This should trigger Layer B to filter based on matching attribute when a user clicks on Layer A in the map widget.
Thank you M.
The more i play in this environment, the more my question looks like it should have been written in crayon. I'll try better this time around. Ill use a limited scope so i dont get lost in the weeds.
Not sure it matters, but we're using 11.3.
Layer A which feeds a list contains 2 records. Relationship id's are 1 and 2
Layer B has 3 records. One record has ID=1 and two records have ID=2
If i click the list item ID=1, then the map filters and shows me the record with ID=1
The desire is to be able to click the object on the map that has ID=2. But i cant because that data is not there, because of the ID=1 list click. I would like it to function just as the list did. I can click on the list to get ID=2, and that works. But i need the map click to function as the list click. I mentioned what version im on, because ive been reading everything i can get my hands on, and some suggestions provide a solution for setting options in the map to select the LIST as a trigger. But i dont see this option and i strongly suspect its not available in 11.3. I cant make heads or tails from the esri documentation... so i spend my time out in the wild.
I hope that was more clear.
ty
Only one list which is fed my Layer_A. Layer_A has a relationship attribute shared with Layer_B, which Layer_B is the layer assigned to the map. Clicking list/layer_a item with ID=1 should zoom to map/Layer_B records with ID=1. This happens now.. all good. But then the desire is to click an object on the map that does not have ID=1, but it happens to be ID=2. I need that click to have the same effect as clicking on the lists item with ID=2. But as i stated, items not having ID=1 are not available because they have been filtered to only show ID=1. Somehow i need the map click to trigger a filter on an unfiltered Layer_B
If you set the list (Layer A) to filter a feature layer (Layer B) by matching ID=1, then you will not be able to click features in Layer B with ID=2 because they have been filtered out of the map. You would have to clear the list selection (e.g. click the selected record in the list again to unselect) to unfilter Layer B.
The real problem might be this. Assume no filters are set in the list (Layer A). I could not find a way to click a feature in Layer B and trigger a filter on itself for all features with matching ID. When you set a layer to filter itself you cannot choose a field for matching attributes.
I did get the list (Layer A) to select matching ID by clicking Layer B in the map, but it did not then trigger a filter on Layer B.
Perhaps mastermind @Ke_Xu knows of a method to achieve this! Is there a way to configure a map widget layer to filter itself for other features with matching field attributes?