Filling list within collapsible
Any updates on this?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Any updates on this?
Hello Aeneas,
Sorry, not yet. Working on it.
Aeneas,
Could you please clarify, how do you use response of the service listOwners?
Hi, yes I am assigning the response directly to the owners list within the collapsible. Is there a way to assign to the specific list within each collapsible?
Sure.
I need to know how to do this as I'm still having trouble with this
Please show us what you have tried and what doesn't work.
Hi Alena, I have already shown above what I have tried and its working. I need to know how to populate a list within a collapsible based on a collapsible value. The collapsible is returning Horses from a table and based on the horse I want to populate the list of owners for each horse within each collapsible.
Aeneas,
[quote:]"I am assigning the response directly to the owners list within the collapsible" [/quote]
Could you please clarify, do you mean that you use mapping?
You shouldn't use the mapping. After mapping of array to collapsible block there will be a few collapsible blocks on the page and each will have its own list.The mapping will not be able to determine where you want to map data received from the second service.
You should fill the list using js on success event of the second service. In this js code you should found on page right collapsible block and using js you should create list in it.
Everything would be easier if you'll have tables linked by pointer http://devcenter.appery.io/documentat...
Then all data would be available per one request and use mapping.
Or alternatively, you can use not the pointer but format data from multiple queries on the server side (in the server code). Having received all the data in the same query, you can use the mapping
Thanks for your response. Yes I am using mapping at the moment so all the lists get the same data. How do I 1. Find the list to fill within each collapsible and 2. Reference the correct list within each collapsible to fill?
Thanks