Hello.
I am using a form to edit data from an RPC data source (using setTestData(..)) and it works fine but when I want to submit my pojo to the server, I do:
// here datasource is not the same as fields edited in form
dynamicForm.saveData();
// here datasource should have the new values from form
myDataSource.saveToPojo(); // here I copy from getTestData(); to my pojo's
sendPojosToServer();
But it sends my pojos with the unedited, old values.
But now if I do:
dynamicForm.saveData();
new Timer() {
public void run() {
// here datasource has the new values!!
myDataSource.saveToPojo();
sendPojosToServer();
}
}.schedule(10);
Why when it finishes the call to dynamicForm.saveData(); the changes are not done?