Automatically add a repeat triggered by a computation

Hi all,

for my requirement, I have two repeatable groups: One is used in the UI and is filled by the user, the other purely exists in the backend and should be filled by computations based on the values entered in the first group. I have figured out how to construct the relevant computations. But when a repeat is filled in the “UI group”, no repeat is added in the “technical group”. Once I manually add a repeat to the technical group, the computations are run as I expect but I don’t want the user to have to do this manual action in the UI. Is there a way to trigger the creation of a repeatable group by modeling alone or do I need a dev for this?

As an example, I have created this simple example workspace. In my data model, I have two repeatable groups “Links” and “LinksTechnical”. I want to write the URL and description entered in “Links” into their respective counterparts in “LinksTechnical”. This works fine but I need to add repeats to my “LinksTechnical” repeat so that the computation runs:
Simple_Model_Editor_2sCsS8mIMo

Cheers,
Lea

Hi @lea-clear-clover

The current limitation in the Kernel Language is that you cannot model a Computation Rule that adds new rows (index) to your repeatable group. Once the row exists, you can trigger the computation (as you have seen).

Currently, I see two solutions:

  1. Ask a developer to help
  2. Move the technical fields and computations into the original repeatable group.

You have clearly explained what you need to do but not why the Links (technical) need to be saved in a separate repeatable group. If you can add the technical group to the exisiting repeat you have a number of advantages:

  • Your computations will work as the repeat rows are created by the end-user
  • You don’t need to duplicate data.

Unfortunately, the technical fields need to be in a separate group due to project-specific modeling limitations. I will ask a developer then.