<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Formatter function not work in XML Fragment in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/formatter-function-not-work-in-xml-fragment/qaa-p/635472#M158601</link>
    <description>&lt;P&gt;Thanks for the answer. I solved the problem by inserting the following line code in bootstrap:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;data-sap-ui-xx-bindingSyntax="complex"&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Mar 2018 18:15:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-03-09T18:15:28Z</dc:date>
    <item>
      <title>Formatter function not work in XML Fragment</title>
      <link>https://community.sap.com/t5/technology-q-a/formatter-function-not-work-in-xml-fragment/qaq-p/635470</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;I'm not getting to make the following formatter function work:&lt;/P&gt;
  &lt;P&gt;MyApp/models.Formatter.js&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;sap.ui.define([], function () {
	"use strict";
	return {
		formatPO: function (sEbeln, sEbelp) {
			console.log("calling...");
			return sEbeln + "/" + sEbelp;
		}
	};
});
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;MyApp/controller/Master.controller.js&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;sap.ui.define([
	"sap/ui/core/mvc/Controller",
	"sap/m/MessageBox",
	"sap/m/MessageToast",
	"MyApp/functions/Functions",
	"MyApp/models/Formatter"
], function (Controller, MessageBox, MessageToast, Functions, formatter) {
	"use strict"; 
	return Controller.extend("MyApp.controller.Master", {
		formatter: formatter,	
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;MyApp/fragments/ListaPO.fragment.xml&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;ObjectIdentifier
    title="{ parts:[{path: 'mdlOpenPO&amp;gt;Ebeln'}, 
                    {path: 'mdlOpenPO&amp;gt;Ebelp'}],
             formatter: '.formatter.formatPO' }" 
    text="{mdlOpenPO&amp;gt;Txz01}"/&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;MyApp/view/Master.view.xml&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;	&amp;lt;Page title="{i18n&amp;gt;masterTitle}" level="H1"&amp;gt;
		&amp;lt;content&amp;gt;
			&amp;lt;core:Fragment fragmentName="MyApp.fragments.ListaPO" type="XML"/&amp;gt;
		&amp;lt;/content&amp;gt;
	&amp;lt;/Page&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Does not return any errors, simply does not work.&lt;/P&gt;
  &lt;P&gt;Does anybody could help me to find the cause of this issue?&lt;/P&gt;
  &lt;P&gt; Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 20:18:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/formatter-function-not-work-in-xml-fragment/qaq-p/635470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-02-13T20:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Formatter function not work in XML Fragment</title>
      <link>https://community.sap.com/t5/technology-q-a/formatter-function-not-work-in-xml-fragment/qaa-p/635471#M158600</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;&amp;lt;core:Fragment fragmentName="MyApp.fragments.ListaPO" type="XML" oController="yourcontroller"/&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;not sure if it will work.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 21:15:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/formatter-function-not-work-in-xml-fragment/qaa-p/635471#M158600</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2018-02-13T21:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Formatter function not work in XML Fragment</title>
      <link>https://community.sap.com/t5/technology-q-a/formatter-function-not-work-in-xml-fragment/qaa-p/635472#M158601</link>
      <description>&lt;P&gt;Thanks for the answer. I solved the problem by inserting the following line code in bootstrap:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;data-sap-ui-xx-bindingSyntax="complex"&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Mar 2018 18:15:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/formatter-function-not-work-in-xml-fragment/qaa-p/635472#M158601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-03-09T18:15:28Z</dc:date>
    </item>
  </channel>
</rss>

