⚠ 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, EDIT or READ without SHOW the GRID?



wildfandango

wildfandango
  • profile picture
  • Member

Posted 05 November 2017 - 11:32 AM

Hi, all
 
Sometimes I had to make direct calls to the ADD, EDIT or READ functions:
http://...form#/add
http://...form#/edit/record
http://...form#/read/record
When the operation is finished, it returns to the GRID view ...
 
Is it possible to make a call of this type and at the end of the operation ADD, EDIT, READ does not show the GRID?
 
ex: jump to another page, close the window, etc ...
 
thx in advance

 


larasmith

larasmith
  • profile picture
  • Member

Posted 06 November 2017 - 01:19 AM

Consider using the following:

 

After adding: https://www.grocerycrud.com/enterprise/api-and-function-list/callbackAfterInsert

 

After updating: https://www.grocerycrud.com/enterprise/api-and-function-list/callbackAfterUpdate

 

I'm not sure about the READ if you can do such. I haven't tried that one yet.

 

Happy GCing!  ;)  :)  :D


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 06 November 2017 - 05:18 AM

Nice 1 Laura,

 

well .. i remember it very well in the community edition, ppl did find a hack around to deal with this situation.. but still i believe there is a way to deal with it..

If you want to bypass the grid, you can check for the state .. if the state is for listing, you can just redirect the page to wherever you want to. That way - you can still bypass the gridview.

 

Hope this solves your issue / query. 

Happy GCing :)