Datasource View
Audience:
Low-code EngineersSkill Prerequisites:
Listings
Takes the user to the page that shows a listing item. The page is the View Url set in the listing's data source settings, filled in with the item's values. It opens in the same browser tab or in a popup over the listing.
It's used on item buttons. It's also what the View Item special button uses.
Typical Use Cases
- Add a View button to each row that opens a details page for the record
- Show a read-only page for the item in a popup
Don't use it to
- Show an item's details without a separate page. Use Detail View or Custom Detail View instead.
- Edit the item. Use Datasource Edit instead.
- Go to any other URL. Use Redirect to URL instead.
Related Actions
| Action Name | Description |
|---|---|
| Datasource Edit | Opens the data source's Edit Url for a listing item. |
| Datasource Add | Opens the data source's Add Url. |
| Detail View | Shows an item's details in a panel, built from its fields. |
| Custom Detail View | Shows an item's details using your own template. |
Input Parameter Reference
| Parameter | Description | Supports Tokens | Default | Required |
|---|---|---|---|---|
| Open in Popup | Opens the view page in a popup over the listing instead of in the same tab. The page is loaded in an iframe, so it should look good without the site's header and menu. | No | Off | No |
| Popup Title | The title shown at the top of the popup, for example [Name]. Only used when Open in Popup is on. | Yes | empty string | No |
Where the URL comes from
Set the URL in the listing's data source settings, in the View Url field. It's available on the Database Table, SQL Advanced Query, SQL Select and obsolete Action Form data sources. See Listings Datasources.
- The URL can contain tokens for the item's fields, for example
/products/details?id=[Id]. - Unlike the Add Url and Edit Url, no
returnurlparameter is added.
The action reloads the item from the data source using its ID. It shows an error when:
| Error | Cause |
|---|---|
Entry does not exist | The item wasn't found, for example because it was deleted. |
No view url defined | The data source has no View Url, or doesn't support one. |
Data source is not configured | The listing has no data source. |
Considerations
- Final action. The action returns a result to the browser, so actions after it in the same list don't run.
- Needs an item. Use it on item buttons. On a root button's
Actionslist there's no item. In aPer Item Actionslist, the browser ignores the result, so nothing opens. - Listings only. Use it in listings. The User Guides module lists an action with the same name, without the popup parameters, but 1.28 has no implementation for it there.
Examples
To understand how to use the below examples, please see Running Examples.
1. View a product in a popup
This action opens the data source's View Url for the clicked row in a popup titled with the product's Name field.
{
"Title": "Datasource View",
"ActionType": "DataSource.View",
"Description": "Show the product page in a popup",
"Parameters": {
"OpenInPopup": true,
"PopupTitle": "[Name]"
}
}
Revised 09/26/2026