Re: [web2py] Recursive table relation

2019-04-06 Thread Carlos Cesar Caballero Díaz

That's a typo :)

El 6/4/19 a las 8:24 p.m., Leonel Câmara escribió:

Possibly because you have require instead of requires?



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


[web2py] Recursive table relation

2019-04-06 Thread Leonel Câmara
Possibly because you have require instead of requires?

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


[web2py] Recursive table relation

2019-04-06 Thread Carlos Cesar Caballero Díaz

Hi, I have this table definition:

db.define_table('organization',
    Field('name', 'string', require=[IS_ALPHANUMERIC(), IS_NOT_EMPTY(), 
IS_NOT_IN_DB(db, 'organization.name')], label=T('Name')),

    Field('description', 'text', label=T('Description')),
    Field('parent', 'reference organization', label=T('Parent 
Organization')),

    format='%(name)s' )

As you can see, an organization can include a parent organization.

My issue is that the generated create/edit form is not including the 
select for choosing the parent organization, any Idea about this?


Greetings.


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