Hi,
i'm using a xe:restService and i want to Post a new Document to a Database.
<xe:restService id="restServiceDoc" pathInfo="/doc"
preventDojoStore="true"><br/>
<xe:this.service><br/>
<xe:documentJsonService defaultItems="true" <br/>
compact="#{javascript:context.getUrlParameter('Compact')=='' || context.getUrlParameter('Compact')=='true' }"
contentType="application/json"<br/>
formName="#{javascript:context.getUrlParameter('Form')}">
</xe:documentJsonService><br/>
</xe:this.service><br/>
</xe:restService><br/>
Now when i execute a dojo.xhrPost targeting my REST Service to my JSON:
{"Body":"Body Text Content","Subject":"Test Entry","PostedDate":"2012-04-13T11:21:16Z","TargetDate":"2012-04-25T11:21:16Z"}
The PostedDate will be converted to a NotesDatetime but the TargetDate won't.
Is there a way to enforce a conversion, or better define the Type of a JSON Value when Posting it to the Server?
Thanks in advance