Page 2 of 3

Invoke Service on Confirmation custom JavaScript code

Posted: Fri Aug 15, 2014 11:14 am
by Shubham Pareta

I have another question
I have a CSV file http://www.oca-i.com/AppData/AlertDat...
I have created a service with this and that service returns json data..
so how can i execute it on pageload and load json value in a textbox...
Please help I am struggling since 2 days and no luck..I am new to appery.io


Invoke Service on Confirmation custom JavaScript code

Posted: Fri Aug 15, 2014 11:26 am
by Shubham Pareta

and one more thing when i call that service on some button click or menu click it gives javascript error for cross domain..

Please let me know how i can fix this issues


Invoke Service on Confirmation custom JavaScript code

Posted: Fri Aug 15, 2014 12:10 pm
by Evgene Karachevtsev

Hello Shubham,

On the load event you should call this service, and in mapping you should connect the response with the corresponding item: http://devcenter.appery.io/documentat...
To overcome this limitation, you need to use Appery.io proxy: http://devcenter.appery.io/documentat...


Invoke Service on Confirmation custom JavaScript code

Posted: Fri Aug 15, 2014 12:16 pm
by Shubham Pareta

Thanks for your help i tried and it worked for me...
Is there any way to convert that CSV to Json in appery???

and as i can see there is no option to save data offline and sync when internet is available......so can i have this functionality in appery or not?


Invoke Service on Confirmation custom JavaScript code

Posted: Fri Aug 15, 2014 1:49 pm
by Evgene Karachevtsev

Shubham,

[quote:] Is there any way to convert that CSV to Json in appery???[/quote]
Could you please clarify, what is it for? Also please look at this tutorial about offline: http://devcenter.appery.io/tutorials/...


Invoke Service on Confirmation custom JavaScript code

Posted: Fri Aug 15, 2014 1:52 pm
by Shubham Pareta

I am just trying to implement sync to the database.

sync between that csv and database on one click

Please help


Invoke Service on Confirmation custom JavaScript code

Posted: Fri Aug 15, 2014 8:13 pm
by Kateryna Grynko

Hi Shubham,

Here is how to convert CSV to JSON: http://techslides.com/convert-csv-to-...

Use Generic service to pass this JSON to Database: http://devcenter.appery.io/documentat...


Invoke Service on Confirmation custom JavaScript code

Posted: Sat Aug 16, 2014 1:48 am
by Shubham Pareta

Thanks for your support :)

I was using the same thing, I was wondering that appery itself is providing some functionality to do that.

By the way thanks so much for your help.

Does appery provide offline data storage and sync support to database when i come online????
If not can this be provided by appery in coming days on demand....bcoz i report to a very large organization on international level and we are planning to implement appery in some of our projects. If this can be done let me know. And if you can delete this msg after reading that would be great. and also let me know the contact details of the person to whom our organization can contact for further business.


Invoke Service on Confirmation custom JavaScript code

Posted: Sat Aug 16, 2014 10:38 pm
by Alena Prykhodko

Hi,

Yes, you can use Appery.io for this, please find more here http://devcenter.appery.io/tutorials/...

You can email us to a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and we'll transfer your request if necessary.

P.S. Let me check whether we can delete previous post, this may take time.


Invoke Service on Confirmation custom JavaScript code

Posted: Thu Sep 18, 2014 9:38 pm
by Estibens Manchego

invoque service in js code and save in var