Page 2 of 2

Fantastic app idea, zero building knowledge

Posted: Thu Aug 14, 2014 1:05 am
by Kamal Jain

Fantastic app idea, zero building knowledge

Posted: Thu Aug 14, 2014 1:08 am
by Alena Prykhodko

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


Fantastic app idea, zero building knowledge

Posted: Thu Aug 14, 2014 1:17 am
by Kamal Jain

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


Fantastic app idea, zero building knowledge

Posted: Thu Aug 14, 2014 7:17 am
by Evgene Karachevtsev

Kamal,

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


Fantastic app idea, zero building knowledge

Posted: Thu Aug 14, 2014 2:14 pm
by Kamal Jain

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...


Fantastic app idea, zero building knowledge

Posted: Fri Aug 15, 2014 1:59 am
by Illya Stepanov

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.


Fantastic app idea, zero building knowledge

Posted: Fri Aug 15, 2014 10:09 am
by Kamal Jain

Where do i edit this javascript? :(


Fantastic app idea, zero building knowledge

Posted: Fri Aug 15, 2014 4:53 pm
by Kateryna Grynko

Hi Kamal,

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


Fantastic app idea, zero building knowledge

Posted: Sat Aug 16, 2014 5:10 pm
by Kamal Jain

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?


Fantastic app idea, zero building knowledge

Posted: Mon Aug 18, 2014 10:06 pm
by obullei

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