简体   繁体   中英

IBM worklight WL.JSONStore.QueryPart(). Jsonstore error

when i use an advance search, it shows that WL.JSONStore.QueryPart(). is not a function and it is not recognized as something existent, is it deprecated or i need to use it differently?

var queryPart1 = WL.JSONStore.QueryPart().like('category', 'abc')
var queryPart2 = WL.JSONStore.QueryPart().like('category', 'xyz');

  WL.JSONStore.get('Categories').advancedFind([queryPart1,queryPart2])

   .then(function(results){

                     })

.fail(function(errorObject) {
                        alert("fail" + errorObject); 
                          });   

仅在6.2及更高版本上支持查询部件和advancedFind。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM