Action | Code | Alternative way |
Call a class method | ##class(package.class).method(arguments) | set variable = ##class(package.class).method(arguments) |
Call an instance method | do oref.method(arguments) | set variable = oref.method(arguments) |
Create a new object | set oref = ##class(package.class).%New() | |
Open an existing object | set oref = ##class(package.class).%OpenId(id) | |
Save an object | set status = oref.%Save() | |
Validate an object without saving | set status = oref.%ValidateObject() | |
Validate a property without saving | set status = ##class(package.class).PropertyIsValid(oref.Property) | |
Delete an existing object | set status = ##class(package.class).%DeleteId(id) | |
Link two objects | set oref1.property = oref2 | |
Clone an object | set clonedOref = oref.%ConstructClone() | |
Start the SQL shell | do $system.SQL.Shell() | >>go >> SELECTMODE = DISPLAY |
Test a class query | do ##class(%ResultSet).RunQuery(class, query) | |
Create a new standalone array | set arrayOref=##class(%ArrayOfDataTypes).%New() | |
Insert an element into an array | do oref.arrayProperty.SetAt(value,key) | do arrayOref.SetAt(value,key) |
Display an element of an array | do oref.arrayProperty.GetAt(key) | do oref.arrayProperty.GetAt(key) |
Display the size of an array | do oref.arrayProperty.Count() | write arrayOref.Count() |
Date conversion (external à internal) | set variable = $zdh(“mm/dd/yyyy”) | |
Date conversion (internal à external) | set variable = $zd(internalDate, format) | |
Time conversion (external à internal) | set variable = $zth(“hh:mm:ss”) | |
Time conversion (internal à external) | set variable = $zt(internalTime, format) | |
Display internal date/time string | write $system.SYS.Horolog() | write $horolog |
Display UTC date/time string | write $system.SYS.TimeStamp() | |
Check if variable exists | write $data(variable) | |
Return value of variable, or "" if undefined | write $get(variable) | |
For Loop Syntax | For ControlVariable = StartValue:IncrementAmount:EndValue |
Tips on Microsoft Dynamic CRM, Crystal Reports, Ensemble Cache, Microsoft SharePoint and more
Showing posts with label ensemble. Show all posts
Showing posts with label ensemble. Show all posts
Wednesday, May 4, 2011
ObjectScript Cheat Sheet for Ensemble [Cache]
Subscribe to:
Posts (Atom)
RootComponent types in solution.xml file in Dynamics CRM 365/2016
In Microsoft Dynamic CRM 2016/365 are you as confused as me when looking at the solution.xml from the solution export? looking at the xml a...
-
In Microsoft Dynamic CRM 2016/365 are you as confused as me when looking at the solution.xml from the solution export? looking at the xml a...
-
1. Stop: Stop: Play. Skip advertisements in movies and go straight to the movie. 2. Dial 0 during most automatic menu phone systems to b...
-
Action Code Alternative way Call a class method ##class( package.class ). method ( arguments ) set variable = ##cl...