I got this to work on a separate section of my application but can't get it to work here. It's pulling all the records, not just the individual record matching the ID.
Situation: I have an Equipment form and in that form is an Invoice_Number lookup field. I'm trying to create a custom button that when clicked will pull up the invoice record based on the Invoice_Number field. I used the same script for a maintenance custom button for the equipment form and that works fine. However, when I modified it to fit the Invoice, it's pulling up all Invoice records instead of the one record.
- void display.viewInvoice(int id)
- {
- openUrl("#View:All_Purchases?Invoice_Number=" + input.id + "&zc_Header=false&zc_Footer=false&zc_DelRec=false", "popup window", "Height=300,width=550");
- }
Any idea what I've done wrong?