I use treePanel with JSON.
My JSON is here : JSON
I don’t understand why , i have this error message : ” Records[i] is undefined ”
My JSON is valid !
need help,
Thanks 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You haven’t provided much information on how you are using this JSON file but by the sounds of it you are trying to access an element which does not exist. Are you using a loop statement to increment through each element in your JSON file?
Maybe this loop is iterating past the number of elements that you have and this is why the error is occurring. If I were to take a guess I would say it is because the application is trying to parse the first “node” in your JSON file as a child and so it thinks there are 4 elements to loop through. Where as you really only have 3.
Hope this helps somehow.