Skip to Content
0
Former Member
Dec 12, 2011 at 03:58 PM

Adobe Form - Print choice of bold or not bold font

2084 Views

We have an Adobe form that prints sales order line items that are followed by their scheduling data (if any). So, each order line item could be followed with one or more scheduling line items or none. Example:

(Order line) 10 9055450 7,000 EA <other data>

(Schedule lines Expected Ship Date: 5,000 EA 05/30/2011

for the order line) Expected Ship Date: 2,000 EA 07/16/2011

This is working fine using a subform but now we want to print the scheduling line items either as bold or not bold depending on some logic. So, we want this:

(Order line) 10 9055450 7,000 EA <other data>

(Schedule lines Expected Ship Date: 5,000 EA 05/30/2011

for the order line) Expected Ship Date: 2,000 EA 07/16/2011

We have an indicator set for each scheduling line item that indicates if the schedule line is to be printed as bold or not bold (schedules-bold_line = u2018Xu2019).

Is there any way to override the font settings in the Layout using Script Editor?

Weu2019ve tried using Script Editor (at a upper level subform) to set the presence (hidden/visible) of two different subforms (one to print as bold and one not bold) but that printed both subforms.

Weu2019ve tried using Alternative nodes (true/false) that check the bold line indicator. This works but it prints the wrong data because there are direct binding references to multiple levels of repeating data. That is, instead of printing the schedule lines for order line item 10, it prints the schedule line items for order line item 20.

(Order line) 10 9055450 7,000 EA <other data>

(Schedule line Expected Ship Date: 1,000 EA 06/01/2011

for the next order line)

How would I use relative binding in Alternative nodes?

Is there a better method to accomplish this task?

Any help is greatly appreciated.