Product Home
DTM Data Generation SDK Online Documentation
Product Profile
SDK components
Functions map
Low level API
Short Random
Integer Random
Random Symbol
Double Random
Random String
Random Date
Random Time
C/C++ example
Fill Methods level API
From list
From file
From table
From Values Library
Incremental
By maks
By SQL statement
Rule level API
Rule properties
Rule items
One rule item
Project level API
Project operations
Project properties
Project rules
Object handles
Database connection
Error handling
SDK limitations
Build application with SDK
License agreement

Rule item properties

SetItemProperty changes selected property of the specified item
C/C++
int SetItemProperty(ITEM_HANDLE handle, int PropertyID, char *value)

C#
int SetItemProperty(int handle, int PropertyID, string value)
returns
0 for success
-1 for invalid rule handle
-2 for unknown or unsupported property ID.

GetItemProperty retrieves property of the specified rule's item.
C/C++
char* GetItemProperty(ITEM_HANDLE handle, int PropertyID)

C#
string GetItemProperty(int handle, int PropertyID)
PropertyID is property code from DG_ITEM_PROPS list (see table below or DGSKD.H).

COM object offers "ItemProperty" string property for described functions. You should not use "SetItemProperty" and "GetItemProperty" functions directly in this case.

Property definitions

NameProperty IDDescription
IP_Name1Column (field) name
IP_Start2Start value for incremental fill method
IP_Step3Step value for incremental fill method
IP_Times4Use each value for incremental fill method
IP_Cycle5Cycle length for incremental fill method
IP_AfterLast6Insert value after last existing value for incremental fill method
IP_asMask7The library should use values as mask in case this value is non-zero.
IP_isUnique8The library should generate unique values fir this item in case this value is non-zero
IP_isSeqent9The library should use values from the list sequentially in case this value is non-zero
IP_method10Fill method: 0 to 10
IP_UseNulls11% of NULL velues
IP_SequenceLen12Sequnce length. How many times the program should use one generated value
IP_MinLength13Minimum value or length
IP_MaxLength14Maximum value or length
IP_asList15When this value is not 0 the program will use query result set as list, only first value otherwise
IP_RndSeparators16% seperators for random strings
IP_NoQuotas17Do not quote generated value
IP_Formula18Formula for corresponded fill method
IP_table19Linked table for "From Table" fill method
IP_column20Linked column for "From Table" fill method
IP_LibName21Library item for "From Library" fill method
IP_mask22Mask for "By Table" fill method
IP_sFormat23Output format string (%d, %5.2f, etc)
IP_Where24Where clause for "From Table" fill method
IP_Order25"Order by" clause for "From Table" fill method
IP_SQL26SQL statement for "By SQL" fill method
IP_incTimeMode27Time Mode for incremental method: 0 for second, 1 for minute, 2 for hour, 3 for day, 4 for month or 5 for year