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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • high volume edit functionality
Pages: [1]

Author Topic: high volume edit functionality  (Read 1499 times)

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
high volume edit functionality
June 18, 2009, 10:34:59 am
I'd like to build a high volume data editing forms (initial use case: entering foot canvass results) that:
  • make a page full of search profile results editable, and
  • use AJAX calls to save changed rows/records.

Drupal's editview module (http://drupal.org/project/editview) adds the first chunk of functionality above to Drupal views. But it seems like it would make more sense to do this within the CiviCRM context.

What would this look like in terms of a CiviCRM implementation?

  • in Advanced Settings for profile settings form after Include profile edit links in search results, add checkbox labelled "Enable bulk edit for this profile?", defaulting to False
  • A 'bulk edit' action would be added to the - more actions - drop down on the search results page,
  • Save and Delete buttons to right of each row to allow graceful degradation in case javascript is off,
  • javascript checking for field value changes when a row loses focus, automatically saving if there are any changes, and displaying result message(s) when update submission returns.

Questions:
  • Dojo seems to be the official library/framework (http://wiki.civicrm.org/confluence/display/CRM/CiviCRM+and+AJAX), but jQuery seems to be getting attention in the community (http://wiki.civicrm.org/confluence/display/CRM/CiviCamp+-+Oct+13-14%2C+2008?focusedCommentId=9437527#comment-9437527, . Which is preferred for development that hopes to go into core?
  • I'm imagining I should bake my own integration of dojo/jQuery for record submission/results display on callback, or is there something along the lines of Drupal's #ajaxsubmit either available or in the works (see http://www.chapterthree.com/sites/all/files/async_data_presentation.pdf, pp 27-30?
  • Would the next step best be some detailed specs or some code?
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: high volume edit functionality
June 18, 2009, 12:13:29 pm
Quote
    * Dojo seems to be the official library/framework (http://wiki.civicrm.org/confluence/display/CRM/CiviCRM+and+AJAX), but jQuery seems to be getting attention in the community (http://wiki.civicrm.org/confluence/display/CRM/CiviCamp+-+Oct+13-14%2C+2008?focusedCommentId=9437527#comment-9437527, . Which is preferred for development that hopes to go into core?
In CiviCRM v2.3 we have migrated form dojo to jQuery.
Quote
    * I'm imagining I should bake my own integration of dojo/jQuery for record submission/results display on callback, or is there something along the lines of Drupal's #ajaxsubmit either available or in the works (see http://www.chapterthree.com/sites/all/files/async_data_presentation.pdf, pp 27-30?
    * Would the next step best be some detailed specs or some code?
IMO you should search for inline editing jQuery plugin, rather than writing your own or using drupal's code.

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • high volume edit functionality

This forum was archived on 2017-11-26.