Hello,
Thanks for the code. Below some code to add a new record to the related table. Is this the right way to do that?
//open data of new record in attInspector
dojo.connect(table, 'onEditsComplete', function(addResults, updateResults, deleteResults){
if (addResults[0] != null) {
console.log(addResults[0].objectId + " new record objectid");
var query = new esri.tasks.Query();
query.where = "ObjectID =" + addResults[0].objectId;
table.selectFeatures(query, esri.layers.FeatureLayer.SELECTION_NEW, function(features){
console.log(features);
attInspector.refresh();
});
}
});
//add new record to the table by related field Puntnummer
var melding = {
attributes: {
Puntnummer: '176-04',
TijdstipMelding: new Date().getTime()
}
};
table.applyEdits([melding], null, null);
Marco