Skip to content

Commit d90ddfe

Browse files
committed
Open object by property value
If Class has unique index f.e. on property value IndexNameOpen method is generated to support openings by index value
1 parent 4d350ab commit d90ddfe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CHEAT.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Some most encountered COS 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)` |
13+
1214
| Save an object | `Set status = object.%Save()` |
1315
| Retrieve the ID of a saved object | `Set id = object.%Id()` |
1416
| Retrieve the OID of a saved object | `Set oid = object.%Oid()` |

0 commit comments

Comments
 (0)