ComboBoxes, ListBoxes, CheckBoxes, Buttons, DatePicker, and Labels
You can add six types of form elements to a spreadsheet: ComboBox, ListBox, CheckBox, Button, DataPicker, and Label. These elements are available in the Insert menu in Jedox Web.
Format Control Dialog
Each form element can be formatted to suit your document. After selecting a form element, the FORMAT CONTROL dialog is displayed.
The following tabs are available: General, Size & Position, Layout options, Font, and Actions.
- In the General tab, you can define the name, the data source or value and the target of the form element.
- In the Size & Position tab, you can enter pixel data for the size and the position and “TRUE” or “FALSE” for visibility.
- In the Layout Options and Font tabs, you can choose the formatting options. Note that font sizes for ComboBoxes, lists, and DatePicker form elements cannot be changed.
- In the Actions tab, you can select a specific action which will be executed by clicking/using the respective form element.
ComboBox
A ComboBox can use a formula, a subset or an ODBC query as a source.
If you want it to use a subset from a large dimension (more than 1000 elements), make sure you enable the Large subset checkbox. This option enhances the performance, since it loads elements progressively as you scroll down the list, rather than loading the whole list at once.
The target can be a cell/range, a named range, or a variable. For example, the named range Combobox1 has a subset of the dimension “Regions” of the database “Demo”:
In the case above, the named range Combobox1 has the value "Switzerland". You can also search for a specific value by typing in the ComboBox.
If the target of an object is a cell/range, this range will not automatically be updated if the worksheet is renamed. After renaming the sheet, the object has to be edited to utilize the new sheet name in the target range.
To use a ComboBox form element in combination with a DynaRange, see Example: Report with ComboBox and DynaRanges.
ListBox
The ListBox form element behaves in a similar way as the ComboBox form element, but it also allows any multiselection of elements. The screenshot below shows an example of a ListBox element in a spreadsheet.
Multiselection of list elements is only possible if, in the Layout Options tab the value of the Multiselect option is “TRUE” (which is the default setting). When enabled, there is a short waiting period of approximately 1 second after you click an element in the list. After this period, the result of the selection is sent. This delay prevents unnecessary recalculation of the worksheet while you are still selecting elements.
Displaying the selected values in Lists
You can display the selected values in "List1" in an array as named range definition as in the screenshot above or as variable definition shown in the screenshots below. In both cases, the different values are only displayed if the array cells are in a row. If the array cells are in a column, only the first value will be displayed in all cells of the array.
In the Layout Options tab, you can also select whether the list should be Collapsible or Collapsed.
To use a ListBox form element in combination with a DynaRange, see Example: Report with ListBox and DynaRanges.
CheckBox
You can create a CheckBox in any cell in a worksheet by selecting Insert > Check box.
When the Value setting is Checked, the CheckBox is given the value "True"; when it is Unchecked, the value is "False". You can choose to have the response value displayed in a target cell of your choice or have it called up with the variable names, such as a variable in an IF function: =IF(CheckBox1,A1,A2).
In the Layout tab, you can choose whether the background of the CheckBox should be transparent or not. You can define this separately for the designer mode and the user mode. By right-clicking on the CheckBox, you get the following context menu:
If "CheckBox1" is registered as a Named Range and later deleted, then the defined name "CheckBox1" has the last selected entry. The defined name "CheckBox1" is not deleted when you delete the CheckBox1.
Button
You can create a button in any worksheet by selecting Insert > Button.
You can also assign a macro to the button by right-clicking on it once you create it, and selecting Assign macro...
The Button form element has an additional Thumbnail tab, where you can select an icon/picture for the button. Allowed formats include SVG files and PNG files up to 400x300 pixels. Read also Custom Thumbnails in Reports.
Note that the Button form element does not support a transparent background color. Using the "No color" setting as the background color in the "Layout" tab will reset the background color to the default color.
DatePicker
You can create a date button in any spreadsheet cell by selecting Insert > Datepicker. For this form element, you can select a fixed date or use a formula; set it as a "named area" or as a "variable"; or assign a macro to it by right-clicking on it and selecting Assign macro...
When you use a formula as a source for the Datepicker, the output needs to be a valid timestamp (integer); otherwise, the display of the Datepicker form elements might be wrong or left empty. The timestamp value can only be reset to another timestamp; it cannot be left empty. If no changes are made, it will retain the last value selected.
The Datepicker control in Jedox Web, however, does not support this. The year 1900 is not defined as a leap year. To ensure compatibility for all other dates before March 1st, 1900, the date value "60" is interpreted as March 1, 1900, by the Datepicker control, i.e. the same date as the value "61".
Label
You can make free-form annotations on a report by adding labels. The label can display either a text or the result of a formula. You can also add more details about it in a tooltip. In the example below, the label will display the sum of the values in cells B3 to B5:
The following result is displayed on the spreadsheet:
The displayed text and the visibility of the label are formula-dependent. Using the SHOWPICT() formula on the label to display an image inside the label is not supported.
If a numeric value is shown on the label which has more than 15 decimals digits, these digits will be truncated when the report is exported as PDF.
Considerations when using Form Elements:
- Form elements are not moved dynamically in the spreadsheet if a row/ column is hidden or if the width/ height of rows/ columns changes. However, if the form contains a DynaRange, the form element may be moved when the DynaRange is expanded/ collapsed.
- If a spreadsheet cell contains a PALO.DATA formula and a value is set in this cell via a form element, the formula will not be overwritten. Instead, the set value is sent to OLAP for writeback.
- With the exception of labels, form elements will not be shown in PDF exports of a report.
- Form names must be valid. See Naming Restrictions for Jedox Objects.
- When a form element uses a "formula" as the source, this formula is always shown using English locale (for example, with a comma character as argument separator), even if the user uses another locale such as German or French. The user would also have to edit the formula using the English locale inside the Properties dialog of the form element.
Updated August 17, 2023