Hey, I recently started to do a project with web2py.
The SQLFORM.smartgrid is a real timesaver, but I would wish to do some 
adjustments:


1: Change where the Children are diplayed. Either have the posibility to 
put the Childrends column somewhere else

or I think best would be to make the entire row clickable being redirecting 
to the Children. Is there a way?


<https://lh3.googleusercontent.com/-4GVQRDAMuv0/VrSiICmK_WI/AAAAAAAAJhs/rYgItQOXj8I/s1600/change.jpg>

2. Because smartgrid does everything on the fly, I dont know how to change 
the edit form of the children.
For example in one of the inputs of the childrens form there is a user 
Field, where a user has fill in his nickname.
I want to prepolulated that field with the current logged in user, while 
leaving the user with the possiblity to change the Field.

Another Field has a format of JJJJ-XXX, for explample 2016-001. The first 
entry in the children table would be 2016-001 and so on.
When creating a new "child", I want the user to see the field greyed out 
with the new generated number in it.
So if there are 3 children in the children table and I create the 4th one, 
the field should contain 2016-004 automatictly.


I am guessing I have to leave the smartgrid magic here and build my own 
form with customized fields. If that is the case,
how to I link from the smartgrid view to my custom form, when sb clicks 
"Add record"/"Edit" on either the parent or the child.

Thank you very much for your help.
musitwo

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