Hello,
I’m new on xpages…
I have an xpage who stores customers informations (name, adress, phone…)
Each customer has a sequential number stores in number field.
myview is the view of customers documents.
In my xpage i write in event → datas → document → querysavedocument something like :
var v=database.getview(“myview”)
var doc=v.getlastdocument
var num=doc.getitemvalue(“number”)
num=num+1
document.replaceItemValue(“Number”,num)
when i submit my xpage, selected option is display the same xpage then number field is not refreshed and new value is not display.
Have you a solution to display new value stored in background document ?
Best regards