⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

alternative n_n selector/ui



Nicholas

Nicholas
  • profile picture
  • Member

Posted 23 January 2012 - 22:49 PM

Unfortunately my client is not happy with the current interface that groceryCRUD uses for insert/update on the n_n relationships.

Is this tool that is used a plugin for the jquery datatables set, or some other public thing that I can easily swap out, or is it a groceryCRUD homebrew tool?

Thanks!

web-johnny

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 23 January 2012 - 23:02 PM

Download the new version 1.1.8 from git hub ( https://github.com/d...CRUD_v1.1.8.zip ). I have changed the n-n relation plugin. It works only if you just don't add the last segment (priority field)

Nicholas

Nicholas
  • profile picture
  • Member

Posted 24 January 2012 - 00:16 AM

Hmm, maybe I am confused, or not explaining myself well. I moved to 1.1.8, and am using set_relation_n_n without a priority field.

$crud->set_relation_n_n('Groups', 'EmployeeCategoriesIDX', 'Categories', 'EmpID', 'Cat_ID', 'Category');

I see nothing different in my update form, the ui still pulls the jquery UI Multiselect that was in the previous versions?

web-johnny

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 24 January 2012 - 07:20 AM

Are you sure? I just check it and it works fine. the

$crud->set_relation_n_n('Groups', 'EmployeeCategoriesIDX', 'Categories', 'EmpID', 'Cat_ID', 'Category');

is absolutely right. Did you update all the files or just the library? You have to replace all the files to your project to actually update grocery CRUD. When everything goes well you have to see this:
[attachment=22:2012-01-24_071704.png]
when you have a relation n_n without the priority field (same as your example).

vnt

vnt
  • profile picture
  • Member

Posted 02 February 2012 - 15:17 PM

Hi Johnny,

I think that plug-in Check Box Tree is best for Grocery Croud.

With Check Box Tree you can see and select the categories and subcategories:

http://code.google.com/p/checkboxtree/
http://checkboxtree.googlecode.com/svn/tags/checkboxtree-0.5.2/index.html

or

http://www.jqwidgets.com/jquery-widgets-demo/#demos/jqxtree/checkboxes.htm
jqxTree -> Checkboxes

or

http://crepitus.com/misc/ext/tree.html

or

http://www.redcarrot.co.uk/blog/entry/collapsible-checkbox-tree-jquery-plugin/

http://www.web-delicious.com/jquery-plugins-demo/wdTree/docs/index.htm

Thank a lot for Grocery Croud

web-johnny

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 02 February 2012 - 19:54 PM

WOW this is actually a good research thanks. Though it will take a while to add a feature like this. I starred the topic so I will go there to search when I decided to do it.
Now I am doing the datetime to be well formated (and not the yyyy-mm-dd!!!) and the new uploader that will work in all browsers. The new version 1.2 will be pretty intresting as I changed also the form interface a bit ;)
Thanks for the links

jgalak1

jgalak1
  • profile picture
  • Member

Posted 02 July 2017 - 17:39 PM

Has anything ever happened with this project?  I am in need of a n-to-n interface that allows for nested categories.


jgalak1

jgalak1
  • profile picture
  • Member

Posted 08 May 2018 - 13:15 PM

Ping?  Could still really use this capability.  Most of the links above are outdated, but the last one goes, essentially, here:

 

http://www.web-delicious.com/jquery-plugins/index.html

 

The "JQuery Checkbox Tree Plugin" would be perfect.