Created
November 1, 2011 23:59
-
-
Save mhulse/1332330 to your computer and use it in GitHub Desktop.
RULE tip using DTI and Caché COS (Objectscript)...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[ set publication = $get(%request.Data("publication", 1)) ]# | |
| <csp:if condition=($length(publication))> | |
| #(publication)# | |
| <dti:publication:set name="#(publication)#" /> | |
| #(gPublication)# | |
| </csp:if> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| <script LANGUAGE="CACHE" RUNAT="SERVER"> | |
| ... | |
| new publication,publicationName,publicationID | |
| ... | |
| set publication = ##class(dt.cms.support.Rules).getPublication(publicationName,debug) | |
| ... | |
| kill publication,publicationName,publicationID | |
| ... | |
| </script> | |
| ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment