Skip to content

Instantly share code, notes, and snippets.

@mhulse
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhulse/1eaf3dc00d7a45d7e8ff to your computer and use it in GitHub Desktop.
Save mhulse/1eaf3dc00d7a45d7e8ff to your computer and use it in GitHub Desktop.
Caché 2009.1 - NEWSCYCLE Solutions: DTI Lighting 7.7.x: Inspect and debug the gStory global; dumping data to see what’s there; stream a blob for inspection.
<script language="cache" method="OnPreHTTP" arguments="" returntype="%Boolean">
do %response.SetHeader("Content-Type", "text/plain")
set %response.CharSet = "utf-8"
quit 1
</script>
Story: http://registerguard.com/rg/news/local/32232112-75/its-getting-close-to-wire-for-eweb-master-development-contenders.html.csp
<csp:object name="gStory" classname="dt.cms.schema.CMSStory" objid="32232112">
Dump the CMSStory object:
------------------------------------------------------------------------
#[ do $system.OBJ.Dump(gStory) ]#
Dump the DBO.Story object:
------------------------------------------------------------------------
#[ do $system.OBJ.Dump(gStory.getStory()) ]#
Output the DBO.Story "text" blob:
------------------------------------------------------------------------
#(gStory.getStory().text.Read($$$MaxLocalLength))#
Output debug:
------------------------------------------------------------------------
#[ zwrite ]#