Closed angelo337 closed 8 years ago
The message is accurate, "consorcios_UT" is not a variable. Refer to the ScriptTransformer documentation to find out what variables are made available. In your case, you have to grab your value from the "metadata" variable. Usage could look like this:
// to obtain a field value:
consorcios_UT = metadata.getString('consorcios_UT');
// do what you need with your variable here
// to store a new field value:
metadata.setString('consorcios_UT', consorcios_UT);
Also, there might be chances you can use existing tagger classes to do what you want without having to use scripting. For instance, to do a search and replace on a field, you can use the ReplaceTagger.
thanks a lot for your help, It's working now I am on the right track to test my corpus best regards
hi there I am having an issue with a transformation I am trying to put in place
after I capture some information from the content field like this:
I am trying to use this field (consorcios_UT) in a script like this:
but I get and error saying that is not such a field as "consorcios_UT" defined.
my question how should I process a field that is just created in order to normalize all information and avoid case miss match or strip spaces or punctuation signs?
thanks a lot angelo