2 Replies Latest reply: Jul 13, 2012 1:49 PM by 948819 RSS

    Examples of manipulators

    J_Amon
      I'm looking for code snippets for a manipulator that reads existing data from the record and combines it with other data and writes it back to the record as a new field. Does anyone have such a thing?

      Thanks!!!
        • 1. Re: Examples of manipulators
          J_Amon
          I found it. To concatenate some string with an existing value in the data...

          <pre><EXPRESSION LABEL="" NAME="CREATE" TYPE="VOID" URL="">
          <EXPRNODE NAME="PROP_NAME" VALUE="SSURL"/>
          <EXPRESSION LABEL="" NAME="CONCAT" TYPE="STRING" URL="">
          <EXPRESSION LABEL="" NAME="CONST" TYPE="STRING" URL="">
          <EXPRNODE NAME="VALUE" VALUE="SOME-STRING-"/>
          </EXPRESSION>
          <EXPRESSION LABEL="" NAME="IDENTITY" TYPE="PROPERTY" URL="">
          <EXPRNODE NAME="PROP_NAME" VALUE="Endeca.Web.URL"/>
          </EXPRESSION>
          </EXPRESSION>
          </EXPRESSION></pre>

          This results in a field named SSURL with a value like "SOME-STRING-http://somesite.com/blah/blah"
          • 2. Re: Examples of manipulators
            948819
            Good find, thank you. I will need this soon.