Here you have my Environment Details:
* Eclipse 3.7.2
* Google Plugin for Eclipse 2.5.2
* Google Web Toolkit SDK 2.4.0
* Browser: Chromium 18.0.1025.162
The issue related to the 2 requests for triggered by a single fetchData() is still present in SmartGWT.mobile 1.0 (downloaded on 2012-04-19)
Here you have my sample code:
Code:
final Panel panel = new ScrollablePanel(panelName); DataSource ds = new DataSource(); ds.setTitleField("name"); ds.addField(new DataSourceField("name", "string")); ds.setDataURL("products.json"); final TableView tv = new TableView(); tv.setDataPageSize(50); tv.setDataSource(ds); panel.addMember(tv); tv.fetchData();
Code:
{ "response": { "startRow": 0, "endRow": 4, "totalRows": 5, "data": [{ "id": "0DC5C5281B3643DEAB978EB04139516B", "name": "Orange Juice bio", }, { "id": "20EA4222B741434A9203471A3B29C343", "name": "Vino Blanco 0,75L", }, { "id": "20FBF069AC804DE9BF16670000B9562E", "name": "Cherry Cola", }, { "id": "2A81EB0F5C4F40F6A6E04A938F8DCFF9", "name": "Office Rental", }, { "id": "34560A057833457D962F7A573F76F5BB", "name": "Ale Beer", }], "status": 0 } }
Thanks,
Ivan
Leave a comment: