PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Defines the source of a series.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 19 and later
Android This function is now available for Android applications.
New in version 19
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Champ Graphe rempli à partir d'une colonne d'un champ Table
IF grSourceSeries(GRF_Graphe1, 3, grTableColumn, "Table1.Colonne1") = True THEN
Info("La source de la série 3 est désormais la colonne MaColonne")
END
// Champ Graphe basé sur une rubrique d'une requête SQL
MaRequête is Data Source
 
MonCodeSQL is string = REQ_Requête1..SQLCode
HExecuteSQLQuery(MaRequête, hQueryDefault, MonCodeSQL)
grSourceSeries(GRF_Graphe1, 1, grItem, "MaRequête", "TotalHT")
grDraw(GRF_Graphe1)
 
CASE ERROR:
Error(HErrorInfo())
Syntax
<Result> = grSourceSeries(<Chart name> , <Series number> , <Source> [, <Details 1> [... [, <Details N>]]])
<Result>: Boolean
  • True if the source was defined,
  • False otherwise. To get the details of the error, use ErrorInfo.
<Chart name>: Control name or character string
Name of the chart to be used. This name corresponds to:
  • the chart name defined through programming with grCreate.
  • the name of Chart control found in the window editor, page editor or report editor.
Android Only Chart controls are available.
<Series number>: Integer
Number of the affected series.
<Source>: Integer constant
Data source of the chart:
grTableColumnSeries filled from a column of a Table control.

In this case, <Details 1> corresponds to the name of a column found in a Table control. This name must correspond to the full name of the column, enclosed in quotes (for example: "<TableName>.<ColumnName>").
The column is browsed to fill the series. If one of the values is not a numeric value, a "hole" is created in the series.
grCallbackSeries filled by a WLanguage function/procedure.
In this case, <Details 1> corresponds to the name of the WLanguage procedure to call.

The procedure is called for each number. This procedure has the following format:
PROCEDURE MaProcédure(<Nom du graphe>, <Numéro de la série>,
<Index dans la série>)

The procedure returns the requested number. To specify the end of the series, the procedure must return False.
Universal Windows 10 App This constant is not available.
grListBoxSeries filled from a List Box control.

In this case, <Details 1> corresponds to the name of a List Box control. The List Box control is browsed to fill the series. If one of the values is not a numeric value, a "hole" is created in the series.
grProgrammingSeries described through programming.

<Details 1> can correspond to a series of numbers in the same character string, separated by ";".
grItemSeries filled from an item.

<Details 1> corresponds to the name of the data file (or query), <Details 2> corresponds to the name of the item. The series will browse through the data file and will take all the values of the item.

If one of the values is not a numeric value, a "hole" is created in the series.
grTableSeries filled from a WLanguage array.

<Details 1> corresponds to the name of the array. <Details 2> can correspond to the subscript of the column (two-dimensional array) or to the name of a member (array of structures).
<Details 1>: Expected type (optional parameter)
First expected parameter, according to the type of the data source.
<Details N>: Expected type (optional parameter)
Last expected parameter, according to the type of the data source.
Remarks
  • The Property Source allows to know the type of data source of a series of a graph (column of an Table control, List Box control, ...).
  • The Property SourceDescription allows to know the name of the element that corresponds to the data source of a series of a graph.
Component: wd270grf.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment