The requested page is not available for the requested platform. You are viewing the content for Default platform.

ValidateDashboardCustomSqlQueryEventArgs.ExceptionMessage Property

Gets or sets the exception message returned after custom SQL query validation.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v19.1.Core.dll

Declaration

public string ExceptionMessage { get; set; }
Public Property ExceptionMessage As String

Property Value

Type Description
String

A String value that specifies the exception message returned after custom SQL query validation.

Remarks

By default, a custom query used to obtain data from the SQL database should contain only SELECT statements. If the custom query contains not only SELECT statements, or the query is specified incorrectly, the ValidateDashboardCustomSqlQueryEventArgs.Valid property is set to false. The ExceptionMessage property returns the corresponding exception message.

If necessary, you can check the validity of the custom SQL query manually and override the value of the ValidateDashboardCustomSqlQueryEventArgs.Valid flag and corresponding ExceptionMessage message.

See Also