Do I always have to format my data?
Must I always tell OmniServer what format to use in the sequence builder?
Not always. If you leave your data item unformatted, like this:
{data}
—OmniServer will look at the original data type of the item and expect that data in the data stream. Here are the assumptions:
-
Discrete: An integer value that translates to "0" or "1" (i.e., "0000"=0, "0001"=1, "ABCDE"=1)
-
Integer: A valid set of integer numbers (i.e., "123"=123, "12.3"=Error, "ABC"=Error)
-
Real: A valid set of real or integer numbers (i.e., "123"=123, "12.3"=12.3, "ABC"=Error, "1.2E+03"=Error (see below))
-
String: Any set of characters.
If you expect anything other than the above, you will have to format your data.
On Errors with Scientific Notation: Although "1.2E+03" is a valid "Real" number, OmniServer will see this as an error. You will need to use the "E" format to read in that number. Example: {data:E}