Skip to content

Instantly share code, notes, and snippets.

@mhulse
Created September 18, 2014 21:18
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/2bf966495e5da2ab2612 to your computer and use it in GitHub Desktop.
Save mhulse/2bf966495e5da2ab2612 to your computer and use it in GitHub Desktop.
Caché 2009.1 - NEWSCYCLE Solutions: DTI Lighting 7.7.x: Get run date of story method.
<script language="cache" method="runDate" arguments='cmsStory:dt.cms.schema.CMSStory=-1' returntype="%String" procedureblock="1">
set return = ""
try {
set cmsStoryId = cmsStory.%Id()
&sql(
SELECT runDate INTO :return
FROM dbo.adDbPageInfo api, dbo.storyPageElements spe, dbo.story sty, dt_cms_schema.CMSStory cms
WHERE api.logicalPageId = spe.logicalPagesId
AND sty.storyId = spe.storyId
AND story->storyid = sty.storyid
AND cms.id = :cmsStoryId
)
} catch(e) {
; What to log and where?
}
quit return
</script>
<csp:comment>
<csp:object name="gStory" classname="dt.cms.schema.CMSStory" objid="26035312">
#(..rundate(gStory))#
<br>
</csp:comment>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment