Jump to content


set_relation() breaks callback_column() operation

field relation callback column

  • Please log in to reply
2 replies to this topic

#1 davidoster

davidoster

    Grocery CRUD Ninja

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

Posted 03 January 2013 - 01:39 PM

On, http://www.grocerycr...__100#entry4959

Victor said that
"As I see we can't to use the callback_column when we use the set_relation for these columns.
in your case :

$this->grocery_crud->set_relation('customers_id','customers','{lname} {fname}');
and

$this->grocery_crud->callback_column('customers_id',array($this,'_callback_attend_edit_url'));
"

It seems that when set_relation() is used the use of callback_column() is problematic!

____________________________________________________________

 

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

____________________________________________________________

 

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


#2 davidoster

davidoster

    Grocery CRUD Ninja

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

Posted 03 January 2013 - 02:03 PM

I believe the problem is at the get_columns() function under application/libraries/grocery_crud.php

____________________________________________________________

 

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

____________________________________________________________

 

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


#3 davidoster

davidoster

    Grocery CRUD Ninja

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

Posted 04 January 2013 - 03:52 AM

Well it's been documented before!
Solution is here, http://www.grocerycr...urned/#entry982

____________________________________________________________

 

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

____________________________________________________________

 

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






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users