On Sat, Nov 09, 2002 at 12:54:20PM -0700, Mark Gibson wrote:
Steffen Hausmann wrote:
I want to display some attributes of an object in a Form.
It works fine if I use
<dtml-with 20021109202414.0.0739256744506> <dtml-var title> </dtml-with>
but if I replace 20021109202414.0.0739256744506 (name of the object) by name (variable containing the name) im gettin a key error.
Sounds like you're referencing a string containing an object name, not the object.
You probably need to reference the object, not the name of the object. So try somthing like this:
<dtml-let myobjectname="'20021109202414.0.0739256744506'">
<dtml-with "_[myobjectname]"> <dtml-var title> </dtml-with>
</dtml-let>
I tried <dtml-with "_['myobjectname']"> before :( I didn't think about it properly... Thanks. Does someone know why <dtml-var expr="objectname.title"> dosn't work. MfG Steffen -- Manche Maenner bemuehen sich ein ganzes Leben lang, das Wesen einer Frau zu verstehen. Andere befassen sich mit weniger schwierigen Dingen, z.B. der Relativitaetstheorie.