⚠ 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

is posible to use the same style of field in a own view



carlinchisart
  • profile picture
  • Member

Posted 06 July 2012 - 15:42 PM

Hi all!!!

i have a litlle question, i use GC, but i need to do a own view, so my question is how i can use the same style and functionality of select option?, is possible to use for example the n-n relation field with priority, in my own view?

this is becouse i have to do other activities in the view so i have to do this, but i want take the same style of all the functionalitys of my aplication that are developed with GC.

mikelamar
  • profile picture
  • Member

Posted 07 July 2012 - 13:11 PM

For the n-n relation you can use a 7th segment (priority field) at your method, for example:


$crud->set_relation_n_n('actors', 'film_actor', 'actor', 'film_id', 'actor_id', 'fullname','priority');


with this the design is changing and there is a new relation_n_n that you can also change priority too

carlinchisart
  • profile picture
  • Member

Posted 07 July 2012 - 15:28 PM

hi @mikelamar, im sorry I think I did not explain well, my problem is in my view i don't use grocery crud, i cread my view, becouse i cant use the grocery crud for this part of my application.

so i whant to use the same functionality for example in select whit the option of search.

more thanks for your answer