Createdatasource as shared datasource on forms
Posted: Thu Feb 23, 2017 5:37 pm
Hi,
I have a dynamically generated dataset from which i create a datasource using the dataset.createDataSource() method
(no way to know on forehand which fields the dataset will contain)
Then, I assign this datasource to two seperate forms, no problem.
On the first form :
and for the second form :
But when performing a foundset.newRecord() in one form, the other one's foundSet is not updated.
How can I make sure that both forms use the same datasource/foundset ?
Thx
I have a dynamically generated dataset from which i create a datasource using the dataset.createDataSource() method
(no way to know on forehand which fields the dataset will contain)
Then, I assign this datasource to two seperate forms, no problem.
On the first form :
- Code: Select all
form.dataSource = dataset.createDataSource()
and for the second form :
- Code: Select all
solutionModel.getForm('second_form").dataSource = solutionModel.getForm('first_form).dataSource;
But when performing a foundset.newRecord() in one form, the other one's foundSet is not updated.
How can I make sure that both forms use the same datasource/foundset ?
Thx