Netzke Popup window

50 views
Skip to first unread message

ejo

unread,
May 13, 2013, 5:09:09 AM5/13/13
to net...@googlegroups.com
Hi,

In the Netzke grid, if the value of any field is updated (using apply button) I need to show a popup box with yes/no option and if
yes is clicked an email should be triggered after saving the data. If no is clicked email triggering is not required but data needs to be saved.


Is there any way to do this?

Thanks.

Max Gorin

unread,
May 13, 2013, 5:38:38 AM5/13/13
to net...@googlegroups.com
Hi,

On the top level, you'll need to create your own custom Form inheriting
from Netzke::Basepack::Form, implement the logic you need there, then
use this form instead of the default form in your grid, as shown here:

https://github.com/netzke/netzke-basepack/blob/master/test/basepack_test_app/app/components/user_grid.rb

Also the source code of the grid may be helpful, e.g.
https://github.com/netzke/netzke-basepack/blob/master/lib/netzke/basepack/record_form_window.rb

Cheers,
--
Max Gorin
@nomadcoder
author of @netzke

ejo

unread,
May 13, 2013, 10:03:50 AM5/13/13
to net...@googlegroups.com
Hi Max,

I am already creating my own form for another purpose. However I think I need a different approach to show a confirmation like popup box to capture
the yes/no values. I can implement the logic but how this value can be passed to Netzke controller?

If it is possible please tell me how I can produce the popup on clicking the apply button and later pass the value to netzke controller?

Thanks.
Reply all
Reply to author
Forward
0 new messages