Created
September 18, 2014 21:18
-
-
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.
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="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