SBM ModScript Reference → Programming SBM ModScript → Object Types → Field → Field GetDbValue-type-() Method
Gets the field's internal value as it is currently stored in the database.
string GetDbValueString() int GetDbValueInt() int64_t GetDbValueInt64() double GetDbValueDouble() TimeT GetDbValueTimeT() Variant GetDbValue()
Parameter | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
string int int64_t double TimeT Variant |
The internal database value for the field. For Text fields, this is the exact value entered in the field. For values that are not Variant or TimeT, this internally gets the value from the field as a Variant, and then tries to convert the value to the requested type. TimeT can be used with Date/Time fields to get the internal date value. Note: If the field is a
Multi-User field for which the
Groups and Users selection mode is
enabled, the value can include both pure integers (TS_IDs from the TS_USERS
table) and group identifiers (TS_IDs from the TS_GROUPS table). The latter are
in the form
G1,
G2, …
|
SBM ModScript version: 11.4.
The value does not reflect any changes that are waiting to be stored, such as editing that has occurred on a transition form. When an Update() executes, this value is recorded in the change history as the "prior" value. To get the current value reflecting all changes, use the GetValue() method.
Copyright © 2007–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.