thank you ,Golden Tiger
yes, I'm sure I insert the records.
and the first grid can display,
<h2> 1.all data </h2>
{{ =grid}}
but the second can not!
<h2>2.all data </h2>
{{ =grid}}
On May 29, 7:32 am, GoldenTiger <[email protected]> wrote:
> did you insert any record?
>
> On 28 mayo, 15:28, leo <[email protected]> wrote:
>
>
>
> > Hi,everyone, i'm a newbie for web2py,I'm in trouble when I use the
> > plugin_jqgrid. this is my code:
>
> > my dbmodel:
>
> > db.define_table("data",
> > SQLField("name", notnull=True, default=None),
> > SQLField("date",notnull=True),
> > SQLField("number", notnull=True, default=None),
> > SQLField("later_times", "integer", default=None),
> > SQLField("leave_early_times", "integer", default=None),
> > SQLField("absenteeism_times", "integer", default=None),
> > SQLField("later_time",default=None),
> > SQLField("leave_early_time", default=None),
> > SQLField("work_time", default=None),
> > SQLField("department",default=None),
> > SQLField("description",default=None))
>
> > my controller:
>
> > def index():
>
> > grid=plugin_jqgrid(db.All_work_data,columns=['id','name','date','number','later_times','leave_early_times','absenteeism_times','later_time','leave_early_time','work_time','department','description'],,col_width=75,height=600)
> > return dict(grid=grid)
>
> > my view:
> > default/index.html
>
> > {{extend 'layout.html'}}
>
> > <h2> 1.all data </h2>
> > {{ =grid}}
>
> > <h2>2.all data </h2>
> > {{ =grid}}
>
> > I found just one grid display in my page when i run the code.
> > where is the problem?- Hide quoted text -
>
> - Show quoted text -