Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
The Page Component Import is a feature to import bulk data (in a .csv or Excel file) into a specific Joget form. The Import component aids in performing simple column-to-field mapping. When importing records, you can specify the following import mode:
During import, you can click the "Validate data" checkbox to perform data validation based on the form field validation rules.
It is formerly known as Import Menu in Joget DX 7.
Figure 1: Import component in UI Runtime
Name | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
Label | The UI Builder page component label. You can add Font Awesome Icons into your component labels. Default label is Import. | ||||||||
Menu ID | Optional custom component id. Value defined here must be unique to the rest of the page components as the first matching name will be called upon. | ||||||||
Form | Specify on where to store the data by choosing a target form. The target form's store binder will be called upon for data storage. Post Form Submission Processing Any Tool mapped under Post Form Submission Processing of the target form will be triggered each time a record updated or created. Important: The tool mapped will be triggered regardless of the Run Tool on attribute. | ||||||||
Column Mapping |
| ||||||||
Key Column Number | Define column number that defines the record id. Column number starts from zero. | ||||||||
Start From Row Number | Define which row number to start processing. Row number starts from zero. | ||||||||
Custom CSV Delimiter Character | Symbol to represent the delimiter separator. | ||||||||
Custom CSV Quote Character | Symbol to represent the regular quote character. |
Figure 3: Action Properties
Name | Description |
---|---|
Confirmation Message | Confirmation Message. |
Message to show when error occur | Message shown when error occur. |
Message to show after data imported | Message shown after data imported. |
Redirection (Hyperlink) | URL to redirect, for example, to redirect to the CRUD List. |
Figure 5: UI Properties
Name | Description |
---|---|
Custom Header | Custom Header in HTML. |
Custom Footer | Custom Footer in HTML. |
Figure 6: Import Properties - Advanced
Name | Description |
---|---|
Disable delete record feature | Disables the option for end users to delete records. |
UTF-8 Encoding Checking? | When checked, it will check the uploaded file if it is a valid UTF-8 encoded file. |
UI Key Name | Corresponding element ID in the form set above to be mapped to (same like the mapping in "Column Mapping" above). When defined, the UI Key value will be saved into the field defined here. |
Example:
With the configurations above, we will attempt to import the following data in the screenshot below.
Figure 7: Source data highlighting data that will be imported into the target form's database table (master)
Figure 8: Data written into the form table (master)
Figure 9: Source data highlighting data that will be imported into the target form's subform's database table (child)
Figure 10: Data written into the form table (child)
Cache Settings
Figure 11: Performance & Offline Settings
Name | Description |
---|---|
Scope | Caching options are:
|
Duration (s) | Duration in seconds to cache content, defaults to 20 seconds if applicable. |
You can configure the Performance settings in the UI Builder Page Component which allows one to cache existing content for improved performance and loading speed. Read more at Performance Improvement with UI Caching.
This is a new feature in Joget DX 8.
Figure 12: AJAX & Events - Event Listening
Name | Description |
---|---|
Component Object | The object that will be listening for an event. This field will dynamically show selectable options depending on the page components used. e.g: if there is a page component called manage meeting in the page, it will automatically show up in this field's select box. |
Event Name | Custom Event Name. |
Matched Action | Action to be listened for.
|
Add row | Adds another row for another event |
Figure 13: AJAX & Events - Event Triggering
Name | Description |
---|---|
Event Name | Custom Event Name |
Trigger Method | The method used to trigger an event.
|
Parameter Name | Custom Parameter Name. |
Operator | Logical Operator to be used in evaluating "Parameter" against "Value"
|
Value | The value that the Parameter will be compared to. |
When Not Match Trigger Event Name | Event Name when/if the logical operation is not satisfied. |
Add row | Add another row for another event. |
The Joget User Mgnt Utility has an import component to import user records into Joget DX. You can download the app from Joget Marketplace.
Download Demo App
Download the following sample app and CSV file to demonstrate the use of Import component.