Page 2 of 3

Combine multiple where clauses referencing component values

Posted: Sat Aug 10, 2013 7:51 pm
by vipul

My problem is that i am not able to pass current date in the Date column. Is there any way (may be with the use of datepicker) to get current date(todays date).


Combine multiple where clauses referencing component values

Posted: Sun Aug 11, 2013 3:57 am
by maxkatz

To get today's date, you can run a basic JavaScript. Is that what you are asking?


Combine multiple where clauses referencing component values

Posted: Sat Jan 11, 2014 11:58 pm
by Illya Stepanov

Hi Bahar,

Where are you getting this error message?
Can you post the screenshot of actual query that you are trying to run?


Combine multiple where clauses referencing component values

Posted: Sun Jan 12, 2014 12:20 am
by bahar.wadia

When I run a Test

Image


Combine multiple where clauses referencing component values

Posted: Mon Jan 13, 2014 8:43 am
by Maryna Brodina

Hello! If you select using _id there is no need to use $inQuery ($inQuery is used while selection by field in dependent table).


Combine multiple where clauses referencing component values

Posted: Mon Jan 13, 2014 8:19 pm
by bahar.wadia

Got it! Thank you so much.


Combine multiple where clauses referencing component values

Posted: Fri Jan 17, 2014 8:45 am
by Maryna Brodina

Hello! If I understand correctly you need values in which in pointer column OwnerID is not 5235ecccxxxxxxxxxxx1bb7bb0? Try this way pre{ "$and": [ {"MyItemName":{"$regex":"\bwat.*", "$options":"im"}}, { "OwnerID": {"$ne":{"collName":"detail", "_id":"5235ecccxxxxxxxxxxx1bb7bb0"}}} ]} /prewhere detail - collection name which is specified by pointer OwnerID.


Combine multiple where clauses referencing component values

Posted: Fri Jan 17, 2014 12:59 pm
by bahar.wadia

Sweet! That works nicely.

For future reference, can you please help me understand why "inQuery" generates error?

Thank you so much for your help.

You guys are the best tech support I have experienced.


Combine multiple where clauses referencing component values

Posted: Fri Jan 17, 2014 2:43 pm
by Maryna Brodina

You can't run inQuery in $and. structure.


Combine multiple where clauses referencing component values

Posted: Fri Jan 17, 2014 4:22 pm
by bahar.wadia

Thanks, are there any other limitations. Is there a document somewhere that describes these limitations.