xpageslotus-notesssjs

After validation error document.setValue("value") doesn´t work anymore


I have a document datasource on my Xpage to which I bound fields. Some are required. When I save the datasource and have validation errors the code below doesn´t work anymore on a partial refresh.

document.setValue("key","value");

This is my partial refresh call:

XSP.partialRefreshGet('#{id:refreshContactInfos}', {params: { 'reference': this.value, 'disableValidation':true}});

Within the div with id="refreshContactInfos" I have an hidden field which should set values of fields to populate them.

Any suggestions?


Solution

  • Changing the XSP.partialRefreshGet to XSP.partialRefreshPost worked for me.

    XSP.partialRefreshPost('#{id:refreshContactInfos}', {params: { 'reference': this.value, 'disableValidation':true}});