Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PosNameTypeDescriptionDefault
<1>TypeOptionThe item's data typeText
<2>FormatFormatted StringThe item's output format""

...

Choose the data type that best represents the data you plan to store within the item. When you set the ItemData property, be sure to pass the data in OpenInsight's internal format. The following data types are available.

ValueAbbr.Description
TextTPlain text data sorted alphabetically
TextNoCaseTNCPlain text data sorted alphabetically case insensitively
NumberNNumerical data sorted by magnitude
DateDDay, month, and year data sorted chronologically
TimeTIHour, minute, and second data sorted chronologically
DateTimeDTDate and time data sorted chronologically
BoolBTrue/false data sorted by magnitude, where false = 0 and true = 1

...

To Display AsUse
First Name: KevinFirst Name: %S%
Kevin Esquire%S% Esquire
Code guru Kevin works for SRP Computer Solutions, Inc.Code guru %S% works for SRP Computer Solutions, Inc.

TextNoCase

The same as Text, but sorted case insensitively.

Number

Numbers are stored as floating point values within the item. Thus, if your data contains decimal values, make sure you include the decimal when you set the item's data. In other words, there is no equivalent MD2 format for the SRP Tree Control. Instead, an Excel-like syntax is employed to format and round off decimal numbers.

...

Dates are stored in a proprietary format within the SRP Tree Control. Currently, dates must be in OI's internal format when passing them to the ItemData property. In other words, the SRP Tree Control will not parse string dates on your behalf. Like Numbers, the SRP Tree Control uses an Excel-like syntax to format dates.

...

Times are stored in a proprietary format within the SRP Tree Control. Currently, times must be in OI's internal format when passing them to the ItemData property. In other words, the SRP Tree Control will not parse string time on your behalf. The SRP Tree Control uses an Excel-like syntax to format times.

...

DateTimes are stored in a proprietary format within the SRP Tree Control. Currently, date & times must be in OI's internal format when passing them to the ItemData property. In other words, the SRP Tree Control will not parse string date & times on your behalf. Like individual Dates and Times, the SRP Tree Control uses an Excel-like syntax for formatting.

...

To Display AsUse
TrueFalse]
YesNo]
TF]
The value is: TrueFalse]
, or ] when the value is True, or ] when the value is" [True|False]

Use the DefType property to set the default data type for new items.

...

Code Block
// Make all items' data types dates 
Set_Property(@Window:".OLE_TREE", "OLE.ItemType[All]", "Date":@FM:"MM/DD/YYYY")

See Also

ItemDefTypeItemDataItemSort