> For the complete documentation index, see [llms.txt](https://docs.appstrategy.com/apprules-r-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appstrategy.com/apprules-r-documentation/platform/platform-features/base-activities/base-activities-2.md). Agents can also search and read this documentation through its [MCP server](https://docs.appstrategy.com/apprules-r-documentation/~gitbook/mcp).

# Dialog Activities

## Dialogs Module

&#x20; The appConnector Dialogs activities module contains activities for entering or viewing values during runtime or test runs of your project.

<figure><img src="https://1923141441-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFjmFrZ8sef1J7qkr6H%2Fuploads%2F4CnDxB6jxWEfEPWka24A%2Fimage.png?alt=media&amp;token=6d43a85c-93aa-4fec-8306-04142deef052" alt=""><figcaption></figcaption></figure>

### Activities

The table below shows the activities in the Dialogs module.  The activities display the values when the project is run. Viewers activities are displayed when the workflow is run interactively from the Designer.

| Activity              | Description                                                                                                               |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| DisplayMessageBox     | Displays a message box. Returns Valid when OK or Yes is clicked and Invalid when No is clicked; Cancel ends the workflow. |
| EditRecord            | Displays the active record of a Source or Target for viewing and editing.                                                 |
| EditWorkflowValues    | Displays selected workflow values (data fields, variables, arguments, etc.) for editing, for debugging purposes.          |
| PromptForValue        | Prompts the user to enter a value and saves it in the workflow.                                                           |
| ViewRuntimeRecords    | Displays data records at run time.                                                                                        |
| ViewRuntimeStatistics | Displays Source and Target statistics (records read, inserted, updated, deleted and in error) at run time.                |
| ViewRuntimeValues     | Displays selected values (data fields, variables, arguments, etc.) at run time.                                           |

The viewer windows opened by EditRecord, EditWorkflowValues and the View… activities also let you end the run.

#### Activity properties

**DisplayMessageBox**

| Property | Description                                                                                        |
| -------- | -------------------------------------------------------------------------------------------------- |
| Caption  | Caption of the message box. Required.                                                              |
| Text     | Text displayed in the message box. Can include workflow values. Required.                          |
| Type     | OK (default), YesNo or YesNoCancel. Use YesNoCancel to give the user the option to end processing. |

| Button clicked | Result            |
| -------------- | ----------------- |
| OK or Yes      | Valid (True)      |
| No             | Invalid (False)   |
| Cancel         | Ends the workflow |

> **Tip:** Connect DisplayMessageBox to a FlowDecision to branch on the user's answer.

**EditRecord**

| Property | Description                                                                              |
| -------- | ---------------------------------------------------------------------------------------- |
| Record   | The Source or Target whose active record is displayed for viewing and editing. Required. |

**EditWorkflowValues**

| Property | Description                                           |
| -------- | ----------------------------------------------------- |
| Values   | The workflow values to display for editing. Required. |

**PromptForValue**

| Property           | Description                                            |
| ------------------ | ------------------------------------------------------ |
| Caption            | Caption of the prompt window. Required.                |
| Prompt             | The prompt displayed to the user. Required.            |
| DefaultValue       | Optional value pre-filled in the entry box.            |
| SaveEnteredValueIn | Where to save the value entered by the user. Required. |

The user must enter a value before clicking OK. If the window is closed without clicking OK, the default value is saved.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.appstrategy.com/apprules-r-documentation/platform/platform-features/base-activities/base-activities-2.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
