Editing related tables N:M relationship Javascript API

1205
3
11-11-2014 07:21 AM
AdrianaPaese
Occasional Contributor

Hello

Has anyone been able to program a functionality to edit related tables (with many to many relationships) with the Javascript API?

Thank you in advance

Adriana

0 Kudos
3 Replies
AkshayHarshe
Esri Contributor

Hi Adriana,

I am not sure if you have had a chance to look at following sample:

Query and edit related records | ArcGIS API for JavaScript

See if this is something you are looking for. The sample uses one feature layer and saves multiple records for layer when you hit like button in InfoWindow.

This looks like has one to many relationship. I am not sure what is your use case.

Thanks

Akshay Harshe

Esri Technical Support

Thanks,
Akshay Harshe
AdrianaPaese
Occasional Contributor

Hi Akshay

Yes I have looked at this sample.

It seems to be a 1:M relationship.

The N:M relationship has an intermediate table that is populated with the

object ids of the two tables in the relationship. I havent found a sample

for that. Do you know any?

Thank you so much Adriana

Em terça-feira, 11 de novembro de 2014, Akshay Harshe <geonet@esri.com>

escreveu:

GeoNet

<http://jiveon.jivesoftware.com/wf/click?upn=Dg1s4x8le7Lmxv8KWGaqo8h7SGfRSMkw-2FpvHGF9-2FW3rK-2Bvs1kL9-2FnG6jjf2NZhrLDz0M-2BrY-2By9IaziQEKVk3Hg-3D-3D_J7AoJSzeBBaW1fmCkFTRlSmrjxPHw32yuxQ-2FH-2FUTzuTqSIvvf5Q7Wf6z30rO8qIgs7OykeoSwGlZaw-2FtyGTkED-2By-2Bg2EO-2BTdTqJq7OC1py1lYz3ICeYgkFS3tBWbAfS8O39yo0yWlBIPRsMWiukx-2B32BnhY2aFqCaxqxlAawNgh-2BOKiE-2BcxEMpmL7Mru5bthOuv74jyorbDfAnpniL4F8z-2BHu8dc8TNaJuYDNKbd-2FaVPPRtsZrbBBI2ppj2-2BNz5SwClQlQuo0shscYj27eYtgSeAAsdz4iuTB54yikSh6pXaQsS-2FqkO-2FkHSt1ERuyjcU> Editing

related tables N:M relationship Javascript API

reply from Akshay Harshe

<http://jiveon.jivesoftware.com/wf/click?upn=Dg1s4x8le7Lmxv8KWGaqo7A4BXwO9PY1WvQ5cXCtK4-2FIKAt2h7Bh2aMph4jGL3Kp-2BD5nW4JGVrxgXuE7SPT8AUe-2BX2unAJvoUl4y2OQRPUg-3D_J7AoJSzeBBaW1fmCkFTRlSmrjxPHw32yuxQ-2FH-2FUTzuTqSIvvf5Q7Wf6z30rO8qIgs7OykeoSwGlZaw-2FtyGTkED-2By-2Bg2EO-2BTdTqJq7OC1py1lYz3ICeYgkFS3tBWbAfS8Pagb-2BTnMOuC-2F7Bv7fkcRwTeKpXm0eOWjO0Yrh0yOiWnwnd0HCXitYL8q-2BPEY3zBGLJTBW8GJD6d1UUHWp-2B7KIoHEwq1YYhqZVJIc-2BnbguzRXlyjbUOeD-2BUurgfLnjBvKB910ipiu6CEyN-2Ft-2BQHW3sTxluB0XAmutWwVkmADEvEZWSfbOM-2FI4IbMbigxOn9ab>

in ArcGIS API for JavaScript - View the full discussion

<http://jiveon.jivesoftware.com/wf/click?upn=Dg1s4x8le7Lmxv8KWGaqo0VQjeJBYpG9HGC8QZBT-2FEy-2BZD9dkZVM-2BiC8Dd2ebeQT2sxOy0OIltulYKz95uQbPVtu7sSQJyyG2SgGWFxGSb0-3D_J7AoJSzeBBaW1fmCkFTRlSmrjxPHw32yuxQ-2FH-2FUTzuTqSIvvf5Q7Wf6z30rO8qIgs7OykeoSwGlZaw-2FtyGTkED-2By-2Bg2EO-2BTdTqJq7OC1py1lYz3ICeYgkFS3tBWbAfS8tOdJW6vZLvOJSw4J1e0fPxPYImSYNZ0DUcDJh6-2FtGOChpwq2VrY2bd-2FYUVWa1y-2FMwlnOIJXmpPv-2Fub7tQ5FW9qJ4Y1p9XSg0TxUur-2BMXW902S4HeOKYOOt3Onaur1pMCi6V-2FA6yBIxBGOJHVNPS5QgPd-2BCIrCPZCuzlXBzi6QuqKFpvtIwm9hnCKLeK2HOPo>

0 Kudos
AkshayHarshe
Esri Contributor

Unfortunately, There isn't a direct sample that will demonstrate M:M relationships. But since you can have multiple related tables to one service this looks like it can be doable.

What is exactly your workflow? If you can even explain in simple terms what functionality you want to achieve, I will try my best to help you with that.

Thanks

Akshay

Thanks,
Akshay Harshe