Drupal7: Views Row Selector Module

I have a remote connection to an LDAP server and upon querying for data want to be able to select multiple rows of this data and pass it onto further reporting tools.

Sample views row selector UI.

Sample views row selector UI.

Normally I would try to use Views Bulk Operations (VBO), but currently this LDAP data isn’t fully Drupal friendly and I actually have a few keys to pass per row result, as opposed to just a NID. So I went looking for a module to help me select rows of a table similar to the theme_tableselect drupal API function. I found views_row_selector!

By installing views row selector you are basically enabling the checkbox feature of selectable rows in your table. These values are saved to a hidden ajax field usable by a custom form_submit function which you need to provide as a developer. It includes a select all checkbox for the items on the current page, the module maintainer wants this select all feature to work for all resultset items at a later date.

Having made somewhat complex forms in the past using other frameworks I like that this gives me some freedom to tie some desperately related pieces of content together into a multistep reporting tool. Again, consider using VBO first as this module is more developer-centric. In further blog posts I’ll cover additional tweaks I’ve made to this module currently. An example of another module that makes use of this module on as a requirement is the Views Send module, which allows you to bulk send to a recipient list selected from a View.

Looking for quality web hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , , , , , | Posted under Drupal | RSS 2.0

Author Spotlight

David Gurba

I am a web programmer currently employed at UCSB. I have been developing web applications professionally for 8+ years now. For the last 5 years I’ve been actively developing websites primarily in PHP using Drupal. I have experience using LAMP and developing data driven websites for clients in aviation, higher education and e-commerce. If you’d like to contact me I can be reached at david.gurba@arvixe.com

Leave a Reply

Your email address will not be published. Required fields are marked *