Hi,
I've a form that is bound to data source and it works ok. The problem is that I've also TreeGrid (loads on demand) and its data source needs to send to the server several fields of the form every time a node is expanded (so that the server knows a bit of the context to send the information back to the user).
So you get:
- a DynamicForm A with a DataSource A
- a TreeGrid B with a DataSource B but that also needs to send some fields of the DynamicForm A each time a node is expanded.
In the Javadocs there is a method (setDefaultParams) that does just this for normal params. I'd need to bind components.
Do you know if this is possible in a clean way
Thanks in advance. Another way would be to use events to get the component values and send them somehow in the datasource, but I think this is my lack of knowledge of SmartGWT. There must be a cleaner way.
Best regards,
Juan
I've a form that is bound to data source and it works ok. The problem is that I've also TreeGrid (loads on demand) and its data source needs to send to the server several fields of the form every time a node is expanded (so that the server knows a bit of the context to send the information back to the user).
So you get:
- a DynamicForm A with a DataSource A
- a TreeGrid B with a DataSource B but that also needs to send some fields of the DynamicForm A each time a node is expanded.
In the Javadocs there is a method (setDefaultParams) that does just this for normal params. I'd need to bind components.
Do you know if this is possible in a clean way
Thanks in advance. Another way would be to use events to get the component values and send them somehow in the datasource, but I think this is my lack of knowledge of SmartGWT. There must be a cleaner way.
Best regards,
Juan
Comment