XForms attribute
- Previous page XForms data type
- Next page XForms behavior
ປະເພດ XForms ສາມາດກໍານົດການກຳນົດຂໍ້ມູນ, ແບບຂອງມັນແລະພາບການ.
XForms attribute
XForms ນຳໃຊ້ປະເພດເພີ່ມມີຄວາມກຳລັງຕໍ່ກັບພາກສ່ວນ XForms (ຫຼືປະເພດອື່ນໆ).
ຕົວຢ່າງ:
required="true()" ການອະນຸຍາດບໍ່ອະນຸຍາດສະເພາະມີຂໍ້ມູນລະບົບທີ່ບໍ່ມີຄວາມສະຫຼາກຫຼາຍສຳລັບການສົ່ງປະຈັກ.
type="decimal" Attributes allow only decimal values to be submitted.
calculate Attributes can calculate a value from instance data.
See the attribute reference below this page.
Binding attributes to data
XForms can use the <bind> element to bind XForms attributes to XForms data:
<model> <instance> <person> <fname/> <lname/> </person> </instance> <bind nodeset="person/lname" required="true()"/> </model>
In the above example, the attribute nodeset="person/lname" can bind the attribute required="true()" to the instance data element <lname>.
XForms attribute reference
Name | Description |
---|---|
calculate | Define calculations to be performed on the item. |
constraint | Define constraints on the item. |
p3ptype | Define the P3P data type for the item. |
readonly | Define an edit restriction (edit restriction) for the item (cannot be modified) |
relevant | Define how the data is related. (For display or submission) |
required | Defining data items is a required item. (Cannot be empty) |
type | Define data types for the project. |
- Previous page XForms data type
- Next page XForms behavior