I'm wondering if anyone has developed an eloquent solution for collapsing Addressee fields when there is no data. In my example, my addressee does not have an ADDRESS2. I've tried everything I can think of on how to remove the blank space when line 2 does not exist.
This seems like an easy task with several options:
In the XDD, map ADDRESS2 to the XML Line 2 when it exists, else map it to City, State Postal code. This doesn't work because it always maps to the 1st recipient's City, State, Zip and not the ADR_CITY, ADR_STATE, ADR_POSTALCODE.
Map to the ADR* GVMs. This doesn't work either; They always seem to be null. I'm not sure when they are populated: during GenData or GenPrint? I see them defined in the rcbdfdfl.dfd so I'm assuming it's the latter but that's just a guess.
Have two sections: one with Line1 and Line2 and the other with only Line1. I can't get this to work either for the same reason: the trigger tries to access the ADR_ADDRESS2 variable and it is always null.
Any thoughts or ideas would be greatly appreciated.
Thanks!
Dave