Should be:

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

On Sunday, 14 July 2013 23:14:03 UTC-5, Sarbjit singh wrote:
>
> 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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to