I have a button in the parent table that generates a record in the child table. In the child table there are only 2 fields, one is populated when the record is generated and the other is a photo.
The question is how can I generate the record from the parent and insert the photo in the child record, or view the form of the child record, in one click?
Thank you, I will try that solution. Maybe my approach was wrong and I was thinking in a sequence of 2 separate actions instead of doing it only in one. In fact, I am now doing it in 2 separate steps that way.
For @AlexM : this is how I generate the new record in the children table.
If you want to add new row to child. THEN you want to open that form, then you can consider different approach. My suggetion was just to open new form to the child by action. Unless the user save the form (if user can cancel the form) then nothing happens.
If you like to add the new child row first, then want to open that newly added row, think about this workaround.
1st action – Add new row to the child table. For the ref field in child, pass the parent ID value. At the same time, for the child record ID, pass this value (expression) of
Then last action to GROUP those two action and place it wherever you want.
By firing action the new child record is added and saved, and you are prompted to the form view to edit. Even you cancel the edit, the row is down there, as it is already saved before we go to the form view.
If multiple users hit the action button EXACTLY same time, dont worry, it will not conflict, as we are passsing ID value with time as well as User device id. The ID value should be always unique enough.