⚠ 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

Linking to different view of same record



flash2002
  • profile picture
  • Member

Posted 27 October 2014 - 15:44 PM

I think that I am making this more difficult than it needs to be, but from the flexigrid 'Read' page of a record, I would like to include a link to a different view (of the same record) that would allow the user to view more information in a printer-friendly format.  I have created and formatted the view, my challenge is just in linking from one view to the next and passing the id number along with it to make sure that users will be viewing the same data, just in a different format.

 

Thanks in advance for the help.


Amit Shah
  • profile picture
  • Member

Posted 29 October 2014 - 06:37 AM

Hi there,

 

well the simple solution to the same is using a callback for read ... for the same you need to set the read_fields ... like edit fields and make a callback on the extra / link field to display the same.

 

For achiving the logic, you will need to tweek thegrocery crud library... reference to the same is mentioned / shared in the below link

/topic/2525-callback-addedit-field-changes-the-display-on-the-read-method/

 

 

Happy Gcing :)