On your recent webinar, you explain how to choose one from tree options of Push Notification, but how can a configure my self to have them all, or two of the options and not just one?
Any help kindly appreciated
Best
On your recent webinar, you explain how to choose one from tree options of Push Notification, but how can a configure my self to have them all, or two of the options and not just one?
Any help kindly appreciated
Best
Hi Carlos,
What Push notifications do you mean?
Check here please: http://devcenter.appery.io/documentat...
This is what I need to accomplish
Working with channels
In the predefined devices collection, there is a Channels column. It has an array type, and can contain any amount of values:.....
But how do I set the UI
I will enable like 60 different toggle on/off options where the user will custom his notifications
So how do I set up the mapping, since all 60 will load info to the channel colum from the DB
Hello Carlos,
You can't do mapping of multiple values in one request-parameter, but you can use js in mapping to generate the data in the desired format. You can find more info here: http://devcenter.appery.io/documentat...
HI
After several trials I ́m a little stuck with the final setup
Im trying to build an App that the end user is capable of choosing from a menu several channels for him to recive so I.m sending you what I have done so far
The JS:
return '{"$and":[{{:' + Number(Appery("OpBIIA").val()) + '},{{:' + Number(Appery("OpBIIB").val()) + '},{{:' + Number(Appery("OpBIIC").val()) + '}]}';
Hi Carlos,
You would also need a collection field name:. Please find an example here: http://docs.mongodb.org/manual/refere...
Base on your suggetion:
{ $and: [ { }, { } , ... , { } ] }
I did the folowing JS on the mapping
return [parseInt({$and: [ { (Appery("OpBIIA").val()) } , { (Appery("OpBIIB").val())},{(Appery("OpBIIC").val()) }]})];
But I have syntax errors can you help me just to take a quick view and tell me what am I missing?
Best
Hello Carlos,
We responded to you by email yesterday
"You should get an array of all checked checkboxes and return an array with values of these checked checkboxes. You don't need parseInt, $and"
You should use something like this
codevar checked = [];
Appery("mobilecheckboxgroupName").find("input:checked").each(function(){
checked.push(parseInt($(this).val()));
});
return JSON.stringify(checked);/code
Could you please clarify, did you use this code and did you get any problems with it?