Export it as XML. Store in VCS with code. Import with the rest of the code.
Other option is to store it as XData, here's sample code:
XData DisplayProperies
{
<Export generator="Cache">
<Global>
<Node><Sub>^Test</Sub>
<Node><Sub>1</Sub>
<Data>123</Data>
</Node>
<Node><Sub>Val2</Sub>
<Data>prop3</Data>
</Node>
<Node><Sub></Sub>
<Data>prop1</Data>
</Node>
</Node>
</Global>
</Export>
}
/// Set global
/// do ##class(Class.Installer).setGlobal()
ClassMethod setGlobal() As %Status
{
#dim sc As %Status = $$$OK
#dim className As %String = $classname()
// search for XData: DisplayProperies
#dim xdata As %Dictionary.CompiledXData = ##class(%Dictionary.CompiledXData).IDKEYOpen(className, "DisplayProperies",, .sc)
quit:$$$ISERR(sc) sc
set stream = xdata.Data
set sc = $system.OBJ.LoadStream(stream, "/displaylog=0 /displayerror=0")
quit sc
}- Log in to post comments



