DTML_TREE loaded from a database.
Hi there, I have an dtml-tree that is loaded from a database table.
From the table I get keyvalues and what method to be called.
I try something like this. <dtml-let object_nkl="0"> <dtml-tree id=object_nkl branches_expr="hierarki_search(parent_nkl=object_nkl)"> <a href=<!--#var screen_to_call-->?object_nkl=<!--#var object_nkl--> TARGET="Right"><dtml-var name></a> </dtml-tree> However when I look at this in the browser the part with the "object_nkl" is lost. Is there someone out there with some tips ? Cheers Fred.
However when I look at this in the browser the part with the "object_nkl" is lost.
What do you mean by this? Look in html source, and what you will probably find is that <!--#var object_nkl--> prints out <Object ...> or something like that. You are probably wanting this to be the id or some other unique identifier. Cheers. -- Andy McKay. ----- Original Message ----- From: "Rubinstein Fredrik" <fredrik.rubinstein@ivf.se> To: <zope@zope.org> Sent: Friday, July 06, 2001 2:08 AM Subject: [Zope] DTML_TREE loaded from a database.
Hi there, I have an dtml-tree that is loaded from a database table.
From the table I get keyvalues and what method to be called.
I try something like this.
<dtml-let object_nkl="0"> <dtml-tree id=object_nkl branches_expr="hierarki_search(parent_nkl=object_nkl)"> <a href=<!--#var screen_to_call-->?object_nkl=<!--#var object_nkl--> TARGET="Right"><dtml-var name></a> </dtml-tree>
However when I look at this in the browser the part with the "object_nkl"
is
lost.
Is there someone out there with some tips ?
Cheers
Fred.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Andy McKay -
Rubinstein Fredrik