Michael Davidovich · Apr 22, 2022

Macros in Embedded HTML

I am referencing the documentation here:

I have embedded html within a <script language="cache" runat="server"> block.  Within that I'm defining and using a macro, but it doesn't display at all. Something like:

<script language="cache" runat="server"> 
#Define displayString stringData 

If I 'w $$$displayString' outside of the embedded html, the string is written to the page as expected so I know the Macro is being defined.  I initially thought that maybe I wasn't understanding when the macros are defined and granted I'm still a little unsure, but this seems to prove that the macro should be defined and available.  

Any thoughts as to why this doesn't work?

Product version: IRIS 2020.1
$ZV: IRIS for Windows (x86-64) 2020.1.1 (Build 408U) Sun Mar 21 2021 22:04:09 EDT
0 148
Discussion (2)1
Log in or sign up to continue

@Guilherme Mendes Thank you.  That's exactly it.  That documentation was misleading, and I think it's fair to say so since there are so many ways to embed this and that into that and this!