1. "Fabrik 4" helpers needed!

    You are invited to join other community members active in coding, maintaining and improving Fabrik. Please visit https://fabrik.help for more information!
    Dismiss Notice

populate repeat group from table

Discussion in 'Standard Support' started by maxxxweb, May 25, 2023.

  1. maxxxweb

    maxxxweb New Member

    Level: Community
    Hi all, I have two joined tables and the second table has a repeating group. I would like to preload the table data into the repeating group of the form. I thought of modifying the form template, the "default_repeatgroup_table" file, creating a query that populates the repeated group. I have the problem of populating when there are multiple rows in the table why should I create as many repeating groups as there are rows in the query.
    Can anyone show me a way?
    Thank you
     
  2. juuser

    juuser Well-Known Member

    Level: Community
    Last edited: May 27, 2023
  3. maxxxweb

    maxxxweb New Member

    Level: Community
    Thanks for the reply.
    The repeating group not of the same module but of a joined module. The xx_repeat table was not created and therefore I don't have the parent_id. I keep looking for a solution.
    Thank you
     
  4. troester

    troester Well-Known Member Staff Member

    Level: Community
    If you have a (correct) Fabrik join you have the parent id: it's your foreign key element.
    But in this case the repeat group would populate automatically.

    Gesendet von meinem SM-G930F mit Tapatalk
     

Share This Page