lmatteis/apejs

"param" is not defined

Closed this issue · 2 comments

Hi Imatteis,

First, thanks for your good work!.
I am trying to use Javascript on Google App Engine, using apejs.
Most of them work fine, except filtering.

I did test on your code, when I tried to "Filtering and sorting" /test
It shows:

HTTP ERROR 500

Problem accessing /filter. Reason:

    ReferenceError: "param" is not defined. (main.js#56)
Caused by:

org.mozilla.javascript.EcmaError: ReferenceError: "param" is not defined. (main.js#55)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3785)
    at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3763)
    ....
    ....

Then I removed "param" usage and get data from query (3rd parameter) instead.
The error messages gone, but It doesn't work anyway, there is no data come out!

Then I tried to figured out by look into select.js file
I found that there is no functionality for select("person").find({age:"10"}) and no way to define operator like find("age", "<", "10") on select.js

Am I missing something? Please help me, if this works, it will save me a ton of times.
Thank you

Hi there. Yes select.js doesn't implement sorting yet. You can use googlestore.js (some documentation on the README) to do anything that datastore can.

Ok, thank you!