Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

When the solution is running, and the Designer is connected with the runtime, the Datasets Monitor page show basic status server access to tables and queriesMonitoring the Dataset module you keep track of Database Connections to ensure your data is accessed and updated correctly.

On this page:

Table of Contents
maxLevel3
stylenone


Image Added


Monitoring

Datasets

Monitor Table

The Datasets Monitor provides a way to monitor real-time information related to When monitoring the Dataset module , you will monitor the behavior of connected DBs. To execute the monitoring, you will use three methods to ensure the Database is connected you have data access:

  • Is Started: Check if your Database is running.
  • Query Execution Time: Evaluate the Query response time.
  • Connection String: Verifies if the Database is correctly configured.

Is Started

This property indicates if the Dataset is initialized and connected to the Database. You can use it to check if the Dataset is currently running. The code block below shows an example of executing this method using Scripts.

Code Block
languagec#
titleExample
bool isStarted = @Dataset.DB.YourDatabaseName.IsStarted;

Note that the returning value is a boolean. If the received value is true, the Database is initialized and connected.

Query Execution Time

You can measure the execution time of a query by checking the time before and after executing the query. The code block below shows an example of executing this method using Scripts.

Code Block
languagec#
titleExample
DateTime startTime = DateTime.Now; 
@Dataset.Query.YourQueryName.SelectCommand(); 
DateTime endTime = DateTime.Now; 
TimeSpan executionTime = endTime - startTime;

The total execution time will be available on the executionTime variable.

Connection String

You can check the connection string used for the database to ensure it is configured correctly. Use the code available below to execute this monitoring method.

Code Block
languagec#
titleExample
string connectionString = @Dataset.DB.YourDatabaseName.ConnectionString;
NotePlease note that these are just examples, and you will need to replace YourDatabaseName and YourQueryNamewith the actual names of the database and query you are working on within the platform.

operation. The Datasets Monitor is a monitoring-only function, and only will be available when the solution is running, and the Designer is connected with that runtime solution. 

The monitoring table will show status of the Server (not clients) operations performed by DatasetTables and DatasetQueries.

The information in this table is constructed from the runtime properties of the DatasetTable and DatasetQuery objects. Additionally of showing in the monitor table, the properties can be accessed on Displays or Scripts, using the following syntax

@Dataset.Table.<Name>.<PropertyName>

@Dataset.Query.<Name>.<PropertyName>


Monitor information

Description

Name

DatasetTable or DatasetQuery name

SourceID

Original ID in the DatasetQueries or DatasetTables configuration pages

RowCount

The total number of rows of data

Disable

If the object is disabled

LastStatus

The status value of its last operation (zero success, otherwise error)

LastStatusMessage

The message corresponding the last error


In order to embed the monitoring within the application itself, or to get status of Client side commands, see the Dataset Runtime Attributes


In this section:

In this section...

Page Tree
root@parent
spacesV10