[Zope] R: [Zope] Newbie problem with dtml-in expr.........

Marcel Preda marcel@punto.it
Thu, 4 May 2000 12:32:50 +0200


> I expect that this is somewhere in the documentation, but I cant seem to
> find it. I appolagise if I am asking a stupid question.
...
> In other words I am trying to do something similar to:
> <dtml-in expr="qryJobType(JOB_TYPE_ID='6')">
> This works ok and returns the results where the JOB_TYPE_ID=6. However the
> JOB_TYPE_ID needs to be retrieved from another query. I have tried:
> <dtml-in expr="qryJobType(JOB_TYPE_ID='<dtml-var Type_ID-->')">
...

Try:
<dtml-in expr="qryJobType(Type_ID)" mapping>
or just:
<dtml-in "qryJobType(Type_ID)"  mapping>


In expressions use var_name instead of <dtml-var var_name>

If your variable has a "special name"  (like "sequence-index")
use _.['var_name']  ( sample : _.['sequence-index'])

All the best!

PM