Question
· Apr 22, 2022

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"> 
s stringData=obj.data 
#Define displayString stringData 
&html< 
<p>$$$displayString</p> 
> 
</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?

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