0

button - selected date matches record date - print record

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

1 reply

null
    • Support
    • 5 yrs ago
    • Reported - view

    Hi Tim, 

    please use the following statement:

     

    printRecord(this, "Daily Report")

     

    Best, Jörg

Content aside

  • 5 yrs agoLast active
  • 1Replies
  • 1905Views