简体   繁体   中英

How to get objects from worklight JSONStore where value of specific attribute attribute is null or empty

How can I get all the objects from JSONSTore where the value of specified attribute is null. I have tried to specify the value of attribute as empty or null but not able to get the result. I have to implement the below SQL query in IBM Worklight to get data from JSONStore.

select * from employee where age IS NULL

Make sure you have something like this in your search fields: {value: 'string'} .

Then add data like this: WL.JSONStore.get('collection').add({value: 'NULL'}) .

Then search for it like this: WL.JSONStore.get('collection').find({value: 'NULL'}) .

It is not currently possible to search for things that are not string , integer , number or boolean . Notice that 'NULL' is a string in my examples above.

Feature requests here .

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