Page 1 of 1
collapsible list only showing 1 item
Posted: Fri Mar 13, 2015 6:23 pm
by Aeneas McBurney
I have a collapsible set being populated from a search of contacts on the phone. When ever the search results return no data it shows no collapsible items which is correct. However when I do a search after that with items returned it only shows 1 collapsible ever though there are many search results. Any idea what is happening?
collapsible list only showing 1 item
Posted: Sat Mar 14, 2015 8:46 am
by Illya Stepanov
Hi Aeneas --
Could you please show us mapping that you're using for your collapsible list component?
collapsible list only showing 1 item
Posted: Sun Mar 15, 2015 1:19 am
by Aeneas McBurney
collapsible list only showing 1 item
Posted: Mon Mar 16, 2015 3:09 am
by Yurii Orishchuk
Hi Aeneas,
Please try following solution:
Here is workaround to get your contacts service work:
Open goal page.
Navigate to "Data" tab.
Find "contacts" service datasource.
Add "Success" event handler with type "Javascript".
Use following JS code:
pre
var contacts = data;
for(var i = 0; i < data.length; i++){
var contact = contacts;
if(!contact.phoneNumbers)
contact.phoneNumbers = [];
};
/pre
Set order for this event handler to be before "mapping" event handler.
See details: http://prntscr.com/6385hv/direct
Regards.
collapsible list only showing 1 item
Posted: Mon Mar 16, 2015 6:16 pm
by Aeneas McBurney
Hi,
I have tried exactly what you said but I'm getting the same result as in only 1 contact showing after 0 returned from a search.
collapsible list only showing 1 item
Posted: Wed Mar 18, 2015 4:59 am
by Yurii Orishchuk
Hi Aeneas,
Please check your app on errors:
Activate WEINRE debugger in the app.
Generate your app and install on the device.
Run the app on the device.
See in WEINRE debugger whether is there some errors.