Hi,

I am using customized form for adding records into database and using 
smartgrid to view/edit the records inserted in the database. Since, I am 
using the customized form for adding records into the database, I want to 
use the same layout for Edit operation (from SMARTGRID).

To achieve this, I added the check in the controller as :

{extend 'layout.html'}}
{{if 'edit' in request.args:}}
{{=grid.custom.begin}}
<div>Name of object {{=grid.custom.widget.name}}</div>
{{=grid.custom.submit}}
{{=grid.custom.end}}
{{else:}}
{{=grid}}
{{pass}}

But with this code, I am getting error. Can someone please help me on how 
to use custom form with SMARTGRID

-Sarbjit

-- 

--- 
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/groups/opt_out.


Reply via email to