
Announcements
My below code is going to be used for a calendar part of an app. This is throwing an error "cannot use a non-record value in this context" and saying taht the Table f(x) has some invalid arguments. Any ideas why this isn't working?
Patch(CalendarEventsV1,
Table(
{
ID: varCurrentEvent.ID,
EventTitle: TextInput1.Text,
StartDate: DatePicker2.SelectedDate
+ Dropdown1.Selected.Value,
EndDate: DatePicker2_1.SelectedDate
+ Dropdown1_1.Selected.Value,
Description: TextInput12.Text
}
)
);
Thank you in advance!
Ended up using this and it works fine so far.
Patch(
CalendarEventsV1,
Defaults(CalendarEventsV1),
{
ID: varCurrentEvent.ID,
eventTitle: TextInput11.Text,
StartDate: DateValue(Concatenate(DatePicker2.SelectedDate, Dropdown1.Selected.Value)),
EndDate: DateValue(Concatenate(DatePicker2_1.SelectedDate, Dropdown1_1.Selected.Value)),
Description: TextInput12.Text
}
);