<
From version < 33.1 >
edited by Vincent Massol
on 2014/07/09
To version < 33.2 >
edited by Eduard Moraru
on 2014/10/07
>
Change comment: Clarifications on Computed fields.

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.VincentMassol
1 +XWiki.enygma
Content
... ... @@ -18,28 +18,32 @@
18 18  
19 19  ; Properties
20 20  : Properties are the characteristics that an object can have. In a class definition, the properties define the data fields that each unique instance of the class can have values for. Properties have displayers which control how the property value is displayed in view or edit mode. Some displayers use advanced pickers to help you input a valid property value.
21 -: XWiki currently supports the following kinds of properties (data types):(((
21 +: XWiki currently supports the following kinds of properties (data types):
22 22  
23 +(((
23 23  |= Field Type |= Since version |= Description |= Screenshots
24 -| //String// | | Allows to store and display one line texts |
25 -| //TextArea// | | Allows to store and display large text fields (text and wysiwyg)|
26 -| //Number// | | Allows to store and display Numbers of type integer,long,float,double|
27 -| //Password// | | Allows to store password fields which can be encrypted or hashed |
28 -| //EMail// | new in 4.2M3 | Allows to store email fields that can be obfuscated at display time |
29 -| //Boolean// | | Allows to store and display boolean values (yes/no or 1/0) which can be displayed as select or checkbox fields |
25 +| //String// | | Allows to store and display one line texts |\\
26 +| //TextArea// | | Allows to store and display large text fields (text and wysiwyg)|\\
27 +| //Number// | | Allows to store and display Numbers of type integer,long,float,double|\\
28 +| //Password// | | Allows to store password fields which can be encrypted or hashed |\\
29 +| //EMail// | new in 4.2M3 | Allows to store email fields that can be obfuscated at display time |\\
30 +| //Boolean// | | Allows to store and display boolean values (yes/no or 1/0) which can be displayed as select or checkbox fields |\\
30 30  | //Static List// | | Allows to store and display single-select or multi-select fields that can be displayed as select, checkbox, radio or suggests fields. The possible values of static list fields are configured in the field definition.
31 -| //Database List// | | Allows to store and display single-select or multi-select fields that can be displayed as select, checkbox, radio or suggests fields. The possible values of static list fields are taken from a query from other XWiki data.|
32 -| //Database Tree List// | | Same as a Database List field, with the addition that the data can be displayed as a tree, using the Yahoo Javascript Tree library |
33 -| //Document List// | new in 4.2M3 | Same as a String field, but made to store XWiki page names. |
32 +| //Database List// | | Allows to store and display single-select or multi-select fields that can be displayed as select, checkbox, radio or suggests fields. The possible values of static list fields are taken from a query from other XWiki data.|\\
33 +| //Database Tree List// | | Same as a Database List field, with the addition that the data can be displayed as a tree, using the Yahoo Javascript Tree library |\\
34 +| //Document List// | new in 4.2M3 | Same as a String field, but made to store XWiki page names. |\\
34 34  | //Date// | | Allows to store and display date or datetime values. A date picker is used automatically for this field as shown below. |(((
35 -{{image reference="datePicker.png"/}})))
36 +{{image reference="datePicker.png"/}}
37 +)))
36 36  | //User List// | | Allows to store and display single-select or multi-select users. The field uses a user picker as shown below.|(((
37 -{{image reference="userPicker-editSingle-objectEditor.png"/}} {{image reference="userPicker-editMultiple.png"/}} {{image reference="userPicker-viewMultiple.png"/}} )))
39 +{{image reference="userPicker-editSingle-objectEditor.png"/}} {{image reference="userPicker-editMultiple.png"/}} {{image reference="userPicker-viewMultiple.png"/}}
40 +)))
38 38  | //Group List// | | Allows to store and display single-select or multi-select groups. The field uses a user picker as shown below.|(((
39 -{{image reference="groupPicker-editMultiple.png"/}})))
40 -| //Computed pseudofield// | new in 4.2M3 |Allows to create a pseudo field for which the display can be configured using a script. It allows to combine other fields together.|
41 -
42 +{{image reference="groupPicker-editMultiple.png"/}}
42 42  )))
44 +| //Computed pseudofield// | new in 4.2M3 |Allows to create a pseudo field for which the display can be configured using a custom displayer and the value retrieved by using a script. It allows to combine other fields together.|\\
45 +)))
46 +
43 43  : Starting with version 4.3M2 you can define [[your own property types>>CreatingNewXClassPropertyTypes]].
44 44  
45 45  ; Objects
... ... @@ -58,4 +58,3 @@
58 58  * Armed with your knowledge of Classes and Objects you could try creating a small application, such as a FAQ application, by following this [[FAQ Tutorial>>FAQTutorial]].
59 59  * You could also start understanding how to display properties of Objects in wiki pages by using [[Scripting]].
60 60  * You could also try using the [[App Within Minutes extension>>extensions:Extension.App Within Minutes Application]] which simplifies how to get started developing an application with little required knowledge. After your application is generated, if you wish to go further and develop new features for your app, you'll need to use your knowledge about Classes, Objects and [[Scripting]].
61 -

Get Connected