SKD version android:versionCode="55"
android:versionName="5.0.1"
RestRequest surveyGroupRequest = RestRequest.getRequestForQuery(IConstants.API_VERSION,
SQLApi.SURVEY_GROUP_QUERY);
client.sendAsync(surveyGroupRequest, new RestClient.AsyncRequestCallback());
这个每次从服务器最多返回2000条数据
对于日期格式不能使用like关键字,like关键字只能用于String的查询,在sf中,Data有自己的格式
SELECT Count__c,CreatedById,CreatedDate,Date__c,Id,IsDeleted,LastModifiedById,LastModifiedDate,LastReferencedDate,LastViewedDate FROM Daily_Metric__c WHERE Patient__c = '003R000001GkUofIAF' AND Date__c >= 2017-04-01 AND Date__c <= 2017-04-30
SmartStoreSDKManager 初始化
其中BaseHomeActivity不知道干啥的
LoginActivity指定登陆页面
其中BaseHomeActivity必须是继承了SalesforceActivity
SmartSyncSDKManager.initNative(getApplicationContext(), new NativeKeyImpl(), BaseHomeActivity.class, LoginActivity.class);
如何分页查询
String DAILY_METRICS_QUERY = "SELECT " +
"Count__c," +
"CreatedDate," +
"Date__c," +
"Id," +
"IsDeleted," +
"LastModifiedDate," +
"Latest_Text__c," +
"Latest_Value__c," +
"Medical_Event__c," +
"Name," +//"Day survey from iphone or watch"
"Patient__c " +
" FROM" +
" Daily_Metric__c" +
" WHERE" +
" Patient__c = '%s'" +
" AND" +
" IsDeleted = false " +
" limit 500 offset %d" ;