CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Making columns sortable in Batch Update window
Pages: [1]

Author Topic: Making columns sortable in Batch Update window  (Read 1606 times)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Making columns sortable in Batch Update window
July 13, 2009, 01:07:47 am
Hi - what sort of jiggery-pokery is required to make Batch Update screen allow us to sort by the columns? This use case is for Participants - rather than from AdvSearch if that makes a difference.

Purpose being, in this example, so that the 'team name' is delivered as a searchable column for an event, as the process being undertaken through the batch update for other columns/data is best performed if we can return the results sorted by Team.

Do we need to force the column in to the Participants Search Results and then force the sort from that to be applied in Batch Update - or is there something we can apply direct to the Batch Update configuration?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Making columns sortable in Batch Update window
July 13, 2009, 08:54:47 am
Quote from: peterd on July 13, 2009, 01:07:47 am
Do we need to force the column in to the Participants Search Results and then force the sort from that to be applied in Batch Update - or is there something we can apply direct to the Batch Update configuration?

i think this will be your best approach

alternatively might be time for us to consider doing a "search query hook" where we invoke a hook with all the relevant sql pieces (select, from, where, limit, order by, group) so a module can modify things in a more non-hackish manner

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Making columns sortable in Batch Update window
July 29, 2009, 02:13:20 pm
Quote from: Donald Lobo on July 13, 2009, 08:54:47 am
alternatively might be time for us to consider doing a "search query hook" where we invoke a hook with all the relevant sql pieces (select, from, where, limit, order by, group) so a module can modify things in a more non-hackish manner
Have run up against this again - same client - trying to find a work around fact that we can't currently import the data for Participants http://issues.civicrm.org/jira/browse/CRM-4815
So I may be able to put some time in to either of the above options, ie our hack or your 'search query hook' - where would our efforts be best placed for an outcome within the next couple of weeks (the hack I presume) - and if the latter can you provide any pointers on where we start to 'force' the column sorting behaviour?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Making columns sortable in Batch Update window
July 29, 2009, 02:18:23 pm
And further to above - the other issue/option would relate to having a "Search Views" option as per in Advanced Search that allows us to choose the Profile we want to use to display the search results. This would presumably in turn cause the required Fields to appear as Columns and thus get us one step closer to the desired behaviour
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Making columns sortable in Batch Update window

This forum was archived on 2017-11-26.