I'm struggling with my first Patch function.
I am tying to patch enter a new record into a Sharepointlist (Corona_Test_Lehrer_in_Klassen)
There are 3 fields:
1. Lehrer ... There I want to enter the current user's email address (stored in varUserEmail). The field is a Sharepoint person field. So it should take the e-mail. With a form that works.
2. Schule ... There I want to store the name of the school (selected in a dropdown box named Dropdown_Schule)
3. Klasse ... There I want to store the name of the class (selected in a combobox named ComboBox_Klasse)
I don't know where I'm going wrong.
Patch(
Corona_Test_Lehrer_in_Klassen;
Defaults(Corona_Test_Lehrer_in_Klassen;
{
Lehrer: varUserEmail;
Schule: Dropdown_Schule.Selected.Result;
Klasse: ComboBox_Klasse.Selected.Klasse;
}
)