If you are required to develop in a development environment before going to production, then the below might be helpful if you need to use another database for your datasource where there is a copyreplica of this in your development environment and production environment. var curServer ...
When you populate a field on an Xpage programmatically (i.e through an onclick event of a button), you will need to directly update the datasource field on the backend in order to keep the two values in sync. The reason for doing this is because the JSP lifecycle updates the backend datasource ...