dataprovider Element

 

Content

dataprovider Element

Description

Example

chart Element Properties

Description

The dataprovider element retrieves data from the database and organizes it.

Example

See Data Trending.

dataprovider Element Properties

Property Name Description
Data Set Provider Properties that define how Chart Data Set is created.
Property Name Description
Data Set Provider TypeDefines the method used to create a Data Set. Choose Standard or Custom.
Standard Data SetData Set properties that define a Standard Data Set.
Property Name Description
Standard Data Set TypeData Set properties define how chart data set is created. Choose SQL, Query, Data Item or Prepared SQL.
SQLSQL query to produce the data set. You can use all request Parameters and argument values as tokens ([keyid1] for example). Also a special [currentuser] is available.
QueryQuery Data Set creates a data set based on a SQL query.
Property Name Description
SDC IDQuery SDC.
Query IDQuery ID.
Query ParamsParameter and Value for the SQL Query.
Plot ID ColumnColumn in the Query Data Set, having a shared value. Can be used as Plot ID. Default is plotid.
Plot ID Column ValueValue of the Plot ID column. Default is 1.
Data Item DataSetDefine how the chart data set is created.
Property Name Description
QueryCreates a data set based on a SQL Query.
Property Name Description
SDC IDQuery SDC.
Query IDQuery ID.
Query ParamsParameter and Value for the SQL Query.
Plot ID ColumnColumn in the Query Data Set, having a shared value. Can be used as Plot ID. Default is plotid.
Plot ID Column ValueValue of the Plot ID column. Default is 1.
Add SDI NotesAttach SDI Notes to each SDI. SDI Note rows are concatenated so that each SDI row has all its notes in a single column.
Property Name Description
EnableFlag indicating whether or not to process the adapter.
Column NameColumn name for the column to contain the flattened notes of a single SDI.
DelimeterDelimeter used between notes when they are flattened.
Max Note LengthMaximum note length for a single flattened SDI Note.
Add SDI Data ItemsDefines how Chart data is created.
Property Name Description
Include All Primary ColumnsIf Yes, all columns from the primary dataset are included in the result dataset. If No, only defined columns are preserved.
ColumnsAdditional Columns. The Adapter adds all SDIDataItem keys in the data set, plus Enteredtexst, Enteredvalue, Transformvalue and Displayvalue. See also Add Specs.
Property Name Description
Table IDTable from which the column is retrieved.
Column IDColumn Id.
FiltersThe Data Set may be filtered by given rules so that only given Parameter List items are retrieved.
Property Name Description
Released OnlyIf Yes, only released results are added to Result Set.
Ignore CancelledIf Yes, data sets in Cancelled status are omitted.
Result EnteredIf Yes, only tests with results are added to the Result Set.
SDI Data Item FiltersThe Data Set may be filtered by given rules so that only given Prameter List items are retrieved.
Property Name Description
Param List IDParameter list ID to be used as filter.
Param List Version IDParameter List Version to be used as filter.
Variant IDParameter List Variant to be used as filter.
Data SetData set to be used as filter.
Param IDParameter ID used as filter.
Param TypeParameter Type used as filter.
Replicate IDReplicate ID to be used as filter.
Sort ColumnsCollection of Sort columns from Data Set
SpecificationsIf Yes, the Data Item Specs are added to the Data Set. This includes the following columns: specparamlimits.limittypeid, specparamlimits.operator1, specparamlimits.operator2, sdidataitemspec.value1, sdidataitemspec.value2, sdidataitemspec.condition
LimitsAdapter properties that extract spec/limit information from the dataset that includes basic information, boundary id and value columns.
Property Name Description
Show only One Limit TypeIf Yes, show only one Limit Type InSpec for example.
Show Limit Typeselect the limittype to show. Defaults to Inspec.
Add Empty Boundary ValuesWhether or not to show gaps in boundary lines when no boundary is specified for a data point. Default is Y.
Overlapping LimitsDefine how to handle overlapping Limits.
Property Name Description
Hide Overlapping LimitsHides overlapping limits (use value2 column if operator is >=, otherwise use value1 column). Works well for Simple Products. If No, will create series for both value1 and value2.
Show InSpec Limit TypeHides InSpec Limit Type from the plot. Defaults to No. Defaults to No if hide overlapping limits is empty or Yes.
Prepared SQL
Property Name Description
SDC IDPrimary SDC for the query. SDC table ID is automatically added to first item of from clause. Forces security fragment to where clause which will make the query honor SDI security options. Can be left empty.
SelectSelect clause which implicitly contains the key word SELECT.
FromFrom clause which implicitly contains the key word FROM. If SDC ID is given then will also implicitly contain the SDC table ID. Can be left empty if SDC ID is given. Notice the implicit SDC table ID cannot be aliased.
WhereWhere clause which implicitly contains the key word WHERE. Can be left empty. Sql input params should be configured as question marks (?).
Group ByGroup by clause which implicityly contains the key words GROUP BY. Can be left empty.
Order ByOrder by clause which implicityly contains the dey words ORDER BY. Can be left empty.
Extended Data TypesFlag indicating if extended (CLOB,BLOB etc) data types are added to the resulting data set.
Max Row CountMaximum number of rows to return. If left empty then all rows are returned.
ParamsInput param values for each ? in SQL.
Property Name Description
EnableFlag indicating if this param is added to the list of params.
ValueValue of the param. Can contain multiple values separated by a separator.
Value SeparatorSeparator for Value.
Param TypeParameter Type. Choose String, Date or Number.
Date ParamDefine Date Parameters.
Property Name Description
Date TypeChoose a Date Type:

User, System or Custom.

Custom FormatDefine a custom Date Format.
Number ParamDefine Number Parameters. Choose User or System.
Custom Data Set ProviderCustom Data Set properties to define how Chart Data is created.
Property Name Description
Class NameJava class implementing Data Provider.
InputsInput properties for the Data Provider. Define a Property ID and Value.
OutputsOutput properties for the Data Provider. Define a Property ID and Value.
Data Set Adatper Data Set adapter properties define how the data set is modified after creation. The data set is run through a sequence of adapters before it is passed to chart series creation.
Property Name Description
AdaptersCollection containing all Data Set adapter properties. Data Set adapter modifies the chart data set before chart series are created. Adapters are run in the order they are in this collection.
Property Name Description
Adapter IDN/A
Adapter TypeDefines whether the adapter is a Product wide standard adapter or Project specific. Choose Standard or Custom.
EnableFlag indicating whether or not the adapter should be processed.
StandardDefines properties for a Standard Adapter.
Property Name Description
Standard Adapter TypeChoose the Standard Adapter Type:
Add SDI Data Items
Extract Boundaries
Column Configuration
Add SDI Spec
Access Control
Sequence
Add SDI Notes
Add SDI Data ItemsDefine properties for the Standard Adapter Type Add SDI Data Items.
Property Name Description
SDC IDChoose an SDC ID.
Sample
QC Method Sample Type
QC Batch Sample Type
Product
Plate
Include All Primary ColumnsMinimum height of the chart.
ColumnsAdditional Columns. The Adapter adds all SDIDataItem keys in the data set, plus Enteredtext, Eneteredvalue, Transformvalue and Displayvalue. See also Add specs.
Property Name Description
Table IDTable from which the column is retrieved.
Column IDThe column ID to reteive.
Filter SeparatorSeparator character for filtered items.
FiltersThe Data Set may be filtered by given rules so that only given Parameter List items are retrieved.
Property Name Description
Released OnlyIf Yes, only released results are added to Result Set.
Ignore CancelledIf Yes, data sets in Cancelled status re omitted.
Result EnteredIf Yes, only tests with results are added to the Result Set.
SDI Data Item Filters

The Data Set may be filtered by given rules so that only given Prameter List items are retrieved.

Property Name Description
Param List IDParameter list ID to be used as filter.
Param List Version IDParameter List Version to be used as filter.
Variant IDParameter List Variant to be used as filter.
Data SetData set to be used as filter.
Param IDParameter ID used as filter.
Param TypeParameter Type used as filter.
Replicate IDReplicate ID to be used as filter.
Sort ColumnsCollection of Sort columns from Data Set
SpecificationsIf Yes, the Data Item Specs are added to the Data Set. This includes the following columns: specparamlimits.limittypeid, specparamlimits.operator1, specparamlimits.operator2, sdidataitemspec.value1, sdidataitemspec.value2, sdidataitemspec.condition
Extract BoundariesAdapter properties that extract spec/limit information from the data set that has basic information, boundary id and value columns.
Property Name Description
Value ColumnValue Column (Y Column).
Main Boundary Key ColumnDefine the key column for the Main Boundary.
Extra Boundary Key ColumnsColumns that are used to form a unique boundary in addition to the Main Boundary Key Column.
Add Empty Boundary ValuesWhether or not to show gaps in boundary lines when no boundary specified for a data point. Default is Yes.
BoundariesDefine Boundary properties.
Property Name Description
Boundary IDId that is matched against the value from the dataset in the Boundary ID column. If match, a new point is added to this Boundary Series.
Value ComumnColumn containing the value for this boundary. Can be a groovy expression. Checks for values in a row. Groovy has the DataSet by name dataset and the current row index is called itemindex.
Series IDSeries ID for this boundary, defaults to Boundary ID with possible specid and specversionid. Checks for values in a row.
Series Group IDSeries Group ID for this Boundary. Use this to group boundaries into the same Series Group. Empty leaves all series in the same group. Can be a groovy expression. Checks for values in a row. Groovy has the DataSet by name dataset and the current row index is called itemindex.
Key ColumnsColumns that are common for singel results in the dataset (must not contain columns from the boundaries).
Sort ColumnsColumns to sort the result Data Set. Define the Column ID.
Column ConfigurationAdapter for adding pseudo columns to the data set and handling data display value rules and translations.
Property Name Description
Pseudo ColumnsPseudo columns to add to the data set.
Property Name Description
Column IDN/A
Pseudo ColumnPseudo column expression.
Column TypePseudo columns to add to the data set.
ColumnsExisting columns in the data set.
Property Name Description
Column IDN/A
Display ValuePre-defined values will be changed according to this rule.
TranslateIf Yes, the data of this column is translated.
Add SDI SpecSDC for adding Specifications.
Access ControlAdapter for enforcing SDC Access Control. This adapter is not needed if data is provided by query.
Property Name Description
SDC IDTarget SDC ID.
Key ID1 ColumnKey ID1 column in the data set.
Key ID2 ColumnKey ID2 column in the data set.
Key ID3 ColumnKey ID3 column in the data set.
SequenceAdapter for adding a sequence number for each unique row. This adapter is useful for creating sequence based XY plots.
Property Name Description
Sequence Column IDColumn to populate with sequence. Must not exist in the data set.
Sequence Key ColumnsKey columns which define a base key for creating the sequence. Rows in the data set with the same key column values will get the same sequence value.
Add SDI NotesAttach SDI notes to each SDI. SDI note rows are concatenated so that each SDI row has all its notes in a single column.
Property Name Description
SDC IDSDC ID column in the data set.
Key ID1 ColumnKey ID1 column in the data set.
Key ID2 ColumnKey ID2 column in the data set.
Key ID3 ColumnKey ID3 column in the data set.
Column NameColumn name for the column to contain the flattened notes of a single SDI.
DelimeterDelimeter used between notes when they are flattened.
Max Note LengthMaximum note length for a single flattened SDI note.
CustomCustom adapter properties that define a single adapter by class name and input collection. Custom adapters can be project specific.
Property Name Description
Class NameFull class name (including package) of a Java class implementing Interface DataSetAdapter.
InputsCollection containing all input properties for the custom adapter. Inputs are defined as key value pairs. Define a Property ID and Value.
OutputsCollection for output properties from custome adapter. Define a Property ID and Variable. Property value is stored to binding map with this variable name. It is usable in following data expressions or any chart expressions.
Series Group Builder Profile Profile identifier for series group builders. Can be left empty.
Data Set Data Set series are visualized by the Chart. Series are organized in groups of series by series group ID.
Property Name Description
Plot ID ColumnColumn in data set defining plot ID. Data set creator is responsible for making sure this column is present in the data set.
Series Group ID ColumnColumn in data set defining series group ID. Data set creator is responsible for making sure this column is present in the data set.
Series ID ColumnColumn in data set defining series ID. Series are always grouped in series groups. Data set creator is responsible for making sure this column is present in the data set.
PlotsCollection of properties for each plot.
Property Name Description
Plot IDThese properties are applied for all plots matching this ID. If this value is empty then these properties are applied to all plots in the data set (excluding those which have their own plot properties defined.
Series GroupsCollection of properties for each series group. These properties define what kind of series is created (XY, category, pie etc.)
Property Name Description
Series Group IDFull class name (including package) of a Java class implementing Interface DataSetAdapter.
Series Group BuildersCollection of series group builder profiles.
Property Name Description
Series Group Builder ProfleN/A
Series Group TypeSeries group type defines what type of series to create (XY, category, pie, etc.)
Time Period Values CollectionRepresents a sequence of zero or more data items in the form (period, value) where "period" is specified by time period type property.
Property Name Description
Time Period TypeChoose a period of time.
Period ColumnPeriod column (X) in the data set. Can be character, number, decimal or date.
Value ColumnValue column (Y) in data set. Can be character, number, decimal or date.
XY Series CollectionSeries group with a sequence of zero or more data items in the form (x,y). By defaul, items in the series will be sorted into ascending order by x-value, and duplicate x-values are permitted.
Property Name Description
X ColumnX column in data set. Can be character, number, decimal or date.
Y ColumnY column in data set. Can be character, number, decimal or date.
Default Category DatasetSeries group with one or more series, and values associated with categories.
Property Name Description
Category ColumnCategory column (X) in data set. Can be any data type.
Value ColumnValue column (Y) in data set. Can be character, number, decimal or date.
Default Pie DatasetSeries group where values are associated with keys.
Property Name Description
Key ColumnKey column. Can be any data type.
Value ColumnValue column. Can be character, number, decimal or date.
Y Interval Series CollectionCollection of series group builder profiles.
Property Name Description
X ColumnX column in data set. Can be character, number, decimal or date.
Y ColumnY column in data set. Can be character, number, decimal or date.
Y LOW ColumnY LOW column in data set. Can be character, number, decimal or date.
Y High ColumnY HIGH column in data set. Can be character, number, decimal or date.