Skip to Content

Formatter not called from one view.xml

Hi,

I would like to know what could be the reason why the formatter file is not been called by a specific view and with others view.xml this problem doesn't happen.

I use the same code:

<ObjectStatus text="{Model>Estado}" state="{path: 'Model>Estado', formatter: '.formatter.estado'}"/>

and formatter

With one view formatter.estado is called, with the other, the state property takes the path (Model>Estado) directly so return and error because the value of property state will be (for example) 1 or 2 instead of Success Warning Error or None.

Could anyone help me?

Thanks in advanced.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 06, 2017 at 05:35 PM

    Hi Marcos,

    When other views works with the same code, i would check if formatter method is bootstrapped properly in the corresponding view's (the view that we see issue) controller. Can you please check on that once?

    Thanks,

    Murali L

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 06, 2017 at 05:33 PM

    show us the controller

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 24, 2017 at 10:49 AM

    Hi,

    First sorry for the delay,

    I was able to fix the problem. It was related to Murali said.

    Thanks both.

    Regards.

    Add comment
    10|10000 characters needed characters exceeded