Create a context object for the dialog

A context object enables you to reuse the same dialog type in different panes and for different purposes.
  1. Create the context object:
    1. In
      Project view
      , right-click
      UI
      and select
      New
      Model
      Object
      .
    2. Hover-over the object, select
      Edit
      , and enter
      ConfirmationDialogContext
      .
  2. Convert the context object into an object type:
    1. In
      Type view
      , double-click
      User interface
      .
    2. From
      Project view
      , drag
      ConfirmationDialogContext
      into the
      Type view
      pane.
      In
      Project view
      ,
      ConfirmationDIalogContextType (type)
      appears.
    3. In
      Project view
      , right-click
      ConfirmationDialogContext
      and select
      Delete
      .
  3. Configure the context object type:
    1. In
      Project view
      , select
      ConfirmationDialogContextType (type)
      .
    2. In
      Properties
      , at the top, select
      Add
      and select
      Variable
      .
    3. Hover-over the variable, select
      Edit
      and enter
      Message
      .
    4. Select
      Int32
      and select
      LocalizedText
      .
      TIP: If you do not see the required option, select the
      Show all
      check box.
    5. Remove the
      Message
      variable value.
    6. In
      Project view
      pane, right-click
      ConfirmationDialogContextType (type)
      and select
      New
      Method invocation
      .
    7. Hover-over the method invocation, select
      Edit
      and enter
      OnConfirm
      .
    8. In
      Project view
      , right-click
      ConfirmationDialogContextType (type)
      and select
      New
      Method invocation
      .
    9. Hover-over the method invocation, select
      Edit
      and enter
      OnCancel
      .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.