Skip to main content

ShowNewObjectWindow

Description

Show new object creation window to create new object. New object can be created using prefil properties as well.

Note: Multiple files are not supported in ObjectCreationInfo.source_files.

Syntax

// ICommonFunctions is binded into the MFiles global object
const result = await MFiles.ShowNewObjectWindow(
objectType,
objectCreationInfo,
prefillPropertyValues,
accessControlList,
options,
);

Parameters

NameOptionalityTypeDescription
objectTypeRequirednumberObject type id.
objectCreationInfoRequiredObjectCreationInfoThe ObjectCreationInfo specifying the initial state of the new metadata card.
prefillPropertyValuesRequiredArray < PropertyValue >PrefillPropertyValues is a collection of PropertyValue objects.
accessControlListRequiredAccessControlListThe accessControlList represents an access control list (ACL).
optionsRequiredDialogUIParamsTitle and UI options of the dashboard [Eg: title/isModal/isResizable/isDraggable].

Return type

TypeDescription
Promise < ObjectWindowResult >Promise which will resolve the object window result.