IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#43949 - 06/25/13 03:47 PM Conditional blank lines
Jon C Offline
OL Newbie

Registered: 06/25/13
Posts: 1
Loc: Roanoke, VA
To all:

I have a letter setup with 4 columns, and some of the fields in each column are blank, and I need the data to float "up" depending on the condition of certain fields.

Just to use as a quick example. I would have applied this script to the field that I wanted to use for printing the blank space, but it would still allow for another field, if it were blank, to skip empty fields.

if (Input == "") return " " + "\r";
else return Input;

Thanks for any suggestions you may have.

Top
#43972 - 06/28/13 09:22 AM Re: Conditional blank lines [Re: Jon C]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Jon,

As I understand, some lines of data can be completely empty, and you'd like the rest of the data to "move up", rather than displaying a blank line, correct?

There are many ways to do this, and it depends mostly on how do you display your lines of data. And so, we need some more information. How are you displaying the data lines? Are you using a data selection or text box with a Repeat? Are you using PressTalk to loop through the lines? Is it one huge data selection taht selects many rows and you'd like the empty lines to be "skipped"?

Regards,
Raphaël Lalonde Lefebvre

Top