Bulk update customization
Overview
This article assumes the following scenario: Dealing with accumulated records that require status approval when using process management.
Approving multiple records individually is time-consuming. Customization can be used to enable approval in bulk in the Record List page.
By adding Kintone UI Component to the UI, the user can rapidly create screens that match Kintone.
Components to use
Completed image
The completed image of the customized page is as follows:
What you will need to have ready
Create a dedicated record view for bulk approval of records. The “(Assigned to me)” view can also be used, but for illustrative purposes this article will describe the creation of a separate, dedicated view.
As an example, this article will show how to create a view that only displays records with the status “In progress” and that are assigned to the logged-in user.
JavaScript and CSS customization
Import the UMD file of Kintone UI Component to the app and upload the JavaScript file (bulkUpdate.js) with the implementation described below.
See Quick Start for how to upload a file.
For this customization, SweetAlert2 is used to create the confirmation dialog box, so the following file must be imported separately:
A Dialog component is scheduled to be provided in a future version update. In the future it will be possible to use this component instead of manually implementing the confirmation dialog box.
bulkUpdate.js
kintone.events.on('app.record.index.show', event => {
// Write the process here
});