[web2py] Re: Display SQLFORM.Grid inside view of another SQLFORM.grid.

2015-07-07 Thread 黄祥
had you try to give a name for each SQLFORM.grid(formname = 'form1') and 
SQLFORM.grid(formname = 'form2')

best regards,
stifan

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Display SQLFORM.Grid inside view of another SQLFORM.grid.

2015-07-07 Thread Prasad Muley
Hi stifan,

I've tried to give a different name for each SQLFORM.grid But it didn't 
work.


On Tuesday, July 7, 2015 at 5:56:18 PM UTC+5:30, 黄祥 wrote:

 had you try to give a name for each SQLFORM.grid(formname = 'form1') and 
 SQLFORM.grid(formname = 'form2')

 best regards,
 stifan


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Display SQLFORM.Grid inside view of another SQLFORM.grid.

2015-07-07 Thread Anthony
The problem is that both grids then need to share the URL args. You can 
probably manage that by using the args argument to tell the second grid 
to ignore the first few URL args (which are used by the first grid), but 
life might be easier if you just put the second grid inside an Ajax 
component.

Anthony

On Tuesday, July 7, 2015 at 8:34:52 AM UTC-4, Prasad Muley wrote:

 Hi stifan,

 I've tried to give a different name for each SQLFORM.grid But it 
 didn't work.


 On Tuesday, July 7, 2015 at 5:56:18 PM UTC+5:30, 黄祥 wrote:

 had you try to give a name for each SQLFORM.grid(formname = 'form1') and 
 SQLFORM.grid(formname = 'form2')

 best regards,
 stifan



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Display SQLFORM.Grid inside view of another SQLFORM.grid.

2015-07-07 Thread Anthony
Also, you cannot call form.process() on a grid form, as the initial call to 
.grid() already does the processing (so you are attempting to process it a 
second time, which will fail).

On Tuesday, July 7, 2015 at 10:07:44 AM UTC-4, Anthony wrote:

 The problem is that both grids then need to share the URL args. You can 
 probably manage that by using the args argument to tell the second grid 
 to ignore the first few URL args (which are used by the first grid), but 
 life might be easier if you just put the second grid inside an Ajax 
 component.

 Anthony

 On Tuesday, July 7, 2015 at 8:34:52 AM UTC-4, Prasad Muley wrote:

 Hi stifan,

 I've tried to give a different name for each SQLFORM.grid But it 
 didn't work.


 On Tuesday, July 7, 2015 at 5:56:18 PM UTC+5:30, 黄祥 wrote:

 had you try to give a name for each SQLFORM.grid(formname = 'form1') and 
 SQLFORM.grid(formname = 'form2')

 best regards,
 stifan



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.