Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

SmartGWT.mobile TableView setFetchOperation setDataPageSize

$
0
0
Configuring a TableView with a fetchOperation (operationId) and dataPageSize correctly fetches first batch of data but fails to include the operationId upon requesting "Load more records..."

Based on the traffic in the log, the fetchOperation is not provided to the server when "Load more records...." is selected by user.

_____________________________________________
1. /builds/SmartGWT.mobile/1.0d/LGPL/2013-12-23

2. Chrome Version 31.0.1650.63 m;
iPhone Safari

Sample Code
===============
Code:

// create table view for the options on this GUI
TableView tableView = new TableView();
tableView.setDataSource("testsource");
tableView.setTitleField("name");
tableView.setShowNavigation(true);                tableView.setSelectionType(SelectionStyle.SINGLE);
tableView.setShowSelectedIcon(false);
tableView.setTableMode(TableMode.GROUPED);
tableView.setFetchOperation("testOperationId");
tableView.setDataPageSize(10);
tableView.setSort(new SortSpecifier("name"));
tableView.setInfoField("address");
tableView.fetchData(null, new DSCallback() {
@Override
public void execute(DSResponse dsResponse, Object rawData, DSRequest dsRequest) {

        }
});

Code:

ServerLogs:
===============
*** Load of Data

=== 2013-12-23 18:47:37,303 [64-4] INFO  RequestContext - URL: '/project/sc/RESTHandler', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36': Safari WITHOUT Accept-Encoding header
Dec 23, 2013 1:47:37 PM com.google.apphosting.utils.jetty.AppEngineAuthentication$AppEngineUserRealm isUserInRole
INFO: Checking if principal test@example.com is in role *
Dec 23, 2013 1:47:37 PM com.google.apphosting.utils.jetty.AppEngineAuthentication$AppEngineUserRealm isUserInRole
INFO: Checking if principal test@example.com is in role admin
=== 2013-12-23 18:47:37,304 [64-4] DEBUG RestRequestParser - Parameter:'_sortBy'. Value:'name'.
=== 2013-12-23 18:47:37,304 [64-4] DEBUG RestRequestParser - Parameter:'_operationType'. Value:'fetch'.
=== 2013-12-23 18:47:37,304 [64-4] DEBUG RestRequestParser - Parameter:'isc_dataFormat'. Value:'json'.
=== 2013-12-23 18:47:37,304 [64-4] DEBUG RestRequestParser - Parameter:'_startRow'. Value:'0'.
=== 2013-12-23 18:47:37,304 [64-4] DEBUG RestRequestParser - Parameter:'_endRow'. Value:'10'.
=== 2013-12-23 18:47:37,305 [64-4] DEBUG RestRequestParser - Parameter:'_useStrictJSON'. Value:'true'.
=== 2013-12-23 18:47:37,305 [64-4] DEBUG RestRequestParser - Parameter:'_dataSource'. Value:'test'.
=== 2013-12-23 18:47:37,305 [64-4] DEBUG RestRequestParser - Parameter:'_textMatchStyle'. Value:'exact'.
=== 2013-12-23 18:47:37,305 [64-4] DEBUG RestRequestParser - Parameter:'isc_metaDataPrefix'. Value:'_'.
=== 2013-12-23 18:47:37,305 [64-4] DEBUG RestRequestParser - Parameter:'_operationId'. Value:'testOperationId'.
=== 2013-12-23 18:47:37,310 [64-4] DEBUG DSRequest - Caching instance 51 of DS test from DSRequest.getDataSource()
=== 2013-12-23 18:47:37,310 [64-4] INFO  RESTHandler - Performing 1 operation(s)

*** After clicking "Load more Records..."

=== 2013-12-23 18:47:40,071 [64-4] INFO  RequestContext - URL: '/project/sc/RESTHandler', User-Agent: 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36': Safari WITHOUT Accept-Encoding header
=== 2013-12-23 18:47:40,073 [64-4] DEBUG RestRequestParser - Parameter:'_sortBy'. Value:'name'.
=== 2013-12-23 18:47:40,073 [64-4] DEBUG RestRequestParser - Parameter:'_operationType'. Value:'fetch'.
=== 2013-12-23 18:47:40,073 [64-4] DEBUG RestRequestParser - Parameter:'isc_dataFormat'. Value:'json'.
=== 2013-12-23 18:47:40,073 [64-4] DEBUG RestRequestParser - Parameter:'_startRow'. Value:'10'.
=== 2013-12-23 18:47:40,073 [64-4] DEBUG RestRequestParser - Parameter:'_endRow'. Value:'20'.
=== 2013-12-23 18:47:40,073 [64-4] DEBUG RestRequestParser - Parameter:'_useStrictJSON'. Value:'true'.
=== 2013-12-23 18:47:40,074 [64-4] DEBUG RestRequestParser - Parameter:'_dataSource'. Value:'test'.
=== 2013-12-23 18:47:40,074 [64-4] DEBUG RestRequestParser - Parameter:'isc_metaDataPrefix'. Value:'_'.
=== 2013-12-23 18:47:40,078 [64-4] DEBUG DSRequest - Caching instance 52 of DS test from DSRequest.getDataSource()
=== 2013-12-23 18:47:40,078 [64-4] INFO  RESTHandler - Performing 1 operation(s)
=== 2013-12-23 18:47:40,079 [64-4] DEBUG DeclarativeSecurity - Processing security checks for DataSource null, field null


Attached Files
File Type: txt serverLog.txt (3.5 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles