⚠ 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

Relation Tables (Help)



dinhopereira
  • profile picture
  • Member

Posted 22 January 2013 - 17:45 PM

Hi all,

I have four related tables.
By adding a feature of the car, I would like to display the name of the mark and model. Is this possible?

[img]http://www.absolutahosting.com.br/exemple.jpg[/img]

BinaryBlock
  • profile picture
  • Member

Posted 22 January 2013 - 21:44 PM

Hello,

[b]I would like to see this question answered as well.[/b]

I have lots of one-to-many, many-to-one, many-to-many, etc. relationships that I would to know how this CRUD handles this?

Thanks.

davidoster
  • profile picture
  • Member

Posted 23 January 2013 - 04:02 AM

Check these pages:
http://www.grocerycrud.com/documentation/options_functions/set_relation
http://www.grocerycrud.com/documentation/options_functions/set_relation_n_n

dinhopereira
  • profile picture
  • Member

Posted 15 February 2013 - 20:23 PM

anyone else?
The above solution does not solve


davidoster
  • profile picture
  • Member

Posted 15 February 2013 - 22:01 PM

Then you need to try a custom model!


goFrendiAsgard
  • profile picture
  • Member

Posted 15 February 2013 - 22:23 PM

[member="dinhopereira"] I think the only one that can't be handled by groceryCRUD (for now) is one-to-many relation. While everything else (many to many and many to one is already supported by default).

Do you mean that you need something like this: http://www.getnocms.com/town_project/data/town_project_twn_town/index? (try to add/edit town, and mess around with citizens)
Actually you can make custom javascript and several callback to do that.
But, if you are in the beginning of a new project, why don't you start with No-CMS, you can make such a thing in minutes :)


deib97
  • profile picture
  • Member

Posted 13 April 2013 - 07:10 AM

Hello goFrendiAsgard 

http://www.getnocms.com/town_project/data/town_project_twn_town/index

how to make a form with dynamic field. like your project no cms for module manage town, when add citizen ?

can you help me about clue to make its?. :)


goFrendiAsgard
  • profile picture
  • Member

Posted 14 April 2013 - 00:16 AM

By using module generator http://getnocms.blogspot.com/2013/01/nordrassil-new-web-development-pain.html


Christophe Conduché
  • profile picture
  • Member

Posted 15 April 2013 - 15:28 PM

yep, impressive, but it's sad that the code is not contributed back to groceryCRUD as I read on this forum we are several waiting this improvement in groceryCRUD.

 

this make a bit more complex to start a new project with again a tool to learn.


goFrendiAsgard
  • profile picture
  • Member

Posted 16 April 2013 - 21:16 PM

yep, impressive, but it's sad that the code is not contributed back to groceryCRUD as I read on this forum we are several waiting this improvement in groceryCRUD.

 

this make a bit more complex to start a new project with again a tool to learn.


Sadly, this is not as easy as it seen (even if I really want to). To achieve this, I make several callbacks and custom javascripts. Combine it to the main branch seems to be difficult and possibly break the stability of the currently stable groceryCRUD (which is a very high risk).