iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🔁

Loop Processing on Customine List Views (Using "Extract Elements from a List")

に公開

Article Overview

This is a memorandum about how I implemented loop processing on a list screen using "Extract elements from a list" in Customine. In reality, I built a flow that processes loops on a list screen -> outputs reports as PDFs -> and then downloads the generated PDFs together as a ZIP file. Since that would be quite long, I'll start by writing about the initial loop part.

If you would like to implement the content of this article in your company, please feel free to contact us via the kintone Spot Development Free Consultation Form.

Reference Site

https://support.gusuku.io/ja-JP/support/solutions/articles/36000377698

I tried to implement the content described here.
Actually, I received help from online support.

What I want to achieve

For example, when four records are displayed in a list as shown below, the goal is to loop through these four records and perform some processing. In this case, I'm simply displaying an information dialog.

Getting list screen contents and displaying the count

It looks like the following. We haven't entered the loop yet at this point.

  • Place a button
  • Click the button to get the records displayed on the list screen (this is when they are put into a list)
  • Get the number of rows of the retrieved records
  • Display the number of rows in an information dialog

When executed, the dialog shown below appears.

From here, it is the loop using "Extract elements from a list"

This will loop through the 4 items and display information dialogs.

It's very simple, but I struggled with this for about a week.

Incidentally, the part where I was stuck was:

The cause was that I had set this to "When execution of another action is completed" instead of "When execution of any action is completed." This probably prevents it from entering the loop, so please be careful, everyone.

Summary

I was able to successfully implement the loop. I'll write another post about the part where I generate PDFs one by one and finally download them together as a ZIP file.

Click here to inquire via the form: kintone Spot Development Free Consultation Form

Discussion