Configure Edit and Form
This article is for Qlik developers. It describes how to configure fields, editors, and settings of the Edit and Form extensions. For first-time setup, see Basic Configuration. For a list of all properties, see Edit and Form Property Panel Reference. For instructions for end users, see Use Edit and Form.
This article contains the following procedures:
Configure Fields
Configure Common Field Features
- Configure Key-Value Mapping
- Default Values
- Allow Global Inputs
- Configure Conditional Editing
- Set the Column Width
- Set Field Visibility
- Colorize Fields
- Configure Matching Fields
- Define Validation Rules
- Configure Associated Dropdowns
Configure Appearance and Sorting
Configure Extension Settings
- Turn on Manual Edit Mode
- Turn on Developer Mode
- Allow New Items
- Turn on Excel and CSV Data Import
- Configure the Autogenerated Identifier
- Change the New Row Marker Color
- Configure Grid View
Configure Fields
Set the Technical Field Name
The FiplanaWrite! Technical field name (TFN) is a free text field that you use to set the TFN of a field. By using the TFN, FiplanaWrite! maps Qlik fields to fields in the associated Endpoints of the app. When you configure endpoints in FiplanaWrite! Management Console (FMC), each field has its own TFN. Therefore, set the TFN of each field that you want to save in its endpoint to match the TFN of the endpoint field.
Set the Field Type
The Field type property defines which type of data the field holds. The field type restricts the Editor options of the field. The available data types are:
Text
Number
Currency
Date
Select the same field type in the endpoint. insightsoftware recommends that the field type match the type selected in the endpoint of the extension. For a list of mappings of endpoint field types to field types and editors, see Field Types and Editors.
Escape HTML in Strings
Fields with this option on don't render HTML tags. The option is available for Edit columns with the Text field type and for Form dimensions.
Choose an Editor
The Editor property defines how users interact with a field.
To choose an editor, follow these steps:
Go to Extension settings in Qlik.
Set the Qlik Field type.
Select an Editor that's available for the field type that you chose in step 2. For the available options, see Available Editors.
Use the WYSIWYG Editor with Endpoints
Data connections in the Qlik data load editor limit the number of characters that they load from the database, depending on the type of data connection. If the content exceeds this limit, the loaded cell content is cut off. You can configure data connections to load more characters (for example, by setting useBulkReader to 0 for PostgreSQL data connections). This might slow down the loading process.
In FiplanaWrite! Management Console (FMC), you can select the styled text field type when you configure the fields of an endpoint. When you select this option, the extension creates two columns in the database tables of the endpoint:
-
<fieldname>_plain—saves the text unformatted. -
<fieldname>_styled—saves the text formatted.
Endpoint field settings set up for use with WYSIWYG
For more information, watch the video about the WYSIWYG editor on YouTube.
Use Multiselect with Key-Value Mapping
You can use the Multiselect editor with Configure Key-Value Mapping. In this case, configure the load script carefully to map concatenated keys to concatenated values. The following code snippet shows how:
First, split the multiselect field along the delimiter by using the SubField function, and apply the mapping to each item by using ApplyMap. Then, in a separate load, concatenate the mapped values again by using the Concat function. Make sure to group the individual values by the original primary key.
Configure Common Field Features
Configure Key-Value Mapping
The Key-value mapping feature separates displayed values from saved values. When you turn it on, the extension saves the associated keys of the field in the endpoint. You can use it with editors such as Dropdown and Multiselect.
To turn on the feature, select the Activate key/value checkbox. The Key field for values drop-down list appears. Select the key field in your data model.
Make sure that keys and values have a 1-to-1 relationship in the entire data model. 1-to-n relationships overwrite data.
To display both key and value in the cells, see Turn on Developer Mode.
Property Panel options with the Key-value mapping feature turned on
For more information, watch the video about key-value mapping on YouTube.
Default Values
The Default values feature pre-populates fields when users create new records in your extension. When you turn it on, you can set automatic values for dimensions and measures by using Qlik formulas. Using default values to specify dimensions is especially useful in Forms, because it can help you create new rows without creating duplicates. To use default values, turn on Allow New Items in your extension settings. When this option is on, the Default value field appears for each dimension and measure in the Property Panel.
Set Default Values
To set default values for fields, follow these steps:
Go to a dimension or measure in the Property Panel.
Find the Default value field.
Enter any valid Qlik formula.
In the extension toolbar, select the
Add row icon.
The default value automatically appears for the chosen dimension or measure.
Default Values Acceptance Criteria
For the extension to accept default values, make sure that the following conditions are met:
-
The default value matches the field type that's specified for the column.
A numeric field can't include text values. A date field requires correctly formatted date values.
-
The editor input is valid. Different editors have specific requirements. To check the accepted values for editors, see Choose an Editor.
Sample editors and their accepted values
Editor Accepted values Checkbox Only 0 or 1. Rating Only values within the configured rating range. Dropdown Only existing values in the current data. -
For drop-down fields with column associations, make sure that:
The default value exists in the current data.
When the field is associated with other columns, the value combination already exists in the data.
The extension checks that the default value appears together with any previously set values.
For date fields, use the YYYY-MM-DD format, for example, =Date(today(), 'YYYY-MM-DD').
If the requirements of the Field type and Editor aren't met, the extension ignores the default value.
Default Values Limitations
You can't set default values for the following columns:
Calculated columns, because they derive their values from other data.
Auto-GUID columns, because they're automatically generated unique identifiers.
Default Values Best Practices
insightsoftware recommends the following practices for default values:
Use default values to keep new entries consistent.
Use formulas that generate unique values when needed.
Test your default values to make sure that they meet all validation requirements.
Default Values Troubleshooting
If your default value doesn't appear, try the following:
Verify the formula syntax: Check your Qlik formula for errors.
Confirm the data type: Make sure that the result matches the expected type of the column.
Check editor restrictions: Review the specific requirements of your editor.
Examine associations: For related columns, verify that the value combinations exist in your data.
Allow Global Inputs
You can turn on the Allow global inputs option for the following editors:
- Date
- Free text
- Checkbox
- Traffic light
- Rating
The Allow global inputs option is useful in the Edit table. It adds the editor input, for example, a checkbox, to the column header. When a user changes the input, for example, the checkbox state, all rows of the column change to the selected input. For instructions for users, see Overwrite All Values in a Column.
Allow global inputs isn't available when Conditional editingby cell is on.
Configure Conditional Editing
With the Conditional editing option, you manage the editability of a field by using a Qlik expression. You can turn on conditional editing for the whole field or for individual cells.
When you turn on conditional editing, a Qlik formula becomes available in the Property Panel. The field is editable if the expression of the formula equals 1. The default value of the expression is 1.
In the following example of a Qlik formula, editing is limited to the Personal/Me user:
=if(OSUser() ='Personal\Me',1,0)
or
=(OSUser() = 'Personal\Me',True(),False())
Available conditional editing settings
The By field option applies its Qlik formula to determine the editability of a full column. The By cell option applies the Qlik formula individually to each cell of the column. If the formula references other fields, match them as described in Configure Matching Fields.
Set the Column Width
The Column width setting is available for the Edit extension. It limits the width of the column of a field in the Edit table. You can set both the minimum and the maximum width. If the content of the column exceeds the width, the extension adds a line break. If you set the maximum width to Auto, the column width is the length of its longest text.
Column width setting of a field in the Property Panel
Set Field Visibility
With the Visible feature, you configure the visibility of fields. The following options are available:
- Show always (default)
- Hide always
- Conditional show—a Qlik formula determines the visibility.
The Visible feature in the Property Panel
Example 1:
This example shows the Visible feature with the Conditional show configuration. With conditional show, you can hide fields from users who don't have the rights to see them. To do this, use a Qlik expression:
if UserType = Admin (1) , (0)
Only users with the Admin user type can see the field.
Example 2:
This example shows the Form extension with the Visible feature set to By field. In the Article field, the Visible feature is set to Conditional show with a Qlik formula that hides the article if the value of the Quantity field exceeds 50:
if(Quantity>50, 1, 0)
Article visible because the quantity is lower than 50
Article hidden because the quantity is higher than 50
Colorize Fields
The Colorization feature lets you configure the text color of a field, its background color (Edit only), and its border color (Form only). Set the colors by using Qlik formulas in the respective X color expression option (where X is Text, Background, or Border). Colorization works only with line-by-line assessment, without aggregation functions, and isn't available for the Checkbox, Traffic light, and Rating editors.
Examples of colored cells
To set or change a color, double-click in the field and add a Qlik expression that includes a color function. The expression returns a color. For the available functions, see Color functions in the Qlik documentation.
Color expressions for background and text
If the expression references other fields and you apply it by cell, see Configure Matching Fields.
Configure Matching Fields
When you configure a property by cell with a Qlik formula that references another field, for example, with Conditional editing or Colorization, you need to match the fields. Matching lets Fiplana update the values instantly. Use the Configure matching fields button for all by cell formulas. The Expression matching fields settings dialog also opens after you save a formula that contains other fields.
Expression matching fields settings
In this dialog, match the fields of the formula to Fiplana fields. If you match them correctly, the extension applies the formula live while users edit those other fields. If you don't match them, changes in the formula result apply only after a reload.
Example: With the Qlik ColorMix1 function, you can create gradients. To do this, use the following formula as the expression in the Background color expression option of the Sales field:
ColorMix1(if ([Sales]/1000 > 1, 1, [Sales]/1000),White(),RGB,(243,131,0))
The background color of the Sales field in the Edit table changes gradually based on the individual cell values, as shown in Configuration of a color gradient using the Background color expression option.
Configuration of a color gradient using the Background color expression option
If you change an expression, the extension clears all mappings, and you need to set them again.
Define Validation Rules
You can define a Validation rule for every dimension or measure. The feature verifies that the data entered in the field is valid. The following validation options are available:
Qlik formula
Predefined expression
Regular expression
When you choose Qlik formula, the extension adds the Validation expression input. The validation succeeds only if the expression equals 1.
When you choose Predefined, a drop-down list with predefined rules appears. The predefined rules depend on the Set the Field Type. For the list of rules, see Predefined Validation Rules.
When you choose Regular expression, the extension adds a text input that accepts JavaScript regular expressions, for example, \d{1}. For more information, see RegExr.
The extension evaluates validation rules for all fields in the Form extension when you finish editing any field. When validation fails, the affected cell turns red, and the extension notifies the user of the error. The Save button is disabled as long as there are invalid cells.
You can also define custom error messages to replace the default ones. When validation is on, the Custom validation error message Qlik expression input is available. The expression returns a text.
Example:
Validation expression:
if(Quantity <>3,0, 1)
Custom validation error message:
if(Quantity <>3, 'You must enter 3')
Validation expression and custom validation error message in the UI
Sample error message
Error message in the upper-right corner
When users create a new row, the primary keys already have a validation rule: they must not be empty. You can also apply another validation rule to these fields.
Validation rules don't apply when Allow global inputs is on.
Configure Associated Dropdowns
With the Associated dropdowns feature, you can link several fields that use the Dropdown or Non edit editors. The feature uses the association logic of the Qlik data model. When you configure it, the selections available for drop-down fields depend on the selections of the other linked fields. This makes sure that the linked drop-down lists show only semantically correct values.
For example, for an entry that indicates a country, users can select only states within this country. When users pick a value in one field, the other values are restricted according to the association in the Qlik data model. Multiple associated groups can also exist independently in a large table. For how users work with associated drop-down lists, see Use Associated Dropdowns.
Example of fields connected with the Associated dropdowns feature
To configure field associations, first make the fields available for association. To do this, turn on Activate as associated field in Property Panel > Data > Associated Field. The option is available for the Text and Number field types with the Dropdown editor, and for the Text, Number, and Currency field types with the Non edit editor.
Activate as associated field option in the Property Panel
When you turn on Activate as associated field, the Associated group settings dialog opens.
Associated group settings dialog
In the Associated group settings dialog, you configure associated groups. A group consists of associated fields that you add by selecting Add associated field. If you delete a field that's part of an associated group, the extension also deletes it from the group.
Configure Appearance and Sorting
Style Edit and Form
For general information about styling settings, see Styling in the Common Features chapter.
Configure Sorting
Sorting determines the sort order of rows in the Edit extension table. It has no effect in the Form extension. Each field that you configure in the Data section has a corresponding entry in the Sorting section. To change the sort order between fields, drag and drop the items. To change the sorting within a field, configure it on the sorting tab of the field. Set Sorting to Auto to use Qlik sorting, or to Custom. Custom sorting lets you sort by Qlik expression, numeric value, or alphabetically.
Custom sorting options example
For information about how users sort columns directly in the table, see Sort Columns in the Edit Table.
Configure Extension Settings
The Fiplana Edit settings in the Property Panel include the following options:
- Manual edit mode
- Developer mode
- Allow new items
- Allow data import
- Autogenerated identifier
- New row marker color
The Fiplana Form settings include Grid view.
Turn on Manual Edit Mode
Edit mode prevents the Fiplana extension from reloading. The feature applies to all extensions. By default, it's on only when a user has unsaved changes in the extension. When you turn on Manual edit mode, the extension adds a button with the icon to its navigation bar. The button toggles the edit mode of the extension.
The feature is helpful when multiple users work on the same Fiplana Endpoints. Without the feature, any save operation by any user can trigger reloads for all other users and disrupt their work. With Manual edit mode on, users can review the current state of the data and reload when they want to.
While edit mode is on, the extension never reloads, either through a Qlik data reload or through a user selection.
Turn on Developer Mode
You can use developer mode together with Configure Key-Value Mapping.
When Developer mode is on, cells that are associated with key-value mapping display both key and value, separated by a pipe symbol.
Key-value mapping with developer mode on
Allow New Items
The Allow new items option lets users add and remove rows in the extension. When it's on, the extension adds the Add and
Remove buttons to the navigation bar. For instructions for users, see Add and Remove Rows.
The Allow new items option works differently depending on the extension type.
Allow New Items in Edit
For the Edit extension, you only need to turn on Allow new items in the extension settings. No other prerequisites are required.
Allow New Items in Form
For the Form extension, the Allow new items checkbox is visible in the extension settings only after you meet the following prerequisites:
Turn on Automatic primary key for the endpoint associated with the Form extension. For more information, see Automatic Primary Key.
In the Property Panel of the extension, turn on and configure the Autogenerated identifier. For more information, see Configure the Autogenerated Identifier.
After you meet these prerequisites, users can create new items in the Form extension in the following scenarios:
The endpoint uses only the Automatic primary key as a dimension.
You've set Default values for all other dimensions that produce inherently unique values, such as generated random values or timestamps. For more information, see Default Values.
To let users create new items that share the same dimension values as an existing record (other than the automatic primary key), also turn on Allow duplicates on the endpoint. For more information, see Allow Duplicates.
Turn on Excel and CSV Data Import
Users can import multiple rows of data from external Excel and CSV files directly into the Fiplana Edit extension. To turn on data import, follow these steps:
Go to Qlik Sense > Fiplana Edit > Fiplana Property Panel > Fiplana - Edit settings.
Find the Allow data import setting.
Turn on the setting.
When import is on, the extension displays the
Import option in its navigation bar. For instructions for users, see Import Excel and CSV Data.
Configure the Autogenerated Identifier
You can use the Autogenerated identifier feature only with an endpoint that has Automatic Primary Key turned on. When you turn on the feature, choose the Autogenerated identifier field. It defaults to endpoint_guid, which is the field name of the automatic primary key of the endpoint.
The extension then creates an additional dimension called endpoint_guid. Users can never edit it manually, and it's invisible by default. You can change its visibility in the Property Panel.
Autogenerated identifier field in the UI
Added dimension endpoint_guid
If you migrated an existing Edit endpoint to use the automatic primary key, update its Qlik load script by using Suggested Load Scripts for that endpoint.
Change the New Row Marker Color
To customize the color of the new row marker, use the New row marker color property in Property Panel > Fiplana- Edit settings. The default color is green. For information about how the marker behaves, see New Row Marker in Edit.
Configure Grid View
The Grid view feature applies only to the FiplanaForm extension. You can show Form in a grid view, where you can move, lengthen, shorten, and switch fields through drag and drop, like worksheets in Qlik.
In the Fiplana Form settings, turn on the grid view and set the number of rows and columns. Then you can move each field to a new spot in the grid. To change the size of a field, select it and drag the cursor away from or toward the field. This way, you can create longer or shorter fields, or fields that span two or more lines.
To switch the positions of fields, drag a selected field onto another field. If you drag a longer field onto a shorter space, the extension adapts its size as well.