Jump to content


Show name (not ID) on set_relation_n_n

set_relation_n_n

  • Please log in to reply
4 replies to this topic

#1 dontako

dontako

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts
  • LocationSantiago

Posted 12 December 2012 - 10:09 PM

Hello!!! my question is this.. do not know if it's a problem with the structure of my tables or programming.
I need to show the name (not the ID) of a field that is located outside the relationship "n_n", is it possible?

With my knowledge of SQL could do, or with active record, but with grocery Crud, I'm having a little headache xD
Thanks ....

Attached Images:
A: This is how it looks, shows the ID, not the name ...
B: There you can see the code and the relationship. To show I have put "{id} - {name}" because if I put "{name}, {name}" I get an error that the field name is not found, and this is normal since I'm not including the name of that field in the relationship.
C: The structure of my tables ... what I want to accomplish is to show when creating or editing, the field name is enclosed in green, not the ID circled in red

Excuse my English, I hope you understand my question ..

Greetings and Thanks :)

Attached Thumbnails

  • A.png
  • B.png
  • C.png

Posted Image

#2 dontako

dontako

    Advanced Member

  • Members
  • PipPipPip
  • 30 posts
  • LocationSantiago

Posted 13 December 2012 - 06:48 PM

Help :C
Posted Image

#3 Pascal

Pascal

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 22 February 2013 - 09:48 PM

Hi, did you get any answer? I have the same problem



#4 davidoster

davidoster

    Grocery CRUD Ninja

  • Advanced Member
  • PipPipPip
  • 1,068 posts
  • LocationAthens, Greece

Posted 22 February 2013 - 10:08 PM

Try to use your own model,

http://www.grocerycr...tions/set_model

Check the 2nd Step on this link!


____________________________________________________________

 

rtfm_small.jpg---!!!Please read these guidelines before asking to the forums!!!---

____________________________________________________________

 

David Oster aka George Pasparakis,
http://odphotography.com
http://eletter.gr


#5 larasmith

larasmith

    Advanced Member

  • Members
  • PipPipPip
  • 195 posts
  • LocationPhilippines

Posted 12 August 2014 - 01:32 PM

Dear davidoster,

 

Can u please give example on how to use that 2nd Step on the link...

Thank you very much!  :)







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users