

auto populate a column in another table
#1
Posted 09 September 2016 - 02:21 AM
#2
Posted 17 January 2017 - 02:46 PM
Use Triggers
#3
Posted 17 January 2017 - 03:53 PM
@athar - can you please give an example on how to do this in CI?
#4
Posted 17 January 2017 - 05:16 PM
What you want is not a difficult at all if you study grocery crud documents. Lets take the same Parent/Child example. Create a controller by the name of Family as follows.
public function Family() { $crud = new grocery_CRUD(); $crud->set_table('child'); $crud->columns('ID_child','ID_Parent','Child_Name'); $crud->set_relation('ID_Parent','Parent','Parent_Name'); $crud->set_subject('List of Children and their Parents'); $output = $crud->render(); $this->_example_output($output); }
#5
Posted 18 January 2017 - 06:58 AM
sorry my mistake my mind was floating when i wrote this question, i was thinking of a different scenario. hope didn't bother you much.
Also tagged with one or more of these keywords: callback, edit, add
Support →
Bugs / Issues →
Cstome Error Message On set_rule callback does NOT appearStarted by fede72bari, 06 Mar 2021 ![]() |
|
![]() |
||
Support →
I have a question →
Getting setRelation field Value instead of ID in callback_before_insertStarted by AlokNikhil, 26 Dec 2020 ![]() |
|
![]() |
||
Support →
I have a question →
more than one callback ?Started by richb201, 23 Jul 2020 ![]() |
|
![]() |
||
Support →
I have a question →
CSRF Regenerate Not WorkingStarted by satheesh, 10 Dec 2019 ![]() |
|
![]() |
||
Support →
I have a question →
Add row from another tableStarted by SamArt, 03 Dec 2019 ![]() |
|
![]() |
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users