Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Updating a record
#10

(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é
Reply


Messages In This Thread
Updating a record - by rjose - 12-25-2022, 05:50 PM
RE: Updating a record - by tomglod - 12-29-2022, 06:46 PM
RE: Updating a record - by tomglod - 12-29-2022, 09:34 PM
RE: Updating a record - by rjose - 12-30-2022, 12:13 AM
RE: Updating a record - by tomglod - 01-02-2023, 05:53 PM
RE: Updating a record - by rjose - 01-02-2023, 08:05 PM
RE: Updating a record - by agarzia - 01-06-2023, 03:53 PM
RE: Updating a record - by rjose - 01-07-2023, 03:29 PM
RE: Updating a record - by agarzia - 01-07-2023, 03:36 PM
RE: Updating a record - by agarzia - 01-09-2023, 07:16 PM
RE: Updating a record - by marktalluto - 01-24-2023, 07:06 PM
RE: Updating a record - by rjose - 02-23-2023, 05:17 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)