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;
}
549 PHP ssh2_scp_send fails to send files as intended
539 Uncaught (inpromise) Error on Electron: An object could not be cloned
548 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
717 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.