⚠ 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

It´s possible show a specific record id in grocery crud list



mbmtnez
  • profile picture
  • Member

Posted 16 November 2017 - 15:54 PM

I do not know if this is possible, I want, that in my list view, only see and specific record, for ecample, the record with id five, that way the user can only see that record and not all the records of my table.

 

Is this possible??

Thanks in advance.


Amit Shah
  • profile picture
  • Member

Posted 16 November 2017 - 23:26 PM

Well u can simply filter the same with the $crud->where clause.. just set your criteria like $db->where .. and all done.

 

Happy GCing:)


mbmtnez
  • profile picture
  • Member

Posted 17 November 2017 - 16:49 PM

Amit, thanks for answer. Sometimes the easiest things are the ones we lose sight of.


Amit Shah
  • profile picture
  • Member

Posted 18 November 2017 - 11:24 AM

very true my friend.

 

Anyways - Happy GCing :)