Last active
August 29, 2015 14:07
-
-
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.
This file contains 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" 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 ]# |
Author
mhulse
commented
Oct 2, 2014
- Caché, Ensemble, DeepSee › Applying ..EscapeHTML to argumentless write OR zwrite?
- Caché, Ensemble, DeepSee › Returniing streams from a query
- Caché ObjectScript Reference: ZWRITE
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment