Jump to content


Member Since 05 Sep 2012
Offline Last Active Oct 10 2012 11:43 AM

Posts I've Made

In Topic: ajax_list error by Unknown column

05 October 2012 - 03:44 PM


I ve the same problem. currently the order takes the value from the order in another pages and seems to be passed to the controller ..
Do you have in other table from your db taht is called "banco_de_cuentas" ?

Any new about how to resolve this one ?


In Topic: Force default, edit or delete state

25 September 2012 - 12:57 PM


this will i htink also help Chris on his topic

Displaying a crud view of a view_project_table that is referring to a project_table and concatenate with subproject_table
but when i clicked add -> using the create form from the crud ojbject referring to the project_table only ... so only call the edit / delete / create form of the crud object, not the grid list.


In Topic: Force default, edit or delete state

19 September 2012 - 07:49 AM


Thanks for this help

But i did know how to add a link on a specific column :)
let s say, in my projects controller, i have a projects_view method with grocery object pointing to projects_view view. with a project code. when i click edit on a row edit link, it calls a function , with a grocery object refering to projects_table. I want to reach the edit page just as if i ve click on a edit link in a grocery object refering to the projects_tables.

here's my code:

function get_list_from_projects_view(){

        $crud = new grocery_CRUD();
        $crud->unset_operations(); // it s a view


        $output = $crud->render();


and the function:

function callback_projectedit_link($value, $row){

        return ('<a href="'.base_url("index.php/projects/index/edit/".$row->project_code).'">'.$value.'</a>');

but i want the edit link to act as if i clicked on an edit link from this grid (in the same controller) where i would have passed the project code (so force the edit state from this object
function get_list_from_projects_table($code){
$crud = new grocery_CRUD();
$output = $crud->render();

any idea ?


In Topic: callback_column weird behavior.

10 September 2012 - 01:46 PM

Ha ok
I understand now, add a new column for the display, put the project code in it , so i can call the callback function on this new column.
Great .

Thanks for this solution :)

In Topic: callback_column weird behavior.

10 September 2012 - 01:19 PM


Thanks for your solution.
Since i can't change the database structure (not mine) i ll simply change the column on which i call the callback :)

Thank you :)

PS: Did i miss the info saying the call back should not be called on a primary key ? (ok normally, primary key should not be change :P, and the database strucutre is a bit weird ... *emergency evade process engaged* :D ) )