JSON Store未在Android中为最新版本修订包7.1.0.00.20160919-1656创建

时间:2016-09-29 10:16:15

标签: ibm-mobilefirst jsonstore

以下示例代码在Android上的最新修补程序中无效,但如果我们从选项中删除密码字段,那么它的工作正常。我们在Android上遇到错误,但它在IOS上工作正常

  

{" SRC":" initCollection""犯错" - 3" MSG":" INVALID_KEY_ON_PROVISION&#34 ;," COL":"人"" USR":"测试""文档":{}, " RES":{}}

function wlCommonInit(){
    /*
     * Use of WL.Client.connect() API before any connectivity to a MobileFirst Server is required. 
     * This API should be called only once, before any other WL.Client methods that communicate with the MobileFirst Server.
     * Don't forget to specify and implement onSuccess and onFailure callback functions for WL.Client.connect(), e.g:
     *    
     *    WL.Client.connect({
     *          onSuccess: onConnectSuccess,
     *          onFailure: onConnectFailure
     *    });
     *     
     */

    // Common initialization code goes here

}


function onClick(){
    alert("Click");
    var collectionName = 'people';

    // Object that defines all the collections.
    var collections = {

      // Object that defines the 'people' collection.
      people : {

        // Object that defines the Search Fields for the 'people' collection.
        searchFields : {name: 'string', age: 'integer'}
      }
    };

    // Optional options object.
    var options = {

       username:"test",
      // Optional password, default no passw`enter code here`ord.
      password : '123',

    };

    WL.JSONStore.init(collections, options)

    .then(function () {
        alert("Success in jstore");
    })



    .fail(function (errorObject) {
       // Handle failure for any of the previous JSONStore operations (init, add).
        alert("Failure in jstore : "+ JSON.stringify(errorObject));
    });
};

1 个答案:

答案 0 :(得分:1)

更新:iFix现已发布。内部版本号为7.1.0.0-IF201610060540。

这是最新的iFix的已知问题。它最近已经修复,很快就会推出。

请关注IBM Fix Central网站上的新版iFix,以解决此问题。