Hi, I have an array field called calendarDays that I would like to extract and use in JavaScript, but I'm not sure how to do it. On success callback I would like to extract the value from the database which is an array of strings like this ["{2014-05-05}","{2014-05-23}"] . Also, I would need to have multiple conditions in WHERE clause. I need to specify name and monthYear. Can you show me how to do that? Please review the database picture I attached as well...Thanks.
I have a query service called "query"
On Click event handler I have this code
pre
query.execute({
where:{"name":"jon"}, //i also need to add monthYear
success:function(data){
alert("success!!!"+value); //i want to get calendarDays array
},
error:function ( jqXHR, textStatus, errorThrown ) {
alert("error!!!");
}
});
/pre