Hi,
i just reviewed some code, i wrote in the beginning of my power apps career and now im confused how that code can work properly.
Im patching a MYSQL database (adr_de) with data from a editform. The editform gets its data from a collection, that is filled with data from the mysql database adr_de.
Im writing my changes back to the collection and patch the mysql database.
First, the following code works, even though there is no lookup for the specific record?!
:
//Update Collection
SubmitForm(formKundeEditieren);;
//Update adr_de
Patch(
'[Abrechnung].[adr_de]';
{ADR_DE_EGZH_LETZTER_BESUCH: DatePickerLetzterBesuch.SelectedDate};
{ADR_DE_EGZH_NOTIZ: txtNotiz.Text};
{ADR_DE_FINAME1: txtFirma.Text};
{ADR_DE_FINAME2: txtName.Text};
{ADR_DE_STR: txtStrasse.Text};
{ADR_DE_ORT: txtOrt.Text};
{ADR_DE_TELEFON: txtTelefon.Text};
{ADR_DE_TELEFON2: txtHandy.Text};
{ADR_DE_MAIL: txtMail.Text};
{ADR_DE_EGZH_ER_ZK: dropER_ZK.Selected.Value};
{ADR_DE_EGZH_LKV_MGL: dropLKV.Selected.Value})