<?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: Fiori Elements : Hide actions by annotation in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/fiori-elements-hide-actions-by-annotation/qaa-p/661733#M171377</link>
    <description>&lt;P&gt;Hi Joseph, I understand what you are trying to do. At the moment this is not supported by annotations for actions. &lt;/P&gt;
  &lt;P&gt;Please raise a SAP Incident as an Enhancement Request (use component CA-UI5-ST) asking for this to be considered for Fiori elements. We have had a similar request from another customer recently and it would promote this idea for roadmap consideration to have it as a formal enhancement request. &lt;/P&gt;
  &lt;P&gt;You cannot currently hide (i.e. remove) a button through UI Adaptation at runtime either. &lt;/P&gt;
  &lt;P&gt;Your best option at the moment would be to use UI Adaptation at Design Time - i.e. using the WYSWIG editor in the SAP Cloud Platform Web IDE similar to what is described in &lt;A href="https://blogs.sap.com/2017/08/27/fiori-elements-export-to-microsoft-excel-via-the-ui-adaptation-editor/" target="test_blank"&gt;https://blogs.sap.com/2017/08/27/fiori-elements-export-to-microsoft-excel-via-the-ui-adaptation-editor/&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Rgds,&lt;/P&gt;
  &lt;P&gt;Jocelyn&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2018 12:06:20 GMT</pubDate>
    <dc:creator>Jocelyn_Dart</dc:creator>
    <dc:date>2018-03-08T12:06:20Z</dc:date>
    <item>
      <title>Fiori Elements : Hide actions by annotation</title>
      <link>https://community.sap.com/t5/technology-q-a/fiori-elements-hide-actions-by-annotation/qaq-p/661732</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;In my Object Page, I would like to control visibility of &lt;EM&gt;&lt;STRONG&gt;Actions &lt;/STRONG&gt;&lt;/EM&gt;like I already do with&lt;EM&gt; Field-Control &lt;/EM&gt;for properties. &lt;/P&gt;
  &lt;P&gt;As I &lt;A href="https://wiki.scn.sap.com/wiki/x/vQ67Gg" target="_blank"&gt;can see here&lt;/A&gt; (but I'm not sure) is with annotation I can do it like this:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;sap:applicable-path="SOHeader/FcActionReject"&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;But it doesn't work. &lt;EM&gt;ActionVisible &lt;/EM&gt;is a boolean property. Here is my annotation :&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;FunctionImport Name="RejectDT" ReturnType="ZSD_DT_SRV.SOHeader" EntitySet="SOHeaders" m:HttpMethod="POST" sap:label="Rejeter" sap:action-for="ZSD_DT_SRV.SOHeader" sap:applicable-path="SOHeader/FcActionReject" /&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Am I wrong ? I don't know what's going on.&lt;/P&gt;
  &lt;P&gt;Kind Regards,&lt;/P&gt;
  &lt;P&gt;Joseph&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 16:51:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fiori-elements-hide-actions-by-annotation/qaq-p/661732</guid>
      <dc:creator>Joseph_BERTHE1</dc:creator>
      <dc:date>2018-03-06T16:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Fiori Elements : Hide actions by annotation</title>
      <link>https://community.sap.com/t5/technology-q-a/fiori-elements-hide-actions-by-annotation/qaa-p/661733#M171377</link>
      <description>&lt;P&gt;Hi Joseph, I understand what you are trying to do. At the moment this is not supported by annotations for actions. &lt;/P&gt;
  &lt;P&gt;Please raise a SAP Incident as an Enhancement Request (use component CA-UI5-ST) asking for this to be considered for Fiori elements. We have had a similar request from another customer recently and it would promote this idea for roadmap consideration to have it as a formal enhancement request. &lt;/P&gt;
  &lt;P&gt;You cannot currently hide (i.e. remove) a button through UI Adaptation at runtime either. &lt;/P&gt;
  &lt;P&gt;Your best option at the moment would be to use UI Adaptation at Design Time - i.e. using the WYSWIG editor in the SAP Cloud Platform Web IDE similar to what is described in &lt;A href="https://blogs.sap.com/2017/08/27/fiori-elements-export-to-microsoft-excel-via-the-ui-adaptation-editor/" target="test_blank"&gt;https://blogs.sap.com/2017/08/27/fiori-elements-export-to-microsoft-excel-via-the-ui-adaptation-editor/&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Rgds,&lt;/P&gt;
  &lt;P&gt;Jocelyn&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 12:06:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fiori-elements-hide-actions-by-annotation/qaa-p/661733#M171377</guid>
      <dc:creator>Jocelyn_Dart</dc:creator>
      <dc:date>2018-03-08T12:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Fiori Elements : Hide actions by annotation</title>
      <link>https://community.sap.com/t5/technology-q-a/fiori-elements-hide-actions-by-annotation/qaa-p/661734#M171378</link>
      <description>&lt;P&gt;Hi Joseph&lt;/P&gt;
  &lt;P&gt;Ah... just realized you are trying to use Action Control as explained here:&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://sapui5.hana.ondemand.com/#/topic/5b0b686a3b7a491a9ec654b4f1536fa8" target="test_blank"&gt;https://sapui5.hana.ondemand.com/#/topic/5b0b686a3b7a491a9ec654b4f1536fa8&lt;/A&gt; &lt;/P&gt;
  &lt;P&gt;Ok in the example above you can see &lt;STRONG&gt;sap:applicable-path=IsActiveEntity&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;IsActiveEntity &lt;/STRONG&gt;is not a path .. it's a boolean true/false value. &lt;/P&gt;
  &lt;P&gt;So in your example you would need to set &lt;STRONG&gt;sap:applicable-path="ActionVisible"&lt;/STRONG&gt; where ActionVisible is a boolean value. If true then the button is active, if false, the button is visible but disabled,&lt;/P&gt;
  &lt;P&gt;Good luck!&lt;/P&gt;
  &lt;P&gt;Jocelyn&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 12:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fiori-elements-hide-actions-by-annotation/qaa-p/661734#M171378</guid>
      <dc:creator>Jocelyn_Dart</dc:creator>
      <dc:date>2018-03-08T12:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Fiori Elements : Hide actions by annotation</title>
      <link>https://community.sap.com/t5/technology-q-a/fiori-elements-hide-actions-by-annotation/qaa-p/661735#M171379</link>
      <description>&lt;P&gt;Hello Jocelyn,&lt;/P&gt;
  &lt;P&gt;Thanks you for your answer. &lt;/P&gt;
  &lt;P&gt;In fact, the key to make it working is that the &lt;STRONG&gt;IsActiveEntity&lt;/STRONG&gt; have to be on the EntitySet of the &lt;STRONG&gt;sap:action-for&lt;/STRONG&gt; parameter.&lt;/P&gt;
  &lt;P&gt;In my example I thougth it was a expression path and it that why it ddidn't work. &lt;/P&gt;
  &lt;P&gt;To conclude, it's working because my &lt;STRONG&gt;FcActionReject &lt;/STRONG&gt;property come from&lt;STRONG&gt; ZSD_DT_SRV.SOHeader &lt;/STRONG&gt;entitySet :&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;FunctionImport Name="RejectDT" ReturnType="ZSD_DT_SRV.SOHeader" EntitySet="SOHeaders" m:HttpMethod="POST" sap:label="Rejeter" sap:action-for="ZSD_DT_SRV.SOHeader" sap:applicable-path="FcActionReject" /&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Joseph&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 05:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fiori-elements-hide-actions-by-annotation/qaa-p/661735#M171379</guid>
      <dc:creator>Joseph_BERTHE1</dc:creator>
      <dc:date>2018-03-09T05:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Fiori Elements : Hide actions by annotation</title>
      <link>https://community.sap.com/t5/technology-q-a/fiori-elements-hide-actions-by-annotation/qaa-p/661736#M171380</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;How could I achieve this using annotation: &lt;STRONG&gt;sap:applicable-path=IsActiveEntity?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 13:14:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/fiori-elements-hide-actions-by-annotation/qaa-p/661736#M171380</guid>
      <dc:creator>former_member774209</dc:creator>
      <dc:date>2022-11-29T13:14:37Z</dc:date>
    </item>
  </channel>
</rss>

