ShowNewObjectWindow
Description
Show new object creation window to create new object. New object can be created using prefil properties as well.
Syntax
// ICommonFunctions is binded into the MFiles global object
const result = await MFiles.ShowNewObjectWindow(
objectType,
objectCreationInfo,
prefillPropertyValues,
accessControlList,
options,
);
Parameters
| Name | Optionality | Type | Description |
|---|---|---|---|
| objectType | Required | number | Object type id. |
| objectCreationInfo | Required | ObjectCreationInfo | The ObjectCreationInfo specifying the initial state of the new metadata card. |
| prefillPropertyValues | Required | Array < PropertyValue > | PrefillPropertyValues is a collection of PropertyValue objects. TODO: AccessControlList length is checked in the implementation, so should it be changed to array. Needs verifying. unit test breaks if changed to array. |
| accessControlList | Required | AccessControlList | The accessControlList represents an access control list (ACL). |
| options | Required | DialogUIParams | Title and UI options of the dashboard [Eg: title/isModal/isResizable/isDraggable]. |
Return type
| Type | Description |
|---|---|
Promise < ObjectWindowResult > | Promise which will resolve the object window result. |