⚠ 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

How to get primary key in a listview to check with condition



Osd Sharma
  • profile picture
  • Member

Posted 25 March 2015 - 02:29 AM

how to get primary key of a row in list page to keep a condition to call add _action function.
 
for eg:
if($this->model->isEventCalendarSet($need_row_id)){
            $this->grocery_crud->add_action('Event Calendar', base_url().'design/images/img.png', 'hollie/calendar');  
        }
 
where $need_row_id should be replaced with primary key of a row.