Properties
Users can set the module configuration properties by modifying the method catalogue in SuperADMIN.
Your Data Control module can use the following functions to read these configuration properties.
It is also possible for your module to dynamically add or remove some properties. Some properties added by PreJob can modify the tabulation request, instead of adding them to the SuperADMIN catalogue. Properties added or removed by the post tabulation function do not affect the underlying entries in the catalogue and are only present for the duration of the tabulation request. You can use these facilities to allow a simple form of 'inter module' communication when multiple modules are configured for a particular tabulation request.
Pre Job Property Query and Manipulation
The following functions are available to PreJob. They allow your code to query or add property values before the cross tabulation is executed.
HasQueryPropertyKeyT()
Query the existence of a particular property key.
Available To |
|
|---|
HasQueryPropertyKeyT(PreJobInfoT* JobInfo, const char* Key)
Arguments |
| ||||||
|---|---|---|---|---|---|---|---|
Returns |
|
GetQueryPropertyValuesT()
Query the property values of a particular property key. The property values (such as string, integer, or boolean) are all converted to string values. It is up to the client code to understand the value type correctly and convert it to the appropriate type.
Available To |
|
|---|
GetQueryPropertyValuesT(PreJobInfoT* JobInfo, const char* Key, const char*** Values, int* Len)
Arguments |
| ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
AddQueryPropertyValueT()
Add a boolean property value.
When adding a boolean property via AddQueryPropertyValueT() it is always set to true. It is not possible to disable the property by setting it to false.
Available To |
|
|---|
AddQueryPropertyValueT(PreJobInfoT* JobInfo, const char* Key)
Arguments |
| ||||||
|---|---|---|---|---|---|---|---|
Returns |
|
AddQueryIntegerPropertyValueT()
Add an integer property value.
Available To |
|
|---|
AddQueryIntegerPropertyValueT(PreJobInfoT* JobInfo, const char* Key, unsigned int Value)
Arguments |
| |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
AddQueryLongIntegerPropertyValueT()
Add a long integer property value. This function allows you to set a value of the BigN key for use during perturbation.
Available To |
|
|---|
AddQueryLongIntegerPropertyValueT(PreJobInfoT* JobInfo, const char* Key, unsigned int64 Value)
Arguments |
| |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
HasModuleConfigurationPropertyKeyT()
Query the existence of a specific property key for the current plugin.
Available To |
|
|---|
HasModuleConfigurationPropertyKeyT(PreJobInfoT* JobInfo, const char* Key)
Arguments |
| ||||||
|---|---|---|---|---|---|---|---|
Returns |
|
GetModuleConfigurationPropertyValuesT()
Query the property values of a particular property key for the current plugin. The property values (such as string, integer, or boolean) are all converted to string values. It is up to the client code to understand the value type correctly and convert it to the appropriate type.
Available To |
|
|---|
GetModuleConfigurationPropertyValuesT(PreJobInfoT* JobInfo, const char* Key, const char*** Values, int* Len)
Arguments |
| ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
Post Job Property Query and Manipulation
The following functions allow your code to query and manipulate properties after the cross tabulation has been performed.
SetResultPropertyValueT()
Dynamically add a value to a configuration property.
Configuration properties can have multiple values associated with them.
Available To |
|
|
|
|---|
SetResultPropertyValueT(JobInfoT *JobInfo, const char *Key, const char* Value)
Arguments |
| ||||||
|---|---|---|---|---|---|---|---|
Returns |
|
GetResultPropertyValuesT()
Get the value(s) of a configuration property.
Available To |
|
|
|
|---|
GetResultPropertyValuesT(JobInfoT *JobInfo, const char* Key, const char*** Values, int* Len)
Arguments |
| ||||||||
|---|---|---|---|---|---|---|---|---|---|
Returns |
|
GetFieldPropertiesT()
Get the value(s) for a given key for a given field.
For example, a summation field of income has had the average operation applied to it.
Available To |
|
|
|
|---|
GetFieldPropertiesT(JobInfoT *JobInfo, int Dimension, int FieldOffset, const char* Key, const char*** Values, int* Len)
Arguments |
| ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
SetFieldPropertyT()
Dynamically add a value to a configuration property for this field.
Available To |
|
|
|
|---|
SetFieldPropertyT(JobInfoT *JobInfo, int Dimension, int FieldOffset, const char* Key, const char* Value)
Arguments |
| ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
GetDefaultSummationPropertiesT()
Get the property values for the default summation field.
Available To |
|
|
|
|---|
GetDefaultSummationPropertiesT(JobInfoT *JobInfo, const char* Key, const char*** Values, int* Len)
Arguments |
| ||||||||
|---|---|---|---|---|---|---|---|---|---|
Returns |
|
SetDefaultSummationPropertyT()
Set a property value for the given key for the default summation field.
Available To |
|
|
|
|---|
SetDefaultSummationPropertyT(JobInfoT *JobInfo, const char* Key, const char* Value)
Arguments |
| ||||||
|---|---|---|---|---|---|---|---|
Returns |
|
RemoveResultPropertyValueT()
Remove the nominated value from the key. A key can have multiple values, but this function only removes the specified one.
Available To |
|
|
|
|---|
RemoveResultPropertyValueT(JobInfoT *JobInfo, const char *Key, const char* Value)
Arguments |
| ||||||
|---|---|---|---|---|---|---|---|
Returns |
|
RemoveResultPropertyT()
Remove all values and the associated key from the property list.
Available To |
|
|
|
|---|
RemoveResultPropertyT(JobInfoT *JobInfo, const char *Key)
Arguments |
| ||||
|---|---|---|---|---|---|
Returns |
|
Standard Properties
The following standard properties are defined for use by SuperSERVER:
Property | Type | Description |
|---|---|---|
| boolean (true/false) | The module requires SuperSERVER to produce an associated data cube containing contribution count information for each cell. Data is retrieved using the The FREQ property (hence the FREQ cube) is affected by null handling. The FREQ cube contains the number of contributors. If there is a null field value that is contributing to a specific cell in the cube, then it may, or may not (depending on null configuration) be counted (by default, null values are not counted). This will mean a different number of contributors hence different values in the FREQ cube. |
| integer (1+) | The module requires SuperSERVER to produce an associated data cube containing the values for the top n contributors for each cell. Data is accessed by client programmers using the |
|
| This is a special, well known, association name. Client programmers programmatically create this associated data cube by calling the |
| boolean (true/false) | Indicates to SuperSERVER that this module applies confidentiality rules. SuperSERVER may block record view requests based on the setting of this property and the values of the 'CONCEALMENT' associated data cube. |
|
| Indicates to SuperSERVER that grand totals for all fields in the tabulation request be computed and present in the data cube prior to execution of an external module. During module execution, grand totals can be identified using the |
| boolean (true/false) | The module requires SuperSERVER to produce an associated data cube containing a count of errors (or Nulls) for each cell. Data is retrieved using the |