Copier un enregistrement sur glide

copier un enregistrement pour un créer un nouveau puis le modifier

Do you mean you want to copy a row’s content to a new row then allow users to modify that new row?

Bonjour oui c’est ça très exactement
Vous savez comment faire ?

I would do it like this:

  • Add a button that has a show form screen action inside the details view of each row of the table you want to duplicate.
  • In that form screen, point to the same table and add all components needed.
  • Set the default values for each component to the corresponding value of the “current row”.

Alternatively, you can use a combination like this:

  • Add a user-specific column to store a “temporary ID”.
  • Add a basic column to store a “reference ID”.
  • Add a relation column from the “temporary ID” to the “reference ID”, make it a single match.
  • The combo action would add a row to the same table with the values of the “current row”, then show the edit screen of the relation.
1 Like

Bonjour et merci pour l’info
J’ai déjà essayé cette solution mais cela change également l’enregistrement de la première ligne.
J’ai trouver une solution qui consiste à stoker les valeurs une une autre table ensuite je mets a jour les champs.
c’est nickel.
Merci beaucoup
Cordialement David

1 Like