Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List events participants alphabetically #43

Closed
k-boy opened this issue May 2, 2015 · 7 comments
Closed

List events participants alphabetically #43

k-boy opened this issue May 2, 2015 · 7 comments

Comments

@k-boy
Copy link

k-boy commented May 2, 2015

I will like the have the names of event participants listed alphabetically on the event check-in screen, how can i modify the civimobile extension (civimobile.participant_checkin.html) to list names alphabetically?

@kurund
Copy link

kurund commented May 4, 2015

@k-boy currently you cannot modify it via UI. Yes you can modify civimobile.participant_checkin.html and add 'options param to participant get. For eg:

CRM.api3('Participant', 'get', {
"sequential": 1,
"options": {"sort":"sort_name"}
}).done(function(result) {
// do something
});

@k-boy
Copy link
Author

k-boy commented May 4, 2015

thank you for your reply Kurund! Please could you tell me how to modify the api call from line 35 ? I am still struggling with the api calls:

CRM.api('Participant','get',
{'version' :'3', 'sort_name': q, 'event_id': eventId, 'participant_status_id': {1:1,2:2,5:5},
'return' : 'display_name,participant_status_id', 'rowCount' : 500 },
{
success:function (data){
if (data.count == 0) {
cmd = null;
}
else {............

@k-boy
Copy link
Author

k-boy commented May 18, 2015

Hi Kurund, I have not been able to get this to work. Can you help?

Thank you in advance.

@k-boy
Copy link
Author

k-boy commented Aug 31, 2015

Hi Kurund and sorry to bother you again

your above solution works , modifying line 35 CRM.api('Participant','get', to CRM.api('Participant','get', {"sequential": 1,"options": {"sort":"display_name"} works just fine for CiviCRM version 4.3

But when i do the same changes for CiviCRM 4.5.5 on line 35 of civimobile.participant_checkin.html, i get page not found sites/all/modules/civicrm//bower_components/lodash-compat/lodash.min.js

Is it possible for you to tell me how to modify the sorting for this version of civimobile downloaded here on Github?

Many thanks in advance!

@kurund
Copy link

kurund commented Nov 14, 2015

@k-boy We have done some work to upgrade civimobile to 4.6, but not yet released. Outstanding issue is survey functionality and we will do the release once it's fixed.

@kurund
Copy link

kurund commented Apr 12, 2016

We have pushed 4.7 compatible release

@kurund kurund closed this as completed Apr 12, 2016
@kurund
Copy link

kurund commented Apr 12, 2016

this is also duplicate of #36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants