I have a feature layer of points whose only attribute is an ID that matches up to a table of data. How can I perform a "join" on the client side using the esri javascript api 4.x version so that the attributes from the corresponding table row exist in the feature layer and I can set definition expressions and use the attributes in popups.
Jack,
Look here:
https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#JoinTableDataSource
Sample:
MapImageLayer - dynamic data layer with table join | ArcGIS API for JavaScript 4.6
Sounds like you are unfamiliar with dynamic workspaces.
The table must exist in a registered dynamic workspace in your Map Server.
Enabling dynamic layers on a map service in ArcGIS Desktop—Documentation | ArcGIS Enterprise
Do you happen to know where I can find the 'workspaceId' and 'dataSourceName' properties to use in this solution? I can't seem to find them through the ArcGIS Server Manager.
This looks amazing. Thank you so much for the pointer Robert. I'll give it a shot and post back with my experience.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.