I'm trying to design a button for when a selected date (on a form "Report Date") matches a record date (Drying.ID) and prints the related record (recordId). However, I'm struggling with selecting the record id correctly.
let myDate := 'Report Date';
let recordId := Drying.Id;
if myDate = Drying.Date then
printRecord(recordId, "Daily Report")
alert("Record not available.")
Could someone please assist - thanks in advance.
please use the following statement:
printRecord(this, "Daily Report")