Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Select Push Notification

Hello Carlos,

Could you send us public link to your application and steps how to reproduce the issue
http://docs.appery.io/documentation/s...

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Select Push Notification

Public Link
http://appery.io/app/mobile-frame?src...

So you will see two ways of channging the channel DB
one is the webinar itself
secound is the checkbox and all we are trying

1
Once you open on main screen or Home you will see a select on top with the options Vini/Vidi/Vici
If you select any of the options it will work and change the parameter on the channels column on the DB [20] [30] [40]
This example works 100%

2
On upper right side of the app you will see a gear icon
That should open the right panel
You will be prompt some colapsables
Enable Irishpreschool and open Bambolinos II
You will see tree checkboxes
A....121
B....122
C....123

These are the first that we have configured so far

Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Select Push Notification

Hi Carlos,

Could you please clarify what value is supposed to be and how you write it?

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Select Push Notification

Here is an image on how I did configure the checkbox.

U need anything else?

If I do another app as a lab App so we can all look at it an configure the right coding?

Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Select Push Notification

Hi Carlos,

I'm sorry, I must be misunderstanding. The result seems to be as you set it in Builder UI. Could you please point to the issue?

It would be great if you could create a test app and show the problem there...

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Select Push Notification

Hi Carlos,

We are not sure what causes these issues.
Could you please try using custom components instead of screen templates?
This should solve the problem.

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Select Push Notification

I just did a brand new app

it has the webinar step by step and the checkbox

I build two different services

The webinar one works 100%

The other still not able to change the channel db info into DB

Here is the public access
http://appery.io/app/mobile-frame?src...

and to download the apk
https://appery.io/app/project/5fb31e2...

Hope you can find what is missing

Best

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Select Push Notification

DBid
53c8415fe4b0385357295b86

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Select Push Notification

Carlos,

1) In the service SelectChannels in the mapping to request parameter channels you should replace the code on this one:
prevar checked = [];
Appery("test").find("input:checked").each(function(){
checked.push(parseInt($(this).val()));
});
alert(JSON.stringify(checked));
return checked;/pre
2) You should remove the event click on the checkbox items (all 3). Instead, put the call of the service SelectChannels on event Value change of the whole Checkbox group (this is your element test)

Carlos Castillo6909856
Posts: 0
Joined: Tue Jun 03, 2014 12:51 pm

Select Push Notification

Can you do me a favor Evgene

Can you please have "JSON.stringify" printed on a white paper, hang it on the wall and use it a dart target

It did work perfect, on test let me try on the formal app

If I want to have several check list building the channel

It should look like this?

var checked = [];
Appery("test1").find("input:checked").each(function(){
checked.push(parseInt($(this).val()));
});
Appery("test2").find("input:checked").each(function(){
checked.push(parseInt($(this).val()));
});
Appery("test3").find("input:checked").each(function(){
checked.push(parseInt($(this).val()));
});
alert(JSON.stringify(checked));
return checked;

Thank you very much in advance, I will build a quick reference for others who would need to use this function.

Best

Return to “Issues”