Now release candidate 3 is out the door, we're very close to a 1.0 stable version that will be the next release. It's time now to focus on the "nice to have" priority items. I tried to implement the following feature:

* Sorting of invoice items with DRAG and DROP => http://api.drupal.org/api/function/drupal_add_tabledrag

But I can't get it to work. In invoice 1.0-rc3 you will see in invoice_form.inc on line 19 I have a line:

//drupal_add_tabledrag('invoice-items-table', 'order', 'sibling', 'invoice-item', $subgroup = NULL, $source = NULL, $hidden = TRUE, $limit = 0);

If you uncomment that line you will directly see invoice items that can be ordered by drag and drop. But after you release your mouse button you're still accessing that dragging row and a javascript error will be displayed in firebug:

"rowSettings is undefined"

The documentation on Drupal.org is not very clear, so please if you have time or have done this before try to figure it out and post some code.

Pieter

Comments

pietervogelaar’s picture

Does anybody like to help with the dragging part? I don't have a lot of time at this moment...

pietervogelaar’s picture

Still, anybody?

yogesh.ananda@gmail.com’s picture

Hi have you had any luck with it. I am not a developer, but I was wondering if you could use the taxonomy module approach. If you look at the taxonomy.admin.inc file you would be able to find the two functions "taxonomy_overview_vocabularies" "theme_taxonomy_overview_vocabularies" which may give you some clues.

pietervogelaar’s picture

Hi Yogi,

Thanks for the input! I will take a look at it.

Greetings,
Pieter

yogesh.ananda@gmail.com’s picture

Hi Pieter,
Did you get a chance to work on it. I am hoping for patch soon.

Thanks
yogi

pietervogelaar’s picture

My first priority is to get the drupal 7 version ready at the moment.

Pieter

pietervogelaar’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Won't be implemented in the Drupal 6 version anymore and is planned for Drupal 7.

Pieter