Hi Luis, those two fields are placed in the same table as the n_lote field. The funny point is that n_lote is stored correctly from the insert form generated by crud.
The problem comes when I try to se the record from the database using crud with crud.read(). The n_lote field is not shown in that form, and it should be. So, is it posible to show compute fields using crud to generate forms? thanks again, Bernardo ---------- Hola Luis, esos dos fields se encuentran en la misma tabla que n_lote. La parte rara es que n_lote se guarda bien en la base de datos cuando le das al submit del form generado por crud a partir de esa tabla. El problema viene cuando quiero ver ese registro de la base de datos, utilizando crud.read(). El campo n_lote no aparece en ese form, y creo que debería de estar. Así que, es posible que crud te muestre los compute fields en los forms que genera? gracias de nuevo, Bernardo On 25 sep, 07:10, Luis Díaz <diazluis2...@gmail.com> wrote: > Greetings, I ask where do you get r [date] r [Customer_ID] > > I think that Field should be within a > SQLFORM.factory > > so that the controller have the values of r [] > > and then loads the data: > if form.accepts > > readhttp://web2py.com/book/default/chapter/07 > Part of: SQLFORM.factory > > if you really understand > > ----------- > > saludos, pregunto de donde sacas r[fecha] y r[cliente_id] > > en mi opinión ese Field debería estar dentro de un > SQLFORM.factory > > para que así en el controller tengas los valores de r[] > > y luego cargas los datos con: > if form.accepts > > leehttp://web2py.com/book/default/chapter/07 > la parte de : SQLFORM.factory > > si es que te entendí bien > > -- > Díaz Luis > TSU Analisis de Sistemas > Universidad de Carabobo