Page 1 of 1

Binding data from my website

Posted: Mon Jul 28, 2014 4:01 pm
by damiano

Hi,
I'm learning to use Appery and I'm doing some test.

I've created an app with a list. Then I've created a service to retrieve data from my site. Testing the service (created by mine and uploaded on my webspace) and generating output from the test doesn't raise any error.
Here's the result:
[
{
"descrizione":"Avvocato Abbinante Maria ",
"codice":"306"
},
{
"descrizione":"Avvocato ABRAMO DANIELA",
"codice":"316"
},
{
"descrizione":"Avvocato Acerbo Massimiliano",
"codice":"209"
},
{
"descrizione":"Avvocato aiello anna maria",
"codice":"310"
},
{
"descrizione":"Avvocato Aiuti Alessandra",
"codice":"333"
},
{
"descrizione":"Avvocato Andrianopoli Gianluca",
"codice":"312"
},
{
"descrizione":"Avvocato Angioni Roberta",
"codice":"276"
}
]

Then I add the service to the "data" tab on the startScreen , binding the collection to the listitem and "descrizione" to the text.

I also created a event executing the service on the "Load" of the stratScreen.

But, when I test the app I get no elements in the listitem... any idea about the reason, please ?

Any help would be very appreciated.

Thanks a lot.
Bye.


Binding data from my website

Posted: Mon Jul 28, 2014 4:07 pm
by Maryna Brodina

Binding data from my website

Posted: Tue Jul 29, 2014 9:57 am
by damiano

Hello Maryna, nice to meet you!

I followed your suggestion and I made some step foward.

Now I know that my service works fine in echo mode, but no way to make it work out of this mode.

So I put "alert(textStatus + ': ' + String(errorThrown) + ' ---');" in the error event of my service and, when invoked, this is the result: "error: ---".... errorThrown isn't displayed!

Could you help me a little more, please ?

Thanks, bye!


Binding data from my website

Posted: Wed Jul 30, 2014 12:08 am
by Yurii Orishchuk

Hi Damiano.

You need to setup appery io proxy in your REST service if you use external service.

So please see details how to do it:

1 http://prntscr.com/3krvu1/direct

2 See how to create appery.io proxy here: http://docs.appery.io/documentation/s...

Regards.