Jump to content


A searching at "set_relation_n_n" field


  • Please log in to reply
7 replies to this topic

#1 Kenta Saito

Kenta Saito

    Advanced Member

  • Members
  • PipPipPip
  • 34 posts
  • LocationTokyo JAPAN

Posted 05 April 2012 - 08:51 AM

Version: grocery_CRUD_v1.2.zip
Theme: flexigrid

A searching at "set_relation" field works.
(Search: 'Jones' 'from Employeer' at Customers)

A searching at "set_relation_n_n" field doesn't work.
(Search: 'GUINESS' 'Actors' at Films)

If it can. Would you show me a tips for that?
Using hook? Overwrite part of the library?


I'd like to apologize for my English.

Edit Signature TEST

#2 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 1,143 posts
  • LocationLondon

Posted 05 April 2012 - 09:21 AM

This is a known issue ( http://www.grocerycr...on/known-issues ) and it is already tracked at github ( https://github.com/s...-crud/issues/13 ). It has not yet any hook for this. I will try to fix it as for the next version.

Thanks to mention it though.
Posted Image

#3 Kenta Saito

Kenta Saito

    Advanced Member

  • Members
  • PipPipPip
  • 34 posts
  • LocationTokyo JAPAN

Posted 05 April 2012 - 09:40 AM

Thank you for your quick reply, Johnny!

Edit Signature TEST

#4 Kenta Saito

Kenta Saito

    Advanced Member

  • Members
  • PipPipPip
  • 34 posts
  • LocationTokyo JAPAN

Posted 06 April 2012 - 03:53 AM

Can I have anoter related question?

Instead "set_relation_n_n" field, I'm planning to use (MySQL's)"SET" field. (like mulpiple "ENUM")

A Searching "SET" field (by like"%...%") works.
A interface for "ENUM" field (for Add and Edit) also works.
Is there a interface for "SET" field (for Add and Edit) ? (or it will be?)

Edit Signature TEST

#5 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 1,143 posts
  • LocationLondon

Posted 06 April 2012 - 07:31 AM

For now there is not an interface for SET type but probably I will add this in the long run.
Posted Image

#6 Kenta Saito

Kenta Saito

    Advanced Member

  • Members
  • PipPipPip
  • 34 posts
  • LocationTokyo JAPAN

Posted 06 April 2012 - 02:58 PM

Thanks. I'll try to make an interface for that too.

Edit Signature TEST

#7 Kenta Saito

Kenta Saito

    Advanced Member

  • Members
  • PipPipPip
  • 34 posts
  • LocationTokyo JAPAN

Posted 07 April 2012 - 02:23 AM

I made An interface for SET type field.

http://www.grocerycr...e-for-set-type/

It works on grocery CRUD's "examples". (Table: "film", Field: "special_features")

Edit Signature TEST

#8 web-johnny

web-johnny

    grocery CRUD Author

  • Administrators
  • 1,143 posts
  • LocationLondon

Posted 07 April 2012 - 11:40 AM

Thank you very much Kenta Saito for the set type. As for the relation_n_n I will try to fix this bug as I want to change all the logic of how the relation_n_n will appear to the list. So it is a bit complicated, that's why is following me for many releases. I will try to add this fix to the next version.
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users