APR problem printing from custom control on ARInvoice

Hi all,

I am trying to send an email or print from two custom tickboxes placed on the InvcGrp. I think my problem is in my data directive as I have no access to the invoice number from the InvGrp table.

image

This is where the tickboxes are;

The breaking is set up like this;

Any help would be much appreciated.

Adrian

I trigger the APR from InvcHead. I have an In-Transaction Data Directive that triggers a Standard Data Directive when the Posted field changes from False to True. The Standard Data Directive also builds a CSV file for each Invoice/Credit that is used to send some invoices via EDI and then APR handles the email option (none are printed)