Skip to content

Commit b670145

Browse files
committed
Added context Name and Description for interoperability save
1 parent 35b9dc6 commit b670145

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

isc/py/ens/Operation.cls

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ Method SaveContext(request As isc.py.msg.SaveRequest, Output response As Ens.Str
6161
set sc = ##class(isc.py.data.Context).SaveContext(.context)
6262
quit:$$$ISERR(sc) sc
6363

64+
set context.Name = request.Name
65+
set context.Description = request.Description
66+
set sc = context.%Save()
67+
quit:$$$ISERR(sc) sc
68+
6469
set response = ##class(Ens.StringResponse).%New(context.%Id())
6570

6671
quit sc

isc/py/msg/SaveRequest.cls

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,25 @@ Class isc.py.msg.SaveRequest Extends Ens.Request
66
/// Wildcards * and ? are accepted, masks are commaseparated.
77
Property Mask As %VarString [ InitialExpression = "*" ];
88

9+
/// Short name for the context.
10+
Property Name As %String;
11+
12+
/// Extended context info.
13+
Property Description As %VarString;
14+
915
Storage Default
1016
{
1117
<Data name="SaveRequestDefaultData">
1218
<Subscript>"SaveRequest"</Subscript>
1319
<Value name="1">
1420
<Value>Mask</Value>
1521
</Value>
22+
<Value name="2">
23+
<Value>Name</Value>
24+
</Value>
25+
<Value name="3">
26+
<Value>Description</Value>
27+
</Value>
1628
</Data>
1729
<DefaultData>SaveRequestDefaultData</DefaultData>
1830
<Type>%Library.CacheStorage</Type>

0 commit comments

Comments
 (0)