Repeating group, seems simple but I dont understand

Hello Everyone,

I have a issue that I don’t understand how to solve :slight_smile:

It’s seems simple, but the application of it took me already 3h and I don’t understand how to fix it.
I explain my case, I have a repeating group based on “DB_Article” but I want to let the user add one line by line and then at the end have a “Import all”

SO the next line of the RP Appair only when he click plus, the data of the first line are keep in the custom state

I tried with the custom state, but seems to not work ?

Not fully understanding your issue… Could you try explaining it in another way?

couple shots in the dark:

1 - if you are trying to save this table somewhere, it seems like each line is already saved in the database… Seems like all you need to do is all the repeating group items to a list inside of another Datatype?

2 - You mention custom states, why do you need these and what are you trying to do with them? Using custom states within a row of a repeating group can really only be done with the Orchestra & Musicians plugin. That might get you going.

A repeating group will only show the entries that are stored in the database and that appear in the data source search. To do what you need to do, you need to store each line as they are made. You should add an input group below your RG so that looks the same as your RG, this will have input elements. when you click save, it adds the Article to the database.

If you want to keep these separate from other entries until the import all button is clicked, then you should setup either a shopping basket system, or use states or categories for Articles not imported.