help with #in expr= syntax . .
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ok, here's one . . . .how do I get hte following to work? <TABLE BORDER=1 WIDTH="100%"> <!--#in proc_role--> <TR> <TD ALIGN=center> <P> <!--#in expr="pri_nick_email(role='<!--#var sequence-item-->')" --> <A HREF="mailto://<!--#var email-->"> <!--#var nick--> </A> <!--#/in--> </P> </TD> </TR> <!--#/in--> </TABLE> basically, I have a database of usernicks and email addresses which are associated with various user roles. The database guarantees that each role has ONE adn ONLY ONE user associated with the primary field (hence pri_nick_email) If I take out the #var statement in my <!--#in exr . . .--> statement and replace it with a valid token from proc_role, it works just fine. How do I get it to iterate over the list and return the query results? I've tried a number of syntax variations, but I'm missin something here . .. - -daw - --------------------------------------------- A computer without Microsoft products is like a dog without bricks chained to its head - --------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: PGP for Personal Privacy 5.0 Comment: Processed by Mailcrypt 3.5.1, an Emacs/PGP interface Charset: noconv iQA/AwUBNsCdxdtGhckXZmDjEQIIJACg4O86WJ0ZI9HJDV99cxYnZ4YR1xcAoLIU SivLkP4ArztKkWvQ2/i48jAR =cAGb -----END PGP SIGNATURE-----
Ooh, one I can answer (maybe): You don't need to use DTML inside DTML - in fact, you can't. Try my suggestion below: David Wagle wrote: <deleted> <P>
<!--#in expr="pri_nick_email(role='<!--#var sequence-item-->')"
Does something like this work? <!--#in expr="pri_nick_email(role=sequence-item)"
--> <A HREF="mailto://<!--#var email-->"> <!--#var nick--> </A> <!--#/in-->
HTH, Ross -- Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu> NSBRI Research Scientist/Programmer Computer and Information Technology Institute Rice University, 6100 S. Main St., Houston, TX 77005
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ross J. Reedstrom writes:
Ooh, one I can answer (maybe):
nope -- god try though . . .
You don't need to use DTML inside DTML - in fact, you can't. Try my suggestion below:
ok -- that's a good point to remember but . . .
David Wagle wrote: <deleted>
<P>
<!--#in expr="pri_nick_email(role='<!--#var sequence-item-->')"
Does something like this work?
<!--#in expr="pri_nick_email(role=sequence-item)"
--> <A HREF="mailto://<!--#var email-->"> <!--#var nick--> </A> <!--#/in-->
Doesn't work :( anyone else have a guess? - -daw - --------------------------------------------- A computer without Microsoft products is like a dog without bricks chained to its head - --------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: PGP for Personal Privacy 5.0 Comment: Processed by Mailcrypt 3.5.1, an Emacs/PGP interface Charset: noconv iQA/AwUBNsCpoNtGhckXZmDjEQLvQwCfTFJAK5HZ/WlgNy0j8kRoNqvFdR4An3cy 8HOcp0kakzq7NkNjJuU8P8dv =xbfg -----END PGP SIGNATURE-----
On Tue, 9 Feb 1999, David Wagle wrote:
Ross J. Reedstrom writes:
<!--#in expr="pri_nick_email(role='<!--#var sequence-item-->')"
Does something like this work?
<!--#in expr="pri_nick_email(role=sequence-item)"
anyone else have a guess?
<!--#in expr="pri_nick_email(role=_['sequence-item'])" --> My guess Pavlos
participants (3)
-
David Wagle -
Pavlos Christoforou -
Ross J. Reedstrom