String function not available in value of "Set a field as a function of other fields"

Issue #502 resolved
Guy COURONNE created an issue

Hi,

I'm using post function's "Set a field as a function of other fields" In "value", I put some function to be used : [length(%{00015}) >= 10]substring(%{00015},3,length(%{00015}))

When I transition an issue, it seems that Field are parsed, but not function : substring(ADSC-47,3,length(ADSC-47))

I attached 2 screenshots, one for post function's configuration and the second about the result.

Thank you for your support and have a nice day,

Comments (3)

  1. Fidel Castro Armario repo owner

    Hi Guy,

    By default, the value part of a setting rule is parsed in basic parsing mode, i.e., only field codes are replaced with their corresponding field values.

    In order to force value part to be parsed in advanced mode you should add prefix A to your setting rules:

    A[length(%{00015}) >= 10]substring(%{00015},3,length(%{00015}))
    
  2. Guy COURONNE reporter

    Hi,

    I'm sorry, I read too fast the documentation and I pass by "a : makes value part in setting rules to be parsed in advanced parsing mode. ".

    Thank you for your assistance !

  3. Log in to comment