Thanks for the pointer. I have started down a different path. Since I can't seem to catch the 'checkbox being checked event', I decided to get rid of the checkboxes. I replaced it with an add_action with the button labeled "Make Active" as you can see on the attachment. In the upper right you can see the "Active Company or Division:". Right now I have the string "Hi there". My plan is to change that string via the Make Active button. So there are two things I need to do to mke this work.
1) be able to set the "Hi There" text to whatever Company call back was pressed.
2) store the last company active in a cookie or some other global storage for this user, so next time they log in the same Make Active company is used.
I added the Make active button with:
$crud->add_action('Make Active', '', '','ui-icon-plus',array($this,company_update'));
when someone presses the Make Active button on a specific line, I want to a) store the company in a global variable B) write it to a system cookie c)change the text "Hi There" to the name of that company (perhaps on a colored background).
I see another problem too. The call function is
function company_update($primary_key , $row)
{
echo($row->company_division);
}
when I hook the callback on by using $crud->add_action, the callback is being fired initially once for each line. I only want it to fire when a user presses the Make Active button. Any idea how to stop the initial firing?