Skip to main content

Can you help me to find the solution?

Thanks,

Without Test-condition:

Transformer StringFormatter, Format String: 02s


I use the "AttributeManager" transformer with Test-condition.

 


In this case the StringPadder - Transformer might also be the solution.


Capture


In this case the StringPadder - Transformer might also be the solution.

Need to add a new transformer ? Not possible to do with AttributeManager and Test-condition ?

 

 


This looks good. Is it working?

There is also the @PadLeft StringFunction you can use in the AttributeManager.


I think FME is confusing the brackets in the attribute identifiers.

your condition is

@StringLength(@Value(Section (R ...))) 2 = @Value( ...

What does the 2 (at this position) stand for?


Not this position.

The 2 means 2 characters


Test conditon: @StringLength(@Value(test))=1

Value: 0@Value(test)

else do nothing.


Test conditon: @StringLength(@Value(test))=1

Value: 0@Value(test)

else do nothing.

non change


This works:

StringLengthMaybe you can share your workbench/data?


You don't need the @Evaluate part in the Test.

This works

image.png


You don't need the @Evaluate part in the Test.

This works

image.png

thank you i understand

 


Reply