Script, Find records, from previous table's record/layout

Discussion created by tleitzke on Dec 29, 2016
Latest reply on Dec 29, 2016 by BruceRobertson

I am trying to create a simple inventory ordering system. I have created an invoice and products table, with a third table for storing invoice ID and product ID reference. What I need to do is create a print-report of the portal/records of the specific invoiceID. I have a button on the form layout of Invoice table (which has the portal I want to print, with relation to Invoice by InvoiceID). The button currently does "Go To Layout(X)" followed by "Perform Find(X)"- which is set to find by InvoiceID, which comes out to (i am guessing) "0" instead of the previous layout's record's InvoiceID number. (price fields were removed after this image was taken, which is only change)