⚠ 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

Add a view button on flexigrid



Robert
  • profile picture
  • Member

Posted 17 June 2013 - 11:43 AM

Did anyone manage to set this up ? 


Robert
  • profile picture
  • Member

Posted 18 June 2013 - 05:58 AM

Anyone can help me a bit with this ? 


Robert
  • profile picture
  • Member

Posted 19 June 2013 - 12:09 PM

Is no one using this feature in 1.3.3. ?


victor
  • profile picture
  • Member

Posted 19 June 2013 - 23:49 PM

Show your code!


Robert
  • profile picture
  • Member

Posted 21 June 2013 - 11:47 AM

I'm using Amit Shah code from the post i link to . The grocery_crud_with_view.php and the list_with_view.php he shared.

 

I have add them to GC :

 

with the $crud = new Grocery_crud_view(); change to $crud = new Grocery_crud_with_view(); to work i get this error :

Fatal error: Uncaught exception 'Exception' with message 'The state is unknown , I don't know what I will do with your data!' in C:\xampp\htdocs\ci\application\libraries\grocery_crud_with_view.php:273 Stack trace: #0 C:\xampp\htdocs\ci\application\controllers\main.php(116): Grocery_crud_with_view->render() #1 [internal function]: Main->agenti() #2 C:\xampp\htdocs\ci\system\core\CodeIgniter.php(359): call_user_func_array(Array, Array) #3 C:\xampp\htdocs\ci\index.php(202): require_once('C:\xampp\htdocs...') #4 {main} thrown in C:\xampp\htdocs\ci\application\libraries\grocery_crud_with_view.php on line 273

 

This is a very nice future to GC but i see no one has implement it, i have look on the timeline for it to but is not added yet.

 

any help ?


Amit Shah
  • profile picture
  • Member

Posted 26 June 2013 - 15:50 PM

Well i have updated the code .. had to make changes and have shared a working set @ https://github.com/blakdronzer/gc_with_view
 
It's all explained in as what needs to be done in here. 99.99% should work with your existing codebase. It worked with mine .. .01%, just for the unexpected. 

Robert
  • profile picture
  • Member

Posted 27 June 2013 - 06:15 AM

Thanks a loot man you are a life saver :)


davidoster
  • profile picture
  • Member

Posted 27 June 2013 - 08:24 AM

Simple question: /topic/1806-add-a-view-button-on-flexigrid/#entry8193