Skip to content

Instantly share code, notes, and snippets.

@mhulse
Created January 30, 2013 21:11
Show Gist options
  • Select an option

  • Save mhulse/4677030 to your computer and use it in GitHub Desktop.

Select an option

Save mhulse/4677030 to your computer and use it in GitHub Desktop.
One way to get selcected summary layout name name using Caché 2009.1 and DTI's Lightning 7.7.3.
#[ new linesonly set linesonly = "" ]#
<csp:if condition='$get(%request.Data("psid", 1))'>
#[ set linesonly = $zconvert(##class(dt.cms.support.Utilities).getSummaryLayout(gSection, ##class(dt.cms.support.Rules).getSlot(gMapping, gSection, 0), gMapping).name, "L") ]#
<csp:else>
#[ set linesonly = $zconvert(##class(dt.cms.support.Utilities).getSummaryLayout(gSection, gSlot, gMapping).name, "L") ]#
</csp:if>
#(linesonly)#
#[ kill linesonly ]#
@mhulse
Copy link
Author

mhulse commented Jan 30, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment