DdsTimeFieldTagHelper class | QSYS API Reference Guide
Defines an input element to capture Times.
Namespace: ASNA.QSys.Expo.Tags Assembly: ASNA.QSys.Expo.Tags.dll
Inheritance: Object –> TagHelper –> FieldBase –> DdsFieldBase
Remarks
To define a field to capture or display time of day values, use the DdsTimeField Tag Helper.
For example, the following markup defines a span text element for the field ARRIVEAT
in the PACKAGE
record (defined in the Model).
<div Row="7">
.
.
.
<DdsTimeField Col="27" For="PACKAGE.ARRIVEAT" />
</div>
The field ARRIVEAT
is defined in the Model file, like so:
public class PACKAGE_Model : RecordModel
{
.
.
[Time(USA)]
public DateTime ARRIVEAT { get; private set; }
Note how the Time
attribute defines the format of the Time field to be USA. The property accessors define the field Usage
. In this example, the field is public get and private set, defining it as OUTPUT Only
.
Properties
Type | Name | Description |
---|---|---|
FieldAttribute | FieldAttribute | Gets the Time FieldAttribute from the Model. |
String | MapValues | Gets or sets a value that indicates a list of semicolon-separated output value mappings. Format of each mapping is ‘program-value,display-value’. |
TimeAttribute | TimeFieldAttribute | Gets the Time Attribute from the Model. |
Methods
Signature | Description |
---|---|
GetTimeFormat() | Gets the DateFormat from the Model. |
DdsTimeFormat GetTimeFormat()
Gets the DateFormat from the Model.
DdsTimeFormat GetTimeFormat()