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 ภาพตัวอย่างแสดงปฏิทินวันที่ใน App HR Expenses claim 

ภาพรวมในหัวข้อนี้ได้จาก Screenshots taken from http://localhost:8080/jw/web/console/app/hr_expense/1/form/builder/hr_expense_claim_entry

Figure ภาพที่ 2: Date Picker Propertiesคุณสมบัติปฏิทินวันที่

NameDescription
IDElement ID (By declaring as รหัส (เมื่อประกาศ ID ชื่อ "date" , a corresponding database table column แล้ว จะมีการสร้างคอลัมน์ตารางในฐานข้อมูลว่า "c_date" will be created)
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 คุณสมบัติปฏิทินวันที่ตัวเลือกขั้นสูง

NameDescription
Default Value

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

ดีฟอลต์ค่าเริ่มต้นเมื่อไม่มีค่าใดๆ

คุณอาจใช้ตัวแปร Hash variable ตามตัวอย่างต่อไปนี้
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., รูปแบบวันที่ในภาษาจาวา 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

ช่วงปีที่จะแสดง

ในสาระสำคัญค่าทางซ้ายของเครื่องหมายโคลอน ":" ต้องเป็นจำนวนลบและด้านขวาจะต้องเป็นจำนวนบวก มันบ่งบอกถึง Joget Workflow ว่ามีกี่ปีก่อนหน้าและจะแสดงในกล่องเลือกกี่ปี

ค่าของ

Range of years to be shown

In essence, the value left of the colon ":" must be a negative number and on the right must be a positive number. It indicates to Joget Workflow how many years earlier and how many years forward to display in the year select box based on the selected year.

A value of "c-0: c + 0" is also valid, this indicate to the user that he cannot change the year value (it will default to the current system year).ก็ใช้ได้เช่นกันซึ่งบ่งบอกถึงผู้ใช้ที่เขาไม่สามารถเปลี่ยนค่าปี (ซึ่งจะเป็นค่าเริ่มต้นเป็นปีปัจจุบัน)

Code Block
titleSample - Show 10 years before and after
c-10:c+10
Code Block
titleSample - Show specific year range
2000:2020
Readonlyกำหนดว่าข้อความสามารถแก้ไขได้หรือไม่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.) ค่าในฟิลด์อินพุตนี้จะถูกบันทึกลงในตัวแปรเวิร์กโฟลว์ที่ระบุไว้ที่นี่

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.คุณจะได้รับคำเตือนต่อไปนี้โดยแสดงชื่อตัวแปรออกมา (เช่น status) ถ้าหากการบันทึกของเซิร์ฟเวอร์ไม่มีค่าที่พยายามแมปกับตัวแปรเวิร์กโฟลว์ได้

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