button - selected date matches record date - print record
Ninox Profile

Hi

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")
else
alert("Record not available.")
end

Could someone please assist - thanks in advance.

Tim

Ninox Profile

Hi Tim, 

please use the following statement:

 

printRecord(this, "Daily Report")

 

Best, Jörg

Reply