MKicon
Posts: 0
Joined: Mon May 26, 2014 3:21 am

Uncaught Error: cannot call methods on listview prior to initialization

I have a page which binds a service response to a collapsible set. Each collapsible item contains a list. Each list item contains a grid which has multiple labels. For example, the collapsible header contains the team name, and the list is populated by the team members, so you can collapse and expand each team name and see the members. All the population of data is working fine. However, I am getting a "Uncaught Error: cannot call methods on listview prior to initialization; attempted to call method 'refresh'" appear in the console for each list that is returned. Is there a way to avoid this? Thank you.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Uncaught Error: cannot call methods on listview prior to initialization

Hello,

Please show us your JS code and screenshot with error.

MKicon
Posts: 0
Joined: Mon May 26, 2014 3:21 am

Uncaught Error: cannot call methods on listview prior to initialization

Here are screenshots of the whole process: screen elements, mapping, javascript console error and where the error points to in the generated js file. I don't have any custom scripts, just the mapping described here.

Image
Image
Image
Image

RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

Uncaught Error: cannot call methods on listview prior to initialization

I have the same problem using a select list, where my service is called thru a custom function. If you want, I'll supply the details, otherwise I'll wait until you resolve MKicon's issue in the hope it will help me.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Uncaught Error: cannot call methods on listview prior to initialization

Hello,

Please show us screen shot of mapping.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Uncaught Error: cannot call methods on listview prior to initialization

Hello,

Please give us your app public link http://devcenter.appery.io/documentat... and steps to test.

RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

Uncaught Error: cannot call methods on listview prior to initialization

Alena, there is no mapping. All of the action takes place in complete event.

RobertJay
Posts: 0
Joined: Fri Jun 15, 2012 1:32 pm

Uncaught Error: cannot call methods on listview prior to initialization

Alena, I'm going to try an entirely different approach. So, why don't you consider my issue resolved. Thanks.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Uncaught Error: cannot call methods on listview prior to initialization

Let us know if you need any other help :)

MKicon
Posts: 0
Joined: Mon May 26, 2014 3:21 am

Uncaught Error: cannot call methods on listview prior to initialization

I decided to not use a collapsible list because I had to deliver the app, however, I can assure you this javascript error occurs every time you place listitems inside the collapsible list container and map to a nested array service response. I get the correct output like this, but there is always a javascript error: "Uncaught Error: cannot call methods on listview prior to initialization" which keeps the loading graphic spinning endlessly.

+Team1 < Collapsible list item mapped to parent array
Member1 < Listitem mapped to child array
Member2
-Team2
-Team3

Return to “Issues”