I have two tables, one main and one secondary, which adds products to the main one, to then generate a pdf.
sometimes there can be up to 60 products, and I have to wait for the 60 to update and then execute an action that creates the document for me, which can take a long time for the pdf.
Is there a way to generate this document without waiting for the update?
postscript:
I need an action to generate the document because if I do it automatically, it doesn’t show me the records of my secondary table.
Generally, when a bot is created that generates a pdf once a form has been saved, there is an error because it is created without having loaded the records of the secondary table.
Therefore, I created an action that triggers this bot, only when it is clicked, thus I solve the problem that it does not load the secondary records in the pdf.
But this way, you have to wait until all the child records are loaded before creating the pdf, I don’t know if there ¿ is a way to generate a pdf with the child records, immediately, before they are uploaded to the server?.