-
Notifications
You must be signed in to change notification settings - Fork 3
openDialog
PhuocLe edited this page Jun 10, 2024
·
3 revisions
Xrm.Navigation.openDialog(dialogName, dialogOptions, dialogParameters).then(successCallback, errorCallback);
A logical name
that you define in the Metadata
control.
The dialogOptions object contains the following values.
Name | Type | Description |
---|---|---|
width |
Number or Object | (Required ) The width of dialog. To specify the width in pixels, just type a numeric value. To specify the width in percentage, specify an object of type SizeValue with the following properties:- value : The numerical value of type Number.- unit : The unit of measurement of type String. Specify % or px . Default value is px . |
height |
Number or Object | (Required ) The height of dialog. To specify the height in pixels, just type a numeric value. To specify the width in percentage, specify an object of type SizeValue with the following properties:- value: The numerical value of type Number. - unit: The unit of measurement of type String. Specify % or px . Default value is px . |
position |
Number | (Required ) Specify 1 to open the dialog in center; 2 to open the dialog on the far side. |
An object that you want to pass to dialog. You can access dialogParameters
in the event OnLoad
.
Promise resolves when the dialog is closed. An object parameters
passed to the result.