Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
2500_config_apps:0700_add_edit_attributes:0300_number_attributes [2026/08/13 00:55] – ↷ Page moved from docs:2500_config_apps:0700_add_edit_attributes:0300_number_attributes to 2500_config_apps:0700_add_edit_attributes:0300_number_attributes localdev2500_config_apps:0700_add_edit_attributes:0300_number_attributes [2026/08/13 07:20] (current) – external edit 127.0.0.1
Line 2: Line 2:
 ====== Setting Properties of Number Attributes ====== ====== Setting Properties of Number Attributes ======
  
-The Number attribute type represents floating point and decimal numbers. Most properties you need to specify for attributes of the Number type are common to all attribute types – see [[docs:2500_config_apps:0700_add_edit_attributes:0100_common_props|Common Properties]]. The properties specific to the Number type are:+The Number attribute type represents floating point and decimal numbers. Most properties you need to specify for attributes of the Number type are common to all attribute types – see [[2500_config_apps:0700_add_edit_attributes:0100_common_props|Common Properties]]. The properties specific to the Number type are:
  
 ===== Format ===== ===== Format =====
  
-The format basically indicates whether the number may have decimal point and also how many digits should be displayed before and after the decimal point. The format is specified as a text string with special symbols. The allowed special symbols are described in the [[docs:8000_appendices:0300_number_format_java|Appendix C]]. You can specify the format directly or click on the “…” icon of the property to bring up the “Number Format” dialog. The following settings can be specified on this dialog:+The format basically indicates whether the number may have decimal point and also how many digits should be displayed before and after the decimal point. The format is specified as a text string with special symbols. The allowed special symbols are described in the [[8000_appendices:0300_number_format_java|Appendix C]]. You can specify the format directly or click on the “…” icon of the property to bring up the “Number Format” dialog. The following settings can be specified on this dialog:
  
 ==== Number of digits before decimal point ==== ==== Number of digits before decimal point ====
Line 18: Line 18:
 ==== Custom format ==== ==== Custom format ====
  
-Type the symbols directly into the text box according to the conventions described in [[docs:8000_appendices:0300_number_format_java|Appendix C]].+Type the symbols directly into the text box according to the conventions described in [[8000_appendices:0300_number_format_java|Appendix C]].
  
 ===== Min. value / Max. value ===== ===== Min. value / Max. value =====
Line 42: Line 42:
 This determines the value for the first instance of the object or the first instance of the “group” of instances. The default value is taken from the Value Range defined for the number (if undefined 1 is used). You can also specify an attribute that will hold the initial value. This determines the value for the first instance of the object or the first instance of the “group” of instances. The default value is taken from the Value Range defined for the number (if undefined 1 is used). You can also specify an attribute that will hold the initial value.
  
-<callout type="primary" icon="true" title="note"> //**AwareIM**// increments values of numbers that do not involve groups of instances BEFORE rules are evaluated for the object, so if rules use auto-incremented attributes, their values will already have been calculated. However, if auto-incremented attributes involve group instances their values are incremented AFTER rules are evaluated. If you have to use incremented values for such attributes in rules, set the auto-incremented values “manually” using the ''[[ref:a_f:f:af:next_sequence_nmb|NEXT_SEQUENCE_NMB]]'' function, for example:+<alert type="primary" icon="fa info-circle"
 +**note** 
 + 
 + //**AwareIM**// increments values of numbers that do not involve groups of instances BEFORE rules are evaluated for the object, so if rules use auto-incremented attributes, their values will already have been calculated. However, if auto-incremented attributes involve group instances their values are incremented AFTER rules are evaluated. If you have to use incremented values for such attributes in rules, set the auto-incremented values “manually” using the ''[[ref:a_f:f:af:next_sequence_nmb|NEXT_SEQUENCE_NMB]]'' function, for example:
 <code aim>IF Order.RefNo IS UNDEFINED THEN <code aim>IF Order.RefNo IS UNDEFINED THEN
   Order.AutoIncremented = NEXT_SEQUENCE_NMB('Order', 'AutoIncremented', Order.GroupValue)   Order.AutoIncremented = NEXT_SEQUENCE_NMB('Order', 'AutoIncremented', Order.GroupValue)
-  Order.RefNo = 'Order Prefix ' + OrderAutoincremented </code>.</callout>+  Order.RefNo = 'Order Prefix ' + OrderAutoincremented </code>.</alert>
  
 ===== Presentation Options ===== ===== Presentation Options =====
  
-Some common presentation options, such as “label” and description are described in [[docs:2500_config_apps:0700_add_edit_attributes:0100_common_props|Common Properties]]. You can also define the following properties for the Number attributes:+Some common presentation options, such as “label” and description are described in [[2500_config_apps:0700_add_edit_attributes:0100_common_props|Common Properties]]. You can also define the following properties for the Number attributes:
  
 ==== Widget ==== ==== Widget ====