Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
borderColorgreen
borderWidth1
titleBGColor#ddffcc
borderStylesolid
titleDefinition

Date Picker extends the capability of a normal text field with a date picker library.日期选择器  使用日期选择器库扩展了普通文本字段的功能。


Figure 1: Screenshot highlighting Date Picker obtained from sample Expenses Claim App

图1:突出显示从采样费用声明应用获取的日期选择器的截图

截图来自 Screenshots taken from http://localhost:8080/jw/web/console/app/hr_expense/1/form/builder/hr_expense_claim_entry

Figure 2: Date Picker Properties图2:日期选择器属性

NameDescription
IDElement ID (By declaring as "date", a corresponding database table column "c_date" will be created)元素ID(通过声明为“date”,将创建相应的数据库表列“c_date”)
Label元素标签显示给最终用户。LabelElement Label to be displayed to end user.
Allow Manual InputRather than using the calendar picker, user may key in the date directly if checked.而不是使用日历选择器,用户可以直接键入日期,如果选中。

Figure 3: Date Picker Properties - Advanced Options图3:日期选择器属性 - 高级选项

NameDescription
Default Value

当没有找到/选择现有值时的默认值。

这里接受哈希变量。例如,您可以键入以下内容

Default Value when there's no existing value found/selected.

Hash variable is accepted here. For example, you may key the following

Code Block
#date.dd-MM-yyyy#
Info
titleDate Format

Date format defined here should follow Data Format.这里定义的日期格式应该遵循数据格式

Data Format

In Java date format; e.g., 在Java日期格式; 例如2011年6月1日 的 yyyy-MM-dd for 2011-06-01

Validator

Attach a Validator plugin to validate the input value.附加一个Validator插件来验证输入值。

Info
titleWhen will validation takes place?

Validation will takes place whenever form is submitted except when it is submitted as "Save as Draft".除非提交表格为“另存为草稿”,否则将在提交表格时进行验证。

Start Date Field IDThis option should be used in conjunction of "Set Current Date As".此选项应与“设置当前日期为”结合使用。
End Date Field IDThis option should be used in conjunction of "Set Current Date As".此选项应与“设置当前日期为”结合使用。
Set Current Date As

Choices of:选择: -

  • Minimum Date最小日期Maximum Date
  • 最大日期
Display Format

Please refer to http://docs.jquery.com/UI/Datepicker/formatDate

Date Picker Year Range

Range of years to be shown要显示的年份范围

ReadonlyDetermines if the element is editable.确定元素是否可编辑。
Display field as Label when readonly?

Displays the value of the element as plain text when element is set to "Readonly".元素设置为“只读”时,将元素的值显示为纯文本

Workflow Variable

If the form is part of a workflow process, upon saving of the form (by clicking on "Save as Draft" or "Complete" button). The value in this input field will be saved into the corresponding workflow variable named here.如果表单是工作流程的一部分,则在保存表单时(单击“另存为草稿”或“完成”按钮)。此输入字段中的值将被保存到相应的名为here的工作流程变量中。

Info
titleUsing a non-existent Workflow Variable name

You will get the following warning with the name printed out (e.g. status) in the server log if you attempt to map to a non-existent Workflow Variable.如果尝试映射到不存在的工作流程变量,则会在服务器日志中输出以下警告(例如状态)。

Code Block
context attribute status does not exist in process context - adding new attributes to the process context is not allowed