I have the following method called ‘ShowDiscaimer’ under my print form.
if (quotelineitems_to_accounts.account_type == ‘Dealer’)
{
elements.DealerDisclaimerc.visible = true;
elements.RetailDisclaimer.visible = false;
}
else
{
elements.DealerDisclaimerc.visible = false;
elements.RetailDisclaimer.visible = true;
}
The method work fine, but if I print the record, both disclaimes are visible.
I have tried attatching the the method to several events and I still have the print problem.
So insted or attaching the method to the print form, I included it in my print script that is attached to a seperate form.
controller.saveData();
if (quotes_to_quotelineitems.getSize()<= 0)
{
plugins.dialogs.showErrorDialog( ‘Print Error’,‘You must create at least one line item to print a bid’,‘OK’);
}
else
{
globals.Text3 = null;
globals.Text3 = quote_number;
forms.PrintSalesQuote.controller.find();
forms.PrintSalesQuote.quote_number = globals.Text3;
forms.PrintSalesQuote.controller.search(true,false);
forms.PrintSalesQuote.ShowDiscaimer();
forms.PrintSalesQuote.controller.print(false,true,false);
}
Still, no dice. How can I run this method and print the form without previewing the form.
Thanks for any Help.