TS version - 7.1.Browser - present in both FF and IE. Not tested in chrome.I am having a strange problem which I am not being able to wrap my head around. I have a DCR text field which holds a date. Its a simple text field, not hidden, not readonly.. but it is not holding a value which I am writing to it using IWDatacapture.getItem("....").setValue(). I am trying to set a date string like "yyyy-mm-dd hh:mm:ss" in a presave handler. But when I open the DCR xml later in an editor after saving, the field is not holding anything. I have debugged the entire save event in a javascript debugger right uptil the form closes, and watched the field in a watch list. It is holding the value I have set as long as the datacapture.cfg is in the context of the debugger. But after save done, I open the dcr xml in an editor, and the value I set is not there.I would be extremely grateful if someone could provide me any insight on what exactly might be happening here. The datacapture.cfg is client property so I cant share, but if anyone wants a code snippet or anything I canry and share it.Thanks for your help.
If Boris' answer doesn't lead to the solution (though it is likely to do so) - when you save the DCR, before you go to edit it again - take a look at the DCR in a regular text-editor and see if the value is there.
I should take a break.. I am glad the weekend is coming up.I was working on a pre-written handler which also does some work on the DCR EAs, and was stupid enough to miss the fact that the handler used is being triggered by onSavedone. In fact it didn't even occur to me to check the event until Boris pointed it out. I created a new handler with onsave, moved my code there, and problem solved.Thank you so much Boris for the pointer.. and also Ghoti for chipping in. I keep on learning..
[...] the handler used is being triggered by onSavedone. [...] I created a new handler with onsave[...]