Category |
Member |
Args |
Returns |
Description |
Gateway |
Object |
() |
IDispatch MRObject |
For ModelRight's database-manipulation scripts, ScriptContext.Object returns the "target" object, that is the object that ModelRight wants the script to operate upon. For example, for the Column/Alter Script, ScriptContext.Object provides an MRObject of type Column, that pertains to a particular column.
For User Defined scripts, ScriptContext.Object provides an MRObject pertaining to the script itself.
In either case, the returned MRObject can be used to get to the Model, etc. |
|
Options |
() |
IDispatch MRObject |
Returns an MRObject as a container for Properties, used by ModelRight to pass options to the script. |
|
ScriptDocument |
() |
IDispatch ScriptDocument |
Returns the ScriptDocument object to which to write (appearing in the script output window) |
Database |
CurrentDatabase |
() |
String |
??? |
|
PrevDatabase |
() |
String |
??? |
Model Subset |
ContainedInSelectedModelSubset |
(Obj: IDispatch) |
Boolean |
Tells whether supplied MRObject is in SelectedModelSubset |
|
HasSelectedModelSubset |
() |
Boolean |
??? |
|
SelectedModelSubset |
() |
IDispatch MRObject? MRModel? |
??? |
Migration |
MigratingColumn |
() |
MRObject? |
??? |
|
MigratingRelation |
() |
MRObject? |
??? |
UI selection |
IsSelectedObject |
(Obj: IDispatch) |
Boolean |
|
TransactionsDelta |
IsAlterContext |
() |
Boolean |
Tells a script whether it's being called as part of an Alter operation or not |
Category |
Member |
Args |
Returns |
Description |
Utility |
Initialize |
() |
|
In automation clients, must be called right after obtaining a ScriptFramework object |
Model |
ActiveModels |
() |
IUnknown MRModelCollection |
??? |
|
CloseModel |
(Model: IDispatch) |
|
For automation clients, call this when finished with model. |
|
CreateModel |
() |
IDispatch MRModel |
Create a new model |
|
CurrentModel |
() |
IDispatch MRModel |
The model that's active in the ModelRight window |
|
LoadModel |
(ModelPath: String) |
IDispatch MRModel |
Load model from file (xxx\xxx.wer) |
|
Model |
(ModelId: String) |
IDispatch MRModel |
Get the model of the name supplied. |
|
SaveModel |
(ModelPath: String, Model: IDispatch) |
|
Save model to file |
MRObject |
CreateObject |
(type: String, Owner: IDispatch) |
IDispatch MRObject? |
Create an MRObject of the named type |
|
CreateObjectById |
(type: Long, Owner: IDispatch) |
IDispatch MRObject? |
Same as CreateObject, but by integer type. |
|
DeleteObject |
(Object: IDispatch) |
Boolean |
- |
Property |
CreatePropertyValue |
(ObjType: String, PropType: String) |
IDispatch MRPropertyValue |
Use MetaModel to create a MRPropertyValue of the appropriate datatype. |
|
CreatePropertyValueById |
(ObjType: Long, PropType: Long) |
IDispatch MRPropertyValue |
Like CreatePropertyValue, but using integer PropType |
MetaModel |
MetaModel |
() |
IDispatch MRMetaModel |
The MetaModel currently in effect (specific to particular database product). |
UI selection |
CurrentDrawableSelection |
() |
IUnknown MRObjectCollection |
The Graphics of the items currently selected in the ModelRight UI |
|
CurrentSelection |
() |
IUnknown MRObjectCollection |
The data model items currently selected in the ModelRight UI |
Misc |
Evaluate |
(Property: String) |
String |
Runs a script, returns the Document output text. |
Category |
Member |
Args |
Returns |
Description |
Identity |
Equals |
(Obj: IDispatch) |
Boolean |
Does this calculate object identity or value equality? |
|
Id |
() |
Long |
Integer Id |
|
Name |
() |
String |
- |
Type |
IsValid |
() |
Boolean |
When is an MRObject invalid? |
|
type |
() |
Long |
Type within the ModelRight world: 6=Table, 14=View, 7=Column etc. |
|
TypeName |
() |
String |
String version of object type: "Table", "View" etc |
Children |
AllChildren |
() |
IUnknown MRObjectCollection |
- |
|
ChildByName |
(type: String, Name: String) |
IDispatch MRObject |
Access a child of particular type and name |
|
ChildByOrder |
(type: String, Order: Long) |
IDispatch MRObject |
Access children of a particular type, in order. |
|
ChildOrder |
(Child: IDispatch) |
Long |
Tells order number of a child object within the children collection of the current object |
|
Children |
(type: String) |
IUnknown MRObjectCollection |
Returns Children that match type Type |
|
ChildrenById |
(type: Long) |
IUnknown MRObjectCollection |
Returns an collection of child objects, matching a type number. |
|
ChildrenByIdSortedByName |
(type: Long) |
IUnknown MRObjectCollection |
Returns an collection of child objects, matching a type number, sorted by Name. |
|
ChildrenSortedByName |
(type: String) |
IUnknown MRObjectCollection |
Returns an collection of all child objects sorted by Name. |
|
HasChildrenByType |
(PropType: String) |
Boolean |
|
|
SetChildOrder |
(Child: IDispatch, Order: Long) |
Boolean Success??? |
Within this MRObjects children, move Child to be at index Order. (one based) |
Ancestor |
Model |
() |
IDispatch MRModel |
- |
|
OldOwner |
() |
IDispatch MRObject? |
??? |
|
Owner |
() |
IDispatch MRObject? |
- |
Properties |
DeleteProperty |
(type: String) |
Boolean |
- |
|
DeletePropertyById |
(type: Long) |
Boolean |
- |
|
HasLocalProperty |
(PropType: String) |
Boolean |
Tells whether named property has local value overriding inherited value |
|
HasLocalPropertyById |
(PropType: Long) |
Boolean |
Like HasLocalProperty, but by integer Id. |
|
HasProperty |
(PropType: String) |
Boolean |
Tell whether property exists |
|
HasPropertyById |
(PropType: Long) |
Boolean |
Tells whether property exists, by integer Id |
|
InheritsFrom |
() |
IUnknown ??? |
MRObject (or Collection???) from which this MRObject inherits property values |
|
Properties |
() |
IUnknown MRPropertyCollection |
returns collection of all properties on this MRObject |
|
Property |
(type: String) |
IDispatch MRProperty |
Return the Property having Property.Name = "type" (ie: the "type" arg here is misnamed). |
|
PropertyById |
(type: Long) |
IDispatch MRProperty |
Return the Property selected by integer Id. |
|
SetDatatype |
(Datatype: String) |
|
Special for Column objects: Sets column property Datatype. (Because the Datatype property takes an MRObject value, and is otherwise complicated.) |
|
SetProperty |
(type: String, Prop: IDispatch) |
Boolean |
Add this property to MRObject (possibly replacing same-named one already there). |
|
SetPropertyById |
(type: Long, Prop: IDispatch) |
Boolean |
Like SetProperty, but by integer Id |
SQL |
AlterStatement |
() |
String |
- |
|
CreateStatement |
() |
String |
- |
|
DropStatement |
() |
String |
- |
TransactionsDelta |
HasLocalOriginalProperty |
(PropType: String) |
Boolean |
See Transactions documentation |
|
HasOriginalProperty |
(PropType: String) |
Boolean |
See Transactions documentation |
|
ModifiedChildrenPosition |
() |
IUnknown ChildOrderItemCollection? |
See Transactions documentation |
|
ModifiedProperties |
() |
IUnknown MRPropertyCollection? |
See Transactions documentation |
|
OriginalChildren |
(type: String) |
IUnknown ??? |
See Transactions documentation |
|
OriginalProperty |
(type: String) |
IDispatch MRProperty |
See Transactions documentation |
Misc |
Evaluate |
(Property: String) |
String |
Runs the script pertaining to this MRObject and named by the Property argument. Returns the Document output text. |
|
ReferencedBy |
() |
IUnknown |
MRObjectCollection listing MRObjects which refer to this MRObject |