<?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: Handler for Button not called in adaptation in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaa-p/14147030#M4919331</link>
    <description>Please share the manifest where extensions are declared as well</description>
    <pubDate>Tue, 08 Jul 2025 09:57:25 GMT</pubDate>
    <dc:creator>FabioPagoti</dc:creator>
    <dc:date>2025-07-08T09:57:25Z</dc:date>
    <item>
      <title>Handler for Button not called in adaptation</title>
      <link>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaq-p/14146949</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I try to extend a standard App "Create maintenance request" (&lt;SPAN&gt;F1511A). I have added a Fragment with button and the button is available:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Boguslaw_0-1751964920561.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/283891i7B5C3D92662763D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Boguslaw_0-1751964920561.png" alt="Boguslaw_0-1751964920561.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My Fragment look like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;core:FragmentDefinition xmlns:core='sap.ui.core' xmlns='sap.m'&amp;gt;
    &amp;lt;Button id='LorCapBtn' text="LorCap" press='extension.customer.create.notif.variant.onLorCapPress'/&amp;gt; 
&amp;lt;/core:FragmentDefinition&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;The controller:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;sap.ui.define(
    [
        'sap/ui/core/mvc/ControllerExtension'
        ,'sap/m/MessageBox'
        // ,'sap/ui/core/mvc/OverrideExecution'
    ],
    function (
        ControllerExtension
        ,MessageBox
        // ,OverrideExecution
    ) {
        'use strict';
        return ControllerExtension.extend("customer.create.notif.variant.MainCntrlExt", {
            onLorCapPress : function(oEvent){
                console.log("onLorCapPress called");
                MessageBox.success("Hello");
            },
});
    }
);&lt;/LI-CODE&gt;&lt;P&gt;When I press the button nothing happened (no massege box, no message in console).&lt;/P&gt;&lt;P&gt;Do you know what is the problem? What have to be done to run my code?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Boguslaw&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 09:33:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaq-p/14146949</guid>
      <dc:creator>Boguslaw</dc:creator>
      <dc:date>2025-07-08T09:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Handler for Button not called in adaptation</title>
      <link>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaa-p/14146994#M4919327</link>
      <description>&lt;LI-CODE lang="markup"&gt;&amp;lt;core:FragmentDefinition xmlns:core='sap.ui.core' xmlns='sap.m'&amp;gt;
    &amp;lt;Button id='LorCapBtn' text="LorCap" press='.onLorCapPress'/&amp;gt; 
&amp;lt;/core:FragmentDefinition&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;have you tried this?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 09:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaa-p/14146994#M4919327</guid>
      <dc:creator>FabioPagoti</dc:creator>
      <dc:date>2025-07-08T09:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Handler for Button not called in adaptation</title>
      <link>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaa-p/14147014#M4919329</link>
      <description>&lt;P&gt;Hi Fabio, thx for your answer. I have just tried your proposal - it does'n work. In SAP Fioti Toll user guide is decribed that the function name for press event should have a prefix ".extension.&amp;lt;controller extension namespace&amp;gt;."&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 09:52:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaa-p/14147014#M4919329</guid>
      <dc:creator>Boguslaw</dc:creator>
      <dc:date>2025-07-08T09:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Handler for Button not called in adaptation</title>
      <link>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaa-p/14147030#M4919331</link>
      <description>Please share the manifest where extensions are declared as well</description>
      <pubDate>Tue, 08 Jul 2025 09:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaa-p/14147030#M4919331</guid>
      <dc:creator>FabioPagoti</dc:creator>
      <dc:date>2025-07-08T09:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Handler for Button not called in adaptation</title>
      <link>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaa-p/14147254#M4919357</link>
      <description>&lt;P&gt;Probably you are missing the . before the extension,&amp;nbsp;&amp;nbsp;MainCntrlExt is also missed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;core:FragmentDefinition xmlns:core='sap.ui.core' xmlns='sap.m'&amp;gt;
    &amp;lt;Button id='LorCapBtn' text="LorCap" press='&lt;STRONG&gt;.&lt;/STRONG&gt;extension.customer.create.notif.variant.MainCntrlExt.onLorCapPress'/&amp;gt; 
&amp;lt;/core:FragmentDefinition&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 13:39:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaa-p/14147254#M4919357</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2025-07-08T13:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Handler for Button not called in adaptation</title>
      <link>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaa-p/14147312#M4919361</link>
      <description>&lt;P&gt;Hi Junwu, thx for your hint - the dot was missing, the second part the was missing as well, was the cntroller name. The correct path to my handler is:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;core:FragmentDefinition xmlns:core='sap.ui.core' xmlns='sap.m'&amp;gt;
    &amp;lt;Button id='LorCapBtn' text="LorCap" press='.extension.customer.create.notif.variant.MainCntrlExt.onLorCapPress'/&amp;gt; 
&amp;lt;/core:FragmentDefinition&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Jul 2025 13:46:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaa-p/14147312#M4919361</guid>
      <dc:creator>Boguslaw</dc:creator>
      <dc:date>2025-07-08T13:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Handler for Button not called in adaptation</title>
      <link>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaa-p/14147730#M4919403</link>
      <description>&lt;P&gt;I think your namespace in the button is wrong, you're missing MainCntrlExt&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;.extension.customer.create.notif.variant.MainCntrlExt.onLorCapPress&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 20:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaa-p/14147730#M4919403</guid>
      <dc:creator>Marian_Zeis</dc:creator>
      <dc:date>2025-07-08T20:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Handler for Button not called in adaptation</title>
      <link>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaa-p/14147731#M4919404</link>
      <description>Oh, I'm on mobile and did not see the answer, good to know I got the right answer &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;</description>
      <pubDate>Tue, 08 Jul 2025 20:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaa-p/14147731#M4919404</guid>
      <dc:creator>Marian_Zeis</dc:creator>
      <dc:date>2025-07-08T20:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Handler for Button not called in adaptation</title>
      <link>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaa-p/14147732#M4919405</link>
      <description>Thank you anyway &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 08 Jul 2025 20:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/handler-for-button-not-called-in-adaptation/qaa-p/14147732#M4919405</guid>
      <dc:creator>Boguslaw</dc:creator>
      <dc:date>2025-07-08T20:06:45Z</dc:date>
    </item>
  </channel>
</rss>

