Skip to main content
Question

How do I format attributes in the attribute manager?


I am just learning to use FME and have run into my first issue. I removed a value ({}) using the TrimRight and TrimLeft (

@TrimRight(@TrimLeft(@Value(GLOBALID),"{"),"}")

in the attribute manager but now I need to add those values back in so I can load the data into a database. This is what I did and no such luck.

@Format("{",@Value(SERVICELOCATIONGUID),"}") Any help would be welcomed.

2 replies

takashi
Influencer
  • June 2, 2016

Hi @natashalaw, you don't need to use any string function. Just concatenate {, the attribute value, and } in the field.

{@Value(SERVICELOCATIONGUID)}

takashi
Influencer
  • June 2, 2016
takashi wrote:

Hi @natashalaw, you don't need to use any string function. Just concatenate {, the attribute value, and } in the field.

{@Value(SERVICELOCATIONGUID)}

Addition. Regarding trimming, you can also use the @Trim function.

@Trim(@Value(GLOBALID),{}) 

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings