AnsweredAssumed Answered

How do I write a selection (only text attributes) into a database table?

Question asked by tobias.bruehlmeier on Mar 27, 2015
Latest reply on Mar 30, 2015 by tobias.bruehlmeier

Hi all,

 

I'm relatively new to the JavaScript API. I'm looking for help with a, I guess, quite simple case.

 

This is what I have so far:

A JavaScript API based application, with a FeatureLayer showing some sites, represented as point objects.

The FeatureLayer is defined in ArcMap as a Query Layer; data is fed by the database table SITES with numeric LON and LAT coordinates; points are displayed as XY Data from these LON and LAT coordinates.

 

This is what the application is supposed to do:

When a user selects one or several sites (with mouse click), the OBJECT_ID of the selected objects and the USER_ID of the actual user must be written in another database table called SITES_USERSELECTION. This table has only two attributes USER_ID and OBJECT_ID, defined as compound primary key. No spatial attributes are required.

I know already how to extract the USER_ID and OBJECT_ID from my data.

 

This is where I'm stuck:

How can I write my selection into my database table SITES_USERSELECTION? Any hints?

 

Thanks in advance for your help!

 

Regards,

Tobias

Outcomes