How to enter values for input arguments for my function in Page?
I'm creating app to record lessons and homework completion.
I wanted to copy schedule: on day 1 I want to copy lesson1, lesson2, lesson3 to day 2.
Function works fine, when I click "Execute", because it asks for arguments (from, to).
But when I assign this function to a button in Page (homepage), it gives me an error (because it doesn't even ask to input arguments).
void CopyDay(date copyFrom, date copyTo)
{
for each lesson in Schedule[Lesson_Date == copyFrom]
{
newLesson = insert into Schedule
[
Lesson_Date=copyTo
Taken_Lesson=lesson.Taken_Lesson
Added_User=zoho.loginuser
Completed="N/A"
Education_Quarter=lesson.Education_Quarter
];
}
}