Esri / solutions-components

A collection of UI components for constructing webapps.
Apache License 2.0
16 stars 7 forks source link

Type error on clicking comment button #810

Closed skrishn closed 6 days ago

skrishn commented 2 months ago

Describe the bug

Layer has two tables related to it, when I create an app with both the tables it works.

When I remove one of the tables, i.e; the first table, and create an app, I get this console error

image

When I remove the second table, the app works.

Expected Behavior

App should work when it has multiple related tables and in this case it considers the first table, but even when one is removed it should work.

Reproduction Steps & Sample

Both tables in the app https://localdeployment.maps.arcgis.com/apps/instant/reporter/index.html?appid=d270b35efc394118ba4c0bf0c1e6c1a2

One table is removed with error https://localdeployment.maps.arcgis.com/apps/instant/reporter/index.html?appid=f457244d79de418a92dd0d519b17a651

Second table is removed and it works

https://localdeployment.maps.arcgis.com/apps/instant/reporter/index.html?appid=98be6752135143c4866fe38386e6719b

@sumitzarkar I'll share the creds separately.

Other Relevant Info

No response

sumitzarkar commented 2 months ago

@skrishn

We analyzed this ticket and here are our findings:

Please let us know if any changes are required to this

jlindemann commented 2 months ago

We have a relationship with two tables related to one feature layer. It seems that both these tables need to be in the webmap in order for the app to work. We likely will not want the other table to be shared so would be ideal if we could have just the one layer in the map.

skrishn commented 2 months ago

@sumitzarkar per Jer's comment, the layer has two related table and if one is removed i.e; the first one from the map, can we use the second table from the map to use as a comment table?

sumitzarkar commented 2 months ago

@skrishn

Please let us know your thoughts on this

skrishn commented 2 months ago

@sumitzarkar Yes, I remember it takes the first table when there are multiple tables, and with more solutions adopting reporter, we may encounter this scenario a lot. So, to accommodate the needs, let's go ahead with the implementation. In case it takes a high-effort, we can move it to the next. So, please keep me posted.

cc @jlindemann

sumitzarkar commented 1 month ago

@skrishn


Cause

Items Is required Status Comments
Required NLS changes? No
Required Backward compatibility No
Required 508 No
Need Sanitize? No

Impact Analysis Report

Impacted Areas Comments
Have Configuration changes? No
Have Runtime changes? Yes
Impact on RTL No
Impact while adding comment If first related table is deleted from the map then use the another table for adding and showing comments
Check with different combimantions for related tables and if removed from the map.