|
1 | 1 | # AB Dialogs |
2 | | -AB Dialogs is a managed solution that provides developer a configurable wrapper and convenient way to open dialogs in new UCI interface of Dataverse and process results of the call. |
| 2 | +AB Dialogs is a managed solution that provides the developer a configurable wrapper and convenient way to open dialogs in the new UCI interface of Dataverse and process results of the call. |
3 | 3 |
|
4 | | -Here is the list of steps you need to perform in order to use this dialog in your Model Driven Apps: |
5 | | -1. Download and install the latest release of ABDialog solution |
6 | | -1. Add the reference to "ab_/Dialogs/Dialog.js" webresource to the place where you plan to call the dialog from: |
| 4 | +Here is the list of steps you need to perform in order to use this dialog in your Model-Driven Apps: |
| 5 | +1. Download and install the latest release of ABDialogs solution |
| 6 | +1. AAdd the reference to the "ab_/Dialogs/Dialog.js" webresource to the place where you plan to call the dialog from: |
7 | 7 | * When you plan to use it in the form scripts, just add the reference as a regular JavaScript webresource |
8 | 8 | * When you plan to use it in the ribbon scripts, add the reference to the webresource before using it in your code using "Custom JavaScript" Enable Rule |
9 | 9 | 1. Prepare your "Dialog Configuration" object that has the following structure: |
@@ -55,7 +55,7 @@ interface ChoiceValue { |
55 | 55 | } |
56 | 56 | ``` |
57 | 57 | Call **AB.Dialogs.open** function to open the dialog. This function returns the promise. |
58 | | -When user closes dialog using "X" button or "Cancel" button, promise is resolved with **null** value and returns the object with all values selected in dialog otherwise. |
| 58 | +When a user closes the dialog using the "X" button or "Cancel" button, the promise is resolved with **null** value and returns the object with all values selected in dialog otherwise. |
59 | 59 |
|
60 | 60 | Here is an example of JavaScript webresource that is used to show 2-Tabs Dialog with 2 inputs each: |
61 | 61 |
|
@@ -115,7 +115,7 @@ AB.DialogDemo = (function () { |
115 | 115 | })(); |
116 | 116 | ``` |
117 | 117 |
|
118 | | -If user leaves text and datetime field unchanged, sets the boolean field to true and selects "Option 2" and "Option 3" in choices control here is the object that will be returned to the callback: |
| 118 | +If a user leaves text and datetime field unchanged, sets the boolean field to true and selects "Option 2" and "Option 3" in choices control here is the object that will be returned to the callback: |
119 | 119 | ```json |
120 | 120 | { |
121 | 121 | "text1": "Initial Value of Text Field", |
|
0 commit comments