Just curious why you say I should use grid instead of smartgrid.

I've been using smartgrid extensively for the relations to other tables.

    -Jim

On 4/18/2012 9:20 PM, Massimo Di Pierro wrote:
Thanks for checking this. I made one more change to trunk that should fix it. Please try it again.

BTW. make sure you use grid and not smartgrid.

On Wednesday, 18 April 2012 11:25:07 UTC-5, Jim S wrote:

    Massimo

    I updated from trunk today and now I'm getting the following
    traceback:

    Traceback(most recent call last):
       File"C:\dev\web2py\gluon\restricted.py",line205,inrestricted
         execccodeinenvironment
       File"C:/dev/web2py/applications/InfoCenter/controllers/applications.py"  
<http://127.0.0.1:8000/admin/default/edit/InfoCenter/controllers/applications.py>,line1711,in<module>
       File"C:\dev\web2py\gluon\globals.py",line175,in<lambda>
         self._caller=lambdaf:f()
       File"C:\dev\web2py\gluon\tools.py",line2670,inf
         returnaction(*a, **b)
       File"C:/dev/web2py/applications/InfoCenter/controllers/applications.py"  
<http://127.0.0.1:8000/admin/default/edit/InfoCenter/controllers/applications.py>,line1704,inrailUnloading
         form=grid.create_form
    AttributeError:'DIV'object has no attribute'create_form'


    on creates and

    Traceback(most recent call last):
       File"C:\dev\web2py\gluon\restricted.py",line205,inrestricted
         execccodeinenvironment
       File"C:/dev/web2py/applications/InfoCenter/controllers/applications.py"  
<http://127.0.0.1:8000/admin/default/edit/InfoCenter/controllers/applications.py>,line1711,in<module>
       File"C:\dev\web2py\gluon\globals.py",line175,in<lambda>
         self._caller=lambdaf:f()
       File"C:\dev\web2py\gluon\tools.py",line2670,inf
         returnaction(*a, **b)
       File"C:/dev/web2py/applications/InfoCenter/controllers/applications.py"  
<http://127.0.0.1:8000/admin/default/edit/InfoCenter/controllers/applications.py>,line1707,inrailUnloading
         form=grid.update_form
    AttributeError:'DIV'object has no attribute'update_form'


    on updates.  This worked with trunk from the 9th.  (although
    update_form was then edit_form).  Seems like there is something
    else I need to change to get this functionality back.  Any ideas?

        -Jim

    On 4/10/2012 11:39 PM, Massimo Di Pierro wrote:
    It actually was renamed update_form in trunk

    On Tuesday, 10 April 2012 13:53:47 UTC-5, Jim S wrote:

        In the example below you specify grid.update_form for the
        edit action.  But, my testing shows that this is actually
        grid.edit_form.  Should it be renamed to 'update_form' for
        consistency with CRUD?

            -Jim

        On 4/9/2012 3:58 PM, Massimo Di Pierro wrote:
        You should be able to customize the create and edit forms in
        the same way:

        {{if grid.create_form:}}
           {{=grid.create_form}}
        {{elif grid.update_form:}}
           {{=grid.update_form}}
        {{elif grid.view_form:}}
           {{=grid.view_form}}
        {{else:}}
           {{=grid}}
        {{pass}}

        You need the current trunk because I just found an issue
        about this.

        On Monday, 9 April 2012 11:55:24 UTC-5, Jim S wrote:

            Hi

            I want to customize the edit form of a .smartgrid the
            way that you can
            customize SQLFORM forms as specified in the manual under
            section 7.5.

            Is this possible?  If so, what do I use in place of
            {{=form.custom.begin}}?  How do I reference the form
            portion of the
            returned grid?

                 -Jim

Reply via email to