Stack : SmartGWT v2.4, GWT sdk 2.1 Mozilla 3.6
I am fairly new to Smart GWT, but have so far got the ListGrid component working. Our requirement is to show additional details of the record selected in the ListGrid.
Scenario: ListGrid -->select record --> send request to server to fetch details of the record --> show details of this fetched record as readonly
Question:
1. What is the best approach to send HTTP GET request and rendering the JSON response.
2. We considered using DetailsViewer and Dynamic form. Though DetailsViewer.setData(...) works when we pass the current selected ListGrid record, we want to get more details that is not held in the ListGrid row.
Tried setting a RestDatasource for detailsViewer, it doesnt show the fetched record in detailsViewer, although we can verify from firebug that the request from datasource.fetchData() is hitting the server(running a java spring MVC application and returns JSON).
Can you please help what is the best possible approach to retreive JSON data for a record detail from server and show it in a form as read only?
Thanks
Sandeep
PS:
We are evaluating SmartGWT and will adopt pro version if it fits these common requirements.
I am fairly new to Smart GWT, but have so far got the ListGrid component working. Our requirement is to show additional details of the record selected in the ListGrid.
Scenario: ListGrid -->select record --> send request to server to fetch details of the record --> show details of this fetched record as readonly
Question:
1. What is the best approach to send HTTP GET request and rendering the JSON response.
2. We considered using DetailsViewer and Dynamic form. Though DetailsViewer.setData(...) works when we pass the current selected ListGrid record, we want to get more details that is not held in the ListGrid row.
Tried setting a RestDatasource for detailsViewer, it doesnt show the fetched record in detailsViewer, although we can verify from firebug that the request from datasource.fetchData() is hitting the server(running a java spring MVC application and returns JSON).
Can you please help what is the best possible approach to retreive JSON data for a record detail from server and show it in a form as read only?
Thanks
Sandeep
PS:
We are evaluating SmartGWT and will adopt pro version if it fits these common requirements.
Comment