I've created a web2py grid of records based on the selection on the page. i.e. a table COMPANY has many EMPLOYEES -- someone selects a given COMPANY and a SQLFORM.grid of the related EMPLOYEES is shown.
Question: How can I customize the web2py Add/Edit forms that appear when the respective buttons are pushed on the Grid.
More specifically, if one wishes to add an EMPLOYEE, I need to hide the related COMPANY field on the add form, yet still fill in the value with whatever COMPANY is currently selected.
I see formargs, editargs, createargs, etc., but am having trouble finding examples (that I understand) of how to modify these forms and not recreate the wheel by making totally custom add/edit grid forms.
Your responses are most appreciated. I am a novice web2py user with limited webapp development experience.
Thanks in advance.