So it's working up to the point where it fills in the correct packing slip number on the prompt before the report, but then I get an error saying "This report is implemented in such a way that it must be called from a form".
I also saw your comment about not having my controller setup correctly so perhaps we need to back up for a minute to get this done right. Either that, or we just get my new request working since the original controller is working correctly.
Let's start from the beginning.
There is a form called TCI_OutsideServiceImportLog that users want to be able to choose some lines from and create a packing slip report to print.
We use Docentric to create reports which still uses Contract, Controller and DP classes but they also use a DSP class that holds all the information. I'm still somewhat new to it so I can create reports in it, but when it comes to selected multiple records on a form and looping through them was new to me. I got it working by looping through in the Controller Class.
After the report was working the way they wanted, they came to me and asked if they could find a way to reprint packing slips.
I wasn't saving the packing slip numbers anywhere because before there was no request for it. So the main table on that form (TCI_OutsideServiceImportLog) does not have a Packing Slip field. I created a new table called TCI_OutsideServicePakcingSlipJournal and tied it with the Scan Number.
Anyway, now that I'm writing this, I'm thinking to myself, why did I create a new table? I should have just added a new field to the existing table, so that's what I'm going to do.
Then after that, I think I'll use the same button "Print Packing Slip" and first it will check if all lines have a packing slip ID and it matches. If so, then assume they are reprinting the packing slip. If all lines are blank, assume they are printing a new packing slip. If one line has a packing slip and one line does not, tell them they need to choose differently.
Hopefully that makes sense and works. I appreciate your help and I may come back here to post an update after I implement my changes......