Unofficial Content
  • This documentation is valid for:

GXquery4 - GXqueryError data type

The GXquery service layer, known as API, includes all the data types that allow the developer to interact with GXquery at runtime through script code. One of these data types is described below.

GXqueryError data type is used to get the errors, if any.

Properties

Code Is a code number of the message, assigned by GXquery in run-time.
Message Is the text of the message to be displayed.

 

 

Example

&QueryResult = &GXqueryQuery.Execute(&GXqueryRuntimeParameters, &OutputFormatId, &GXqueryExecuteQueryServiceOptions, &Errors)
If &Errors.Count > 0
    Msg(&Errors.Item(1).Message)
EndIf

After the use of the Execute method with success, if the errors count is greater than zero, a message is displayed through the msg command.

 


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant