I'm trying to have an AttributeRenamer, where the Attribute List is a scripted python parameter, a fairly simple one at that. Say, my original field is "ONE_AAA". (but it could be "TWO_AAA", "THREE_AAA", etc). I want it to rename it to just "AAA", so I have a this python script:
fld = FME_MacroValuesr'Test_Condition_1']
suffx = fldf(fld.find("_")+1):fld.__len__()]
return fld + ',' + suffx + ',""'
'Test_Condition_1' is simply a published parameter that the user enters to let FME know what field he wants renamed. I've linked this python scripted parameter to the Attribute List and it does not work. Can anyone tell me what I am doing wrong?