StringPadder
Pads the selected attributes with a specified character, either on the right or left side. For each attribute specified, if the attribute's length is less than Pad Width, spaces will be added to the given side to bring it up to that length.
Parameters
Choose the attribute(s) to pad.
Desired String Length is the minimum length expected of the output string. If the input attribute has a length that is shorter than this desired length, it will be padded to be of this length. If the input attribute is equal to, or longer than this length, the attribute value will not be changed. Null and missing attributes will not be padded.
This sets the padding to the Right (suffix current attribute value) or the Left (prefix current attribute value).
A single character to pad the string with. If not specified, string will be padded with a space character.
Indicates whether or not to pad empty string values. Null values are not equal to the empty string. Nulls, like missing attributes, are never padded.
Example
Original value: "hello"
Pad Width: 10
Side to Pad: Left
Resulting value: " hello"
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
Transformer Categories
Search FME Knowledge Center
Search for samples and information about this transformer on the FME Knowledge Center.