Jorge Godoy, el lunes 26 de diciembre a las 15:34 me escribiste:
> Is there any equivalent of form_order to tell DataController what columns
> should be shown to the user when (s)he access the first table with all records
> listed?
I've posted a ticket (#259, patch included) that let you decide what fields
of a form to show (and in what order). I have allmost sent a patch for
telling the order in the DataController constructor but I found this approach
more flexible (but I agree in some situations it could be easier to just tell
the order in the controller, specially in the case where you don't want to
provide your own form_template to DataCotroller).
> I want to specify "n" columns as a first overview of data and then allow
> filling / viewing more columns when editing. Something like listing only the
> client name and phone number and then when this client is "selected" having
> his address, zip code, and all other data shown.
The the patch in #259 is for you!
Just put ${form.insert(obj, fields=['name', 'phone'])} in your
form_template (if patch is accepted ;)
Something similar can be done with DataGrid widget.
--
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
.------------------------------------------------------------------------,
\ GPG: 5F5A8D05 // F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05 /
'--------------------------------------------------------------------'
More people die from a champagne-cork popping,
than from poison spiders