Skip to Content

Formatter not called

I have an Controller where i declare

jQuery.sap.require("ztest.model.formatter");

sap.ui.controller("ztest.App", {...}.

In Chrome i s that the formatter file is loaded an known.

In the associate View i have the following

<RadioButton id="DeleteYes" select="onReceiverTypeSelect"
selected="{path:'BuildingsModel>Yes', formatter:'formatter.getBoolean'}">
<customData> <core:CustomData key="Delete" value="Y"/> </customData> </RadioButton> <RadioButton id="DeleteNo" select="onReceiverTypeSelect"
selected="{path:'BuildingsModel>No', formatter:'formatter.getBoolean'}"> <customData> <core:CustomData key="Delete" value="N"/> </customData> </RadioButton> </buttons> </RadioButtonGroup>

The formatter is in both cases not executed.
Can someone give me an hint what is wrong here?

Regards

Dirk

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 29, 2017 at 07:23 PM

    Instead of formatter:'formatter.getBoolean', use formatter:'getBoolean'.

    Regards,

    Sharath

    Add comment
    10|10000 characters needed characters exceeded

    • changed the code to :

      <selected="{path:'BuildingsModel>No', formatter:'getBoolean'}">

      It doesnt work. The formatter is not executed. I know its a problem of the path. Is there anywhere explained how they function and which one to use where?

      I had the code running fine in the WebIde and then had to put it in an Eclipse UI5 Development Project. The UI is running but the formatter are not because in Eclipse the path is different. And everything i tried doesnt work. Any advice is welcome.

      Regards

      Dirk