Hi,

is there a way to make a field hidden on SQLForm?

@auth.requires_login()
def ct_data_sharing():
        trial_id = int(request.vars["trial_id"])

    db.ct_data_sharing.trial_id.default = trial_id

    query = (db.ct_data_sharing.id > 0 and db.ct_data_sharing.trial_id ==
trial_id)


    form = SQLFORM.grid(query=query,
                links_in_grid=True,
                #field_id=db.rifas.id,
                csv=False,
                user_signature=False,
                ignore_rw=True,
                #fields=fields,
                #headers=headers,
                #orderby=default_sort_order,
                create=True,
                deletable=True,
                editable=True,
                details=False,
                #fields=fields_list,
                maxtextlength=70,paginate=40)


    return {"form": form}


I want to make th trial_id field hidden and with a default value equal
trial_id

Is it possible?

rgds

diego

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAGx9uxR%2BQUczEPibVPGtJvG_kWXsHePDfOHdzcAoOPsPC9PAkw%40mail.gmail.com.

Reply via email to