Select to view content in your preferred language

Experience Builder > Map Widget > Action > Record selection changes > Framework > Select data records fails with apostrophe

1712
3
Jump to solution
12-10-2021 04:37 PM
Labels (1)
RDIApps
Emerging Contributor

I am working in Experience Builder through ArcGIS Online and have found what I think to be a bug. 

I have a map widget and a series of associated widgets (text, image, etc.) that populate based on a point feature selection. Those are all set up using dynamic expressions and work well. I also have a polygon layer that I need to use to populate those same associated widgets if a general area is selected by the user instead of a specific point.

I've done this by creating matching records in the point feature that correspond to the polygon attributes - yes, it's clunky but there are only 5 records that are completely static. Then, in ExB, I've added an Action to the map. The trigger is "Record selection changes", the action target is "Framework", and the action is "Select data records." My trigger data is the polygon layer and the action data is the point layer. The trigger field is the name match in the polygon data and the action field is the name match in the point data.

This way, when I click on a polygon in the map, ExB finds the matching point record and displays its attributes in the associated text and image widgets. Four out of my 5 polygons work great, exactly as expected. One fails to find a match.

It seems that the apostrophe in the fifth name is causing the failure. If I remove the apostrophe, that item works fine, and if I add an apostrophe to any of the others they then fail as well.

Note that other special characters seem to work fine - I have an ampersand "&", parentheses "()" and a circumflex x "x̂" that all work as they should through the framework selection. And apostrophes don't seem to be a problem elsewhere in the app (filters, lists, etc.), just here.

Any thoughts?

My workaround ended up being creating a extra field in each dataset whose contents wouldn't be displayed anywhere and using that for the trigger and action fields. In that field, I removed the apostrophe from the name. 

0 Kudos
1 Solution

Accepted Solutions
SaraJK
by
Frequent Contributor

I am still experiencing this with the Feature Info widget. When a feature is selected on the map or from a list and it has an apostrophe in it's name, the feature info widget does not change to the selected feature. Thoughts?

View solution in original post

0 Kudos
3 Replies
ShengdiZhang
Esri Regular Contributor

Hi @RDIApps ,

Thank you for pointing this out. I can reproduce your issue and we'll look into it.

Regards,

Shengdi

0 Kudos
TonghuiMing
Esri Regular Contributor

@RDIApps This has been fixed with the latest 2023 October release. Please let us know if you encounter any other issues.

0 Kudos
SaraJK
by
Frequent Contributor

I am still experiencing this with the Feature Info widget. When a feature is selected on the map or from a list and it has an apostrophe in it's name, the feature info widget does not change to the selected feature. Thoughts?

0 Kudos