Hi,
I’m developing my first webOS app.
I create this kind:
parameters: {
id: ‘kind1’,
owner: ‘xxxxx’,
private: true,
indexes: [{name: ‘hash’,props: [{ name: ‘hash’ }],},{name: ‘group’,props: [{ name: ‘group’ }],},{name: ‘html’,props: [{ name: ‘html’ }],},],
and I can store objects correctly, but, when I try to find an object on a real device (on Simulator works fine) I always obtain error -3965.
My query is:
method: ‘find’,
parameters: {
query: {
from: ‘kind1’,
where: [{ prop: ‘hash’, op: ‘=’, val: hashValue }, { prop: ‘group’, op: ‘=’, val: groupValue }],
},
}
-3965 error description says: “The SELECT query contains field name(s) that do not exist for the selected kind.” I only use “hash” and “group” field names in my query and both exist. I’m confused.
I use another kind and I have no problems to create, put o find objects but my query only has one WhereClause object (where: [{ prop: ‘idLG’, op: ‘=’, val: idLG }],)
I appreciated any help.
Thanks.