Hi,
SmartGwt 4.1p Power build 2014-10-29.
I have a grid where I want to have the SmartGwt server calculate the grid summaries.
To avoid create a separate datasource or a separate operationId for the summary query, I would like to reuse the grids datasource and set the summary functions on the client side as dynamic requested summaries as described in the docs. (http://www.smartclient.com/smartgwte...Summaries.html)
I have the following code:
The main fetch is successfully executed, but the summary fetch never returns and times out.
The contents of the summary DSRequest is:
Notice that summaryFunctions in empty in the request.
Is this the correct way to set server side summary functions on the client side?
If I remove the summaryFunctions from the request properties the summary query works. (Although with the incorrect summary of course)
Regards
Rolf
SmartGwt 4.1p Power build 2014-10-29.
I have a grid where I want to have the SmartGwt server calculate the grid summaries.
To avoid create a separate datasource or a separate operationId for the summary query, I would like to reuse the grids datasource and set the summary functions on the client side as dynamic requested summaries as described in the docs. (http://www.smartclient.com/smartgwte...Summaries.html)
I have the following code:
Code:
ListGrid grid = new ListGrid();
grid.setDataSource(DataSource.get("portlet_contractor_bingo_financial_reporting"));
grid.setWidth100();
grid.setHeight(150);
grid.setAutoFetchData(true);
grid.setSummaryRowDataSource(DataSource.get("portlet_contractor_bingo_financial_reporting"));
grid.setShowGridSummary(true);
DSRequest prop = new DSRequest();
Map<String, SummaryFunctionType> functions = new HashMap<String, SummaryFunctionType>();
functions.put("lottery_id",SummaryFunctionType.COUNT);
prop.setSummaryFunctions(functions);
grid.setSummaryRowFetchRequestProperties(prop);
The contents of the summary DSRequest is:
Code:
{
"actionURL":"http://127.0.0.1:8888/lotteriregister/sc/IDACall",
"showPrompt":false,
"prompt":"Finner rader som passer kriteriene...",
"transport":"xmlHttpRequest",
"promptStyle":"cursor",
"bypassCache":true,
"data":{
"criteria":{
},
"operationConfig":{
"dataSource":"portlet_contractor_bingo_financial_reporting",
"repo":null,
"operationType":"fetch",
"textMatchStyle":"substring"
},
"startRow":0,
"endRow":1,
"componentId":"isc_ListGrid_1_summaryRow",
"summaryFunctions":{
},
"appID":"builtinApplication",
"operation":"portlet_contractor_bingo_financial_reporting_fetch",
"oldValues":{
}
}
}
Is this the correct way to set server side summary functions on the client side?
If I remove the summaryFunctions from the request properties the summary query works. (Although with the incorrect summary of course)
Regards
Rolf