You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: COSQuickRef.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,10 +9,11 @@ A list of some common ObjectScript expressions
9
9
| Call an instance method |`Do object.method(arguments)`<br>`Set variable = object.method(arguments)`<br>Note: place a . before each pass-by-reference argument |
10
10
| Create a new object |`Set object = ##class(package.class).%New()`|
11
11
| Open an existing object |`Set object = ##class(package.class).%OpenId(id, concurrency, .status)`|
12
-
| Open an existing object by unique index value|`Set object = ##class(package.class).IndexNameOpen(value, concurrency, .status)`|
12
+
| Open an existing object by unique index value|`Set object = ##class(package.class).IndexNameOpen(value, concurrency, .status)`|
13
13
| Save an object |`Set status = object.%Save()`|
14
14
| Retrieve the ID of a saved object |`Set id = object.%Id()`|
15
15
| Retrieve the OID of a saved object |`Set oid = object.%Oid()`|
16
+
| Retrieve property of a saved object |`Set variable = ##class(package.class).GetStoredPropertyName(id)`|
16
17
| Determine if an object was modified |`Set variable = object.%IsModified()`|
17
18
| Validate an object without saving |`Set status = object.%ValidateObject()`|
18
19
| Validate a property without saving |`Set status = ##class(package.class).PropertyIsValid(object.Property)`|
@@ -36,7 +37,7 @@ A list of some common ObjectScript expressions
36
37
| Find classname of an object |`Write $classname(oref)`|
37
38
| Start the SQL shell |`Do $system.SQL.Shell()`|
38
39
| Test a class query |`Do ##class(%ResultSet).RunQuery(class, query)`|
39
-
| Declare a variable's type for Studio Assist |`#dim object as package.class`|
40
+
| Declare a variable's type for Studio Assist |`#dim object as package.class`|
0 commit comments