Hi everyone,
I'm trying to automatically update a date field with Date.now() value using the Edit widget with some changes.
What ever I do, it does not update the field.
Can someone tell me what's wrong with my code?
this.editor = new Editor(params, this.editDiv);
this.editor.startup();
var feature;
var attInspector = this.editor.attributeInspector;
attInspector.showObjectID = false;
var theMap = this.editor.settings.map;
var saveButton = new dijit.form.Button({label:"שלח","class":"saveButton"});
dojo.place(saveButton.domNode, attInspector.deleteBtn.domNode, "before");
saveButton.on("click", function(evt) {
if (feature == null)
alert("Pleae enter values");
else {
if (feature.attributes["description"] == null) {