Also, you don't need to create File Api.php > connect database > fetch members;
Please refer to our code which we have written.
Hi Scott,
I understand that you have updated the API code I just want to understand how will I be able to sort the users according to their current marks/points.
Earlier I was able to get the data the problem was the sorting, but thank you for improving the code, I only need the sorting part done now and everything else is set.
Thank you.
Can you tell me which are the actual points for the particular user then we will sort it?
If possible share a screenshot or something else.
The issue we get only: We are unable to determine which is the actual point for user.
This reply has been marked as private.
We have sorted the array please check again api hit . We have commented the some API data.You can enable if need .
refer this:
http://prntscr.com/qlsxlp
This reply has been marked as private.
you just need to pass batch_id and get students sorted by my_cred_balance.
Hi Scott,
Thank you so much for the help Scott.
This reply has been marked as private.
Yes you can do anything .
You can fetch details for all bach_members or fetch only single user data.
just you have to use specific part of your code .
In your API: We first fetch batch members then for fetch data for single members .
Just you have to manipulate with the code in php or reuse some part.
Please read the API function.
This reply has been marked as private.
We have created different API for batch_id and user_id,
Batch_id:
http://prntscr.com/qnd5gz js code:
https://ctxt.io/2/AABANsptFA
user_id:
http://prntscr.com/qnd5y1 js code :
https://ctxt.io/2/AABAGk9jEQ
Wplms app uses javascript. Y
ou can javascript the fetch method.
This reply has been marked as private.
In-App src/services/group.ts file you will get each API hit for the batch page like this
Please read the code which use to make API hit in angular js.
Also, you can see inspect>network for batch/group API hit
This reply has been marked as private.