Skip to content

Commit a9de12a

Browse files
committed
Merge pull request #23 from intersystems-ru/GetStoredProperty
Get stored property
2 parents 2b79047 + d1b7a3d commit a9de12a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

COSQuickRef.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ A list of some common ObjectScript expressions
99
| Call an instance method | `Do object.method(arguments)`<br>`Set variable = object.method(arguments)`<br>Note: place a . before each pass-by-reference argument |
1010
| Create a new object | `Set object = ##class(package.class).%New()` |
1111
| 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)` |
1313
| Save an object | `Set status = object.%Save()` |
1414
| Retrieve the ID of a saved object | `Set id = object.%Id()` |
1515
| 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)` |
1617
| Determine if an object was modified | `Set variable = object.%IsModified()` |
1718
| Validate an object without saving | `Set status = object.%ValidateObject()` |
1819
| Validate a property without saving | `Set status = ##class(package.class).PropertyIsValid(object.Property)` |
@@ -36,7 +37,7 @@ A list of some common ObjectScript expressions
3637
| Find classname of an object | `Write $classname(oref)` |
3738
| Start the SQL shell | `Do $system.SQL.Shell()` |
3839
| 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` |
4041

4142
## ObjectScript Commands
4243

0 commit comments

Comments
 (0)