Thank you for your help.
Here's the code.
"I would like to extract records containing ""2014/8"" (corresponding to August 2014) using wildcards in line 3 overDate, how should I describe them?"
var UserDetails=monaca.cloud.Collection('UserDetails');
varcriteriaStr='push_flg=="1";
criteriaStr+='&overDate=='+from_yyy+'/'+from_m+'/*';
varCriteria=monaca.cloud.Criteria(criteriaStr);
UserDetails.find(Criteria, 'User_Oid ASC', {propertyNames: ["User_Oid"] } )
.done(function(result){
// processing
.fail(function(error){
// Push notification will not be provided if the target user ID retrieval fails.
alert('Failed to retrieve target user.' );
return;
}
});
There seems to be no wildcard, so how about making it like the method below?
varmonaQuery=buildMonaQuery(2014,8);
varCriteria=monaca.cloud.Criteria(
'overDate IN?',
[monaQuery]
);
function buildMonaQuery(from_year, from_month){
var result=[];
for(vari=1;i<=31;i++){
result.push(from_year+'/'+from_month+'/'+i);
}
return result;
}
374 I want an event to happen when I click on a particular image on tkinter.
353 I want to create an array of sequences from "1" to a specified number.
369 Update Flask User Information
362 To Limit Column Values to Strings in a String List Using sqlalchemy
355 Unity Virtual Stick Does Not Return to Center When You Release Your Finger
© 2023 OneMinuteCode. All rights reserved.