- The update_record function is not available for Rows of keyed tables.

That is why i believe.  

On Tuesday, November 18, 2014 11:02:05 PM UTC-5, Stephen McCamy wrote:
>
> Hello,
>
> I am having an issue with SQLFORM.grid where when there are more than one 
> records returned the edit button only shows data for the first record.  If 
> I do update it then updates all the records with the new values.  I can't 
> seem to figure out why.
>
> Here is my db definition:
>
> db.define_table('Correlation',Field('IncidentID','id',label='Event 
> ID'),Field('Type',represent=lambda r, row: 
> db.CorrelationType[r].CorrelationType),Field('Value'),Field('Context',represent=lambda
>  
> r, row:A('View',_href=(r),_target='new') if row.Type==4 else r))
>
> db.define_table('CorrelationType',Field('P_Id','id'),Field('CorrelationType'))
>
> Here is the SQLFORM.grid:
>
> corq=db.Correlation.id==(request.args(0))
>     
> cor=SQLFORM.grid(query=corq,fields=[db.Correlation.Type,db.Correlation.Value,db.Correlation.Context],links=urllinks,searchable=True,maxtextlength=100,details=True,
>  
> editable=True,deletable=False,user_signature=False,create=True,links_in_grid=True,args=[request.args[0]],csv=True,exportclasses=dict(
>             csv_with_hidden_cols=False,
>             xml=False,
>             html=False,
>             json=False,
>             tsv_with_hidden_cols=False,
>             tsv=False))
>

-- 
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.

Reply via email to