Are you saying you do or do not want cm_patient_id in the grid? To restrict
the fields displayed, the correct argument is "fields", not "Field". What
do you mean when you say you "edit the table to put a value in
cm_patient_id"? How are you doing that (presumably not via the grid, given
that editable is False)?
Anthony
On Friday, May 3, 2013 4:15:26 AM UTC-4, Tim Richardson wrote:
>
> I must have missed something.
>
> In 2.4.6
>
> I have a MSSQL table with an integer field. When I show the table with
> SQLFORM.grid, one of the fields is being reset to 0.
> The definition of this field is
> Field("cm_patient_id","integer")
> The table is migrate =False.
>
> the SQLFORM.grid is
> form = SQLFORM.grid(db_vciadmin.web_form_1te,deletable=False,
> user_signature=False,editable=False,Field=[...]
>
>
> but cm_patient_id is not one of the fields in the Field.
> If I edit the table to put a value in cm_patient_id, I see that when the
> SQLFORM.grid controller executes, cm_patient_id is reset to zero.
> Driving me crazy. Seems a bit odd, and certainly unexpected.
>
>
>
>
>
>
--
---
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.