Macros in Embedded HTML
I am referencing the documentation here: https://docs.intersystems.com/ens201815/csp/docbook/DocBook.UI.Page.cls?...
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"></script>
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?
Hi, Michael!
Try
@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!