Skip to content

Commit adf30da

Browse files
Evgeny ShvarovEvgeny Shvarov
authored andcommitted
fixes with connection
1 parent ed1986c commit adf30da

6 files changed

Lines changed: 27 additions & 7 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
.DS_Store
2-
.gff
2+

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "objectscript",
66
"request": "launch",
77
"name": "ObjectScript Debug Class",
8-
"program": "##class(Sample.Person).Test()",
8+
"program": "##class(PackageSample.ObjectScript).Test()",
99
},
1010
{
1111
"type": "objectscript",

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"objectscript.conn.active": true,
33
"objectscript.conn.version": 3,
4-
"objectscript.conn.ns": "DNA",
5-
"objectscript.conn.port": 57773,
4+
"objectscript.conn.ns": "USER",
5+
"objectscript.conn.port": 52773,
66
"objectscript.export.addCategory": true
77
}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ RUN iris start $ISC_PACKAGE_INSTANCENAME quietly EmergencyId=sys,sys && \
2323
" If 'sc do \$zu(4, \$JOB, 1)\n" \
2424
" zn \"%sys\"" \
2525
" write \"Create web application ...\",!" \
26-
" set webName = \"/csp/dna\"" \
26+
" set webName = \"/csp/user\"" \
2727
" set webProperties(\"NameSpace\") = \"USER\"" \
2828
" set webProperties(\"Enabled\") = 1" \
2929
" set webProperties(\"IsNameSpaceDefault\") = 1" \

src/cls/PackageSample/ObjectScript.cls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Class PackageSample.ObjectScript
22
{
33
ClassMethod Test() As %Status
44
{
5+
set a=42
56
return "It works!"
67
}
78

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Class PackageSample.PersistentClass Extends %Persistent
22
{
3-
property Test as %VarString;
3+
4+
Property Test As %VarString;
45

56
ClassMethod CreateRecord() As %Status
67
{
@@ -9,4 +10,22 @@ ClassMethod CreateRecord() As %Status
910
return objPC.%Save()
1011
}
1112

12-
}
13+
Storage Default
14+
{
15+
<Data name="PersistentClassDefaultData">
16+
<Value name="1">
17+
<Value>%%CLASSNAME</Value>
18+
</Value>
19+
<Value name="2">
20+
<Value>Test</Value>
21+
</Value>
22+
</Data>
23+
<DataLocation>^PackageSample.PersistentClassD</DataLocation>
24+
<DefaultData>PersistentClassDefaultData</DefaultData>
25+
<IdLocation>^PackageSample.PersistentClassD</IdLocation>
26+
<IndexLocation>^PackageSample.PersistentClassI</IndexLocation>
27+
<StreamLocation>^PackageSample.PersistentClassS</StreamLocation>
28+
<Type>%Storage.Persistent</Type>
29+
}
30+
31+
}

0 commit comments

Comments
 (0)