(01-07-2023, 03:29 PM)rjose Wrote: Hi Andre - thank you, this is the tutorial I tried. A subtle difference I notice is that the submit_form_to_db command now contains an argument for RecordID but it isn't shown in the tutorial. I tried both "selected_contact", "RecordID", and setting the variable manually for the form Save action to use but with no luck yet.
rjose,
That second argument is a variable that will hold the
RecordID of the saved or newly inserted record.
It is Appli that fills in the value for that variable after it submits the form.
If you're inserting a new record and the form's
RecordID property is empty, that second argument will be filled with the ID of the new record.
If you are editing an existing record — which means the form has its
RecordID property set to the record you want to edit — then that second argument will be filled with the same
RecordID as the one you set the form to.
We're working to make that argument optional in the next release of Appli, in the meanwhile you can simply set it to the
selected_contact variable or create a new variable if you prefer, something like
saved_record.
I've updated the documentation to account for that variable, thanks a lot for bringing it to our attention.
- André