Announcement

Collapse
No announcement yet.

Problems with variables

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problems with variables

    Hello, I have the next code inside the filter:
    {
    var pac_nombre = "PEPE";
    globalMap.put('pac_nombre',pac_nombre);

    return true;
    }


    And inside the transformer in the mapping section:
    globalMap.get('pac_nombre&#039

    The output field is return:
    org.mozilla.javascript.NativeJavaObject@998c5d



    If I put localMap the variable return null.

    Can you help me?

  • #2
    Re: Problems with variables

    1. Try var pac_nombre = 'PEPE'; instead (with single quotes).
    2. Also you can use globalMap.get('pac_nombre&#039.toString(); in the transformer
    3. The localMap from the filter does not get carried over to the transformer. Ideally, all variable mappings occur in the transformer.

    Hope this helps!
    -Chris
    Chris Lang

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎