Hi all,
I've a design question about Datasources.
First of all , because I've no any experience with Smartgwtee and hibernate (Spring,Beans) together. I think it's more difficult, I tried to use sql type datasources.
Now My Case :
I have main panel which contains 2 base component :
1. DynamicForm for searching Customer (for example)
2. Customer's ListGrit as a search result.
3. Between DynamicForm and ListGrit I have ToolStrip componect which contains 3 buttons :
A) Add New Customer.
B) Modify Customer.
C) Delete Customer.
I want to add/edit Customer by new Window, which contains DynamicForm for Customer's properties : name, lastname, age ans so on. But Customer has more than one Phone number. In this case it tried to use another datasource for it, but I use client only datasource because i want to save all information together Customer and phones.
I found some examples about master-detail datasources but it couldn't help me.
Also I want to show you my code snippets and screenshots:
Screenshot and code is attached.
1. Main Panel :
2. Dialog For Customer (Screenshot and code is attached)
3. And Dialog for adding/modifying phones (Screenshot and code is attached)
4. Customers Datasourc XML file
5. And at last DMI Class for saving Customer
How I can pass Phone parameters or something like that ?
Sorry for my so large example.
I'm not native english speker and sorry for my mistakes.
Any Idea will be appreciated.
Regards,
Paata Lominadze.
I've a design question about Datasources.
First of all , because I've no any experience with Smartgwtee and hibernate (Spring,Beans) together. I think it's more difficult, I tried to use sql type datasources.
Now My Case :
I have main panel which contains 2 base component :
1. DynamicForm for searching Customer (for example)
2. Customer's ListGrit as a search result.
3. Between DynamicForm and ListGrit I have ToolStrip componect which contains 3 buttons :
A) Add New Customer.
B) Modify Customer.
C) Delete Customer.
I want to add/edit Customer by new Window, which contains DynamicForm for Customer's properties : name, lastname, age ans so on. But Customer has more than one Phone number. In this case it tried to use another datasource for it, but I use client only datasource because i want to save all information together Customer and phones.
I found some examples about master-detail datasources but it couldn't help me.
Also I want to show you my code snippets and screenshots:
Screenshot and code is attached.
1. Main Panel :
2. Dialog For Customer (Screenshot and code is attached)
3. And Dialog for adding/modifying phones (Screenshot and code is attached)
4. Customers Datasourc XML file
5. And at last DMI Class for saving Customer
How I can pass Phone parameters or something like that ?
Sorry for my so large example.
I'm not native english speker and sorry for my mistakes.
Any Idea will be appreciated.
Regards,
Paata Lominadze.
Comment