[Zope] Tree hierarchy problem with database
Dieter Maurer
dieter@handshake.de
Fri, 7 Sep 2001 00:01:17 +0200 (CEST)
juangar@dei.inf.uc3m.es writes:
> ....
> SELECT objectid, objectname
> FROM myobjects
> WHERE
> <dtml-sqltest parentid type=int>
> ....
> <dtml-let objectid="'0'">
> <dtml-tree id=objectid branches_expr="lrecusos(codigo_recurso=objectid)">
> <b><dtml-var codigo_recurso></b>
> </dtml-tree>
> </dtml-let>
>
> The problem is that it does not show the tree properly, it only shows
> the tree properly at the begining, when I want to expand the tree it
> shows in the next levels of the tree the elements that are at the
> highest level. What can I do? I think that the problem is that objectid
> does not change.
You renamed "parentid" (to "codigo_recurso").
Is it possible that in your database "objectid" is not
called "objectid"?
Would look precisely, as you describe it...
Dieter