Page 1 of 1

Run List Service Multiple Times

Posted: Thu Oct 10, 2013 6:37 pm
by Doug Black

I am trying to run a list service multiple times on the same page for different columns (see attached).

Image

Though I've added multiple service instances for the List service on the page, editing info for one will edit info for all.

How do I run the List service multiple times on the same page?


Run List Service Multiple Times

Posted: Thu Oct 10, 2013 7:47 pm
by Kateryna Grynko

Hi Doug,

Do you run the service as described here?
http://docs.appery.io/documentation/u...


Run List Service Multiple Times

Posted: Thu Oct 10, 2013 10:01 pm
by Doug Black

Sorry, I forgot an important detail. Each of the lists use a "where" query to find a particular category. So one column will filter results marked "1", column two will be "2", etc.

That's where I'm getting stuck.

The service is run correctly. I just cant get the "where" statements to act different for each column.


Run List Service Multiple Times

Posted: Thu Oct 10, 2013 10:57 pm
by Alena Prykhodko

Hi!

Please check this http://docs.appery.io/documentation/b...
Tell us if it helps..


Run List Service Multiple Times

Posted: Fri Oct 11, 2013 12:55 am
by Doug Black

Actually, I ended up creating a localStorage variable to change the room. Then I created the service with:

return '{"roomNo":'+value+'}';

I called the service under three different names, and just added 1 to the variable each time.

It worked....good coding?

Thanks for your help!


Run List Service Multiple Times

Posted: Fri Oct 11, 2013 1:08 am
by Alena Prykhodko

Glad you get it working ;)