Unofficial Content
  • This documentation is valid for:

GXquery4 - GXqueryExecuteQueryServiceOption 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.

GXqueryExecuteQueryServiceOption data type is used to set some execution options such as font name, size and color of the query.

Properties

Name Is the name of the item to be changed (*)
Value Is the new value to be set to the item.
* Based in a enumerated domain called GXqueryExecuteQueryServiceOptions.

Examples

First, we need a new variable based in this data type. Then, let's go to create it as:

&GXqueryExecuteQueryServiceOption based in GXqueryExecuteQueryServiceOption data type.

So, now we write the follows scripts in the Start event of the Web Panel:

&GXqueryExecuteQueryServiceOption = New()
&GXqueryExecuteQueryServiceOption.Name = GXqueryExecuteQueryServiceOptions.FontFamily
&GXqueryExecuteQueryServiceOption.Value = "Chiler"
&GXqueryExecuteQueryServiceOptions.Add(&GXqueryExecuteQueryServiceOption)

&GXqueryExecuteQueryServiceOption = New()
&GXqueryExecuteQueryServiceOption.Name = GXqueryExecuteQueryServiceOptions.FontSize
&GXqueryExecuteQueryServiceOption.Value = "20"
&GXqueryExecuteQueryServiceOptions.Add(&GXqueryExecuteQueryServiceOption)

&GXqueryExecuteQueryServiceOption = New()
&GXqueryExecuteQueryServiceOption.Name = GXqueryExecuteQueryServiceOptions.FontColor
&GXqueryExecuteQueryServiceOption.Value = "#FF0080"
&GXqueryExecuteQueryServiceOptions.Add(&GXqueryExecuteQueryServiceOption)

As you see, the variable called GXqueryExecuteQueryServiceOptions, is a collection based in the GXqueryExecuteQueryServiceOption data type (this external object).

Thus, this simple code only is limited to load this collection.

 


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