Error while implementing top N rankings using Shephertz leaderboard API

0 votes

While implementing the code for getting the top N rankings using Shephertz API I am getting this error  

Uncaught TypeError: Cannot read property 'userName' of undefined

According to this scoreList is undefined. Why is that so?
asked Mar 21, 2014 in App42 Cloud API-BaaS by Archit Verma (10 points)
retagged Mar 21, 2014 by Archit Verma

1 Answer

0 votes
What is the error you are getting here. Please specify.
answered Mar 21, 2014 by shepAdmin (111 points)
I have edited the question with more details.
Can you put your complete snippet here? It is  compilation error and if you see it carefully you should be able to know that userName variable is not defined in the code. You need to define it something like String userName = "Archit";
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...