Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Fantastic app idea, zero building knowledge

It happens because you use create service, when you need Update service http://devcenter.appery.io/documentat....

Kamal Jain
Posts: 0
Joined: Sat Aug 09, 2014 7:37 am

Fantastic app idea, zero building knowledge

Update service doesn't work unless there is create service first right?

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

Fantastic app idea, zero building knowledge

Kamal,

Yes you are right. The first time you run the application, you should create a new entry. Then the next time update it.

Kamal Jain
Posts: 0
Joined: Sat Aug 09, 2014 7:37 am

Fantastic app idea, zero building knowledge

I don't think my users will open it anytime soon. I want it to install. Then create. Then run the update service in the background immediately, updating every 20 minutes...

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Fantastic app idea, zero building knowledge

Hi Kamal,

You can run your service with time interval:
precode
setTimeout(serviceIntanceName.execute({}), 1000);
/code/pre
serviceInstanceName - is the name of your service, 1000 means that the service will be executed after 1 second.

Kamal Jain
Posts: 0
Joined: Sat Aug 09, 2014 7:37 am

Fantastic app idea, zero building knowledge

Where do i edit this javascript? :(

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

Fantastic app idea, zero building knowledge

Hi Kamal,

You can run it on any event, for example, on page Load.

Kamal Jain
Posts: 0
Joined: Sat Aug 09, 2014 7:37 am

Fantastic app idea, zero building knowledge

Events :
DeviceReady 1. Create
2. update

That would solve my updating problem.

But won't it create a new entry when the app is switched on agian?

obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

Fantastic app idea, zero building knowledge

Hello!
Please provide us with a public app link (http://devcenter.appery.io/documentat...) and steps to reproduce.

Return to “Issues”