<?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: How to enable the create button in the Flexible Progr... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-to-enable-the-create-button-in-the-flexible-programming-model/qaa-p/14020390#M4904009</link>
    <description>&lt;P&gt;Hi, MattDion.&lt;BR /&gt;&lt;BR /&gt;As a temporary solution it is correct.&amp;nbsp;But, visually it is not pleasant to have all the items in edit mode.&lt;BR /&gt;&lt;BR /&gt;However, the solution of&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/13884"&gt;@mariusfreitag&lt;/a&gt;&amp;nbsp;is nice.&amp;nbsp;But it also has certain drawbacks. As commented by &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/121151"&gt;@anilnagvanshi&lt;/a&gt;&amp;nbsp;on the Youtube channel.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"What i observed in this video, is that even though the developer is using a custom button to create a record in the Table in draft state, the moment he edits the draft record or even if he edits the existing records, there is a separate "Create" button that comes up in the Header of the Table. Now two things related to this behaviour:&lt;BR /&gt;1. If the Table rendered by Fiori elements' Line Item annotation in a Custom Page, has a "create" button, why doesn't it show up in the first place, why only in the scenario when the particular record of the entity is in Edit mode.&lt;BR /&gt;2. If the developer had to use a custom button to create entity in draft state, he should've disabled the upcoming of "Create" button when the record is in editing mode."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;On the other hand, when trying to use the cancel button I got the following error:&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorbriceno_0-1739897521145.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/227231i8B42629015427998/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jorbriceno_0-1739897521145.png" alt="jorbriceno_0-1739897521145.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And it didn't show me the standard message either, so I made an adjustment as shown below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorbriceno_1-1739897652537.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/227233iC4164073AC7FF61A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jorbriceno_1-1739897652537.png" alt="jorbriceno_1-1739897652537.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Preview:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorbriceno_2-1739897693623.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/227234i0C5ADD4EC6F9F702/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jorbriceno_2-1739897693623.png" alt="jorbriceno_2-1739897693623.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a way to make the create button appear right away? Without having to enter edit mode? Otherwise, is it possible to edit just one item and not all of them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2025 17:02:19 GMT</pubDate>
    <dc:creator>jorbriceno</dc:creator>
    <dc:date>2025-02-18T17:02:19Z</dc:date>
    <item>
      <title>How to enable the create button in the Flexible Programming Model?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-enable-the-create-button-in-the-flexible-programming-model/qaq-p/13943536</link>
      <description>&lt;P&gt;Hi, everybody.&lt;/P&gt;&lt;P&gt;I have a problem with my custom page. I can currently see what I want but the create button is only visible when I enter edit mode. How do I make the button visible without having to edit some record?&lt;/P&gt;&lt;P&gt;I am using a service made in CAP and I have draft enabled.&lt;/P&gt;&lt;P&gt;Edit mode&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorbriceno_0-1732116604000.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/193423iD98724B31BF15D5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jorbriceno_0-1732116604000.png" alt="jorbriceno_0-1732116604000.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Reading mode&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorbriceno_1-1732116653867.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/193424i5065D0BBD5DEEB3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jorbriceno_1-1732116653867.png" alt="jorbriceno_1-1732116653867.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 15:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-enable-the-create-button-in-the-flexible-programming-model/qaq-p/13943536</guid>
      <dc:creator>jorbriceno</dc:creator>
      <dc:date>2024-11-20T15:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable the create button in the Flexible Programming Model?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-enable-the-create-button-in-the-flexible-programming-model/qaa-p/13990199#M4899714</link>
      <description>&lt;P&gt;Even I have been facing the same issue, the use of custom page in which if we use Table building block, the "Create" button is visible only when we naviagte to a existing record and click on "Edit" in the Object Page.&lt;BR /&gt;This has something to do with "ui" model which is available readily in controller files, when we use Flexible Programming Model.&lt;BR /&gt;Also, the property "isActiveEntity" , when this property is true, the "Create" button gets visible and whole object page is in edit mode.&lt;/P&gt;&lt;P&gt;I also referred to this YouTube video "&lt;A href="https://www.youtube.com/watch?v=SMc1ZzKAWW4" target="_blank" rel="noopener"&gt;https://www.youtube.com/watch?v=SMc1ZzKAWW4&lt;/A&gt;" , where the developer shows building the app using custom approach, but i see the same behaviour / bug , in the application being built in the video, that "Create" button is visible when the page is in Edit mode.&lt;BR /&gt;Even though in the video the developer uses a separate button to create his entities in draft state.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jan 2025 13:24:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-enable-the-create-button-in-the-flexible-programming-model/qaa-p/13990199#M4899714</guid>
      <dc:creator>anilnagvanshi</dc:creator>
      <dc:date>2025-01-19T13:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable the create button in the Flexible Programming Model?</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-enable-the-create-button-in-the-flexible-programming-model/qaa-p/14009245#M4902308</link>
      <description>Did you make any progress on this topic? I am struggling with the same thing. I am using an ABAP RAP backend with draft mode, and the preview mode of the service binding shows the Create and Delete buttons. Neither shows up on the FPM table.</description>
      <pubDate>Thu, 06 Feb 2025 14:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-enable-the-create-button-in-the-flexible-programming-model/qaa-p/14009245#M4902308</guid>
      <dc:creator>MattDion</dc:creator>
      <dc:date>2025-02-06T14:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable the create button in the Flexible Progr...</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-enable-the-create-button-in-the-flexible-programming-model/qaa-p/14010160#M4902417</link>
      <description>&lt;P&gt;Found the answer... in one of the controller extension functions (I put it in &lt;EM&gt;onInit&lt;/EM&gt;), you need to add the line:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;this.getView().getModel("ui").setProperty("/isEditable", true);&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 08:00:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-enable-the-create-button-in-the-flexible-programming-model/qaa-p/14010160#M4902417</guid>
      <dc:creator>MattDion</dc:creator>
      <dc:date>2025-02-07T08:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable the create button in the Flexible Progr...</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-enable-the-create-button-in-the-flexible-programming-model/qaa-p/14020390#M4904009</link>
      <description>&lt;P&gt;Hi, MattDion.&lt;BR /&gt;&lt;BR /&gt;As a temporary solution it is correct.&amp;nbsp;But, visually it is not pleasant to have all the items in edit mode.&lt;BR /&gt;&lt;BR /&gt;However, the solution of&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/13884"&gt;@mariusfreitag&lt;/a&gt;&amp;nbsp;is nice.&amp;nbsp;But it also has certain drawbacks. As commented by &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/121151"&gt;@anilnagvanshi&lt;/a&gt;&amp;nbsp;on the Youtube channel.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"What i observed in this video, is that even though the developer is using a custom button to create a record in the Table in draft state, the moment he edits the draft record or even if he edits the existing records, there is a separate "Create" button that comes up in the Header of the Table. Now two things related to this behaviour:&lt;BR /&gt;1. If the Table rendered by Fiori elements' Line Item annotation in a Custom Page, has a "create" button, why doesn't it show up in the first place, why only in the scenario when the particular record of the entity is in Edit mode.&lt;BR /&gt;2. If the developer had to use a custom button to create entity in draft state, he should've disabled the upcoming of "Create" button when the record is in editing mode."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;On the other hand, when trying to use the cancel button I got the following error:&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorbriceno_0-1739897521145.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/227231i8B42629015427998/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jorbriceno_0-1739897521145.png" alt="jorbriceno_0-1739897521145.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And it didn't show me the standard message either, so I made an adjustment as shown below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorbriceno_1-1739897652537.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/227233iC4164073AC7FF61A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jorbriceno_1-1739897652537.png" alt="jorbriceno_1-1739897652537.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Preview:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jorbriceno_2-1739897693623.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/227234i0C5ADD4EC6F9F702/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jorbriceno_2-1739897693623.png" alt="jorbriceno_2-1739897693623.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a way to make the create button appear right away? Without having to enter edit mode? Otherwise, is it possible to edit just one item and not all of them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 17:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-enable-the-create-button-in-the-flexible-programming-model/qaa-p/14020390#M4904009</guid>
      <dc:creator>jorbriceno</dc:creator>
      <dc:date>2025-02-18T17:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable the create button in the Flexible Progr...</title>
      <link>https://community.sap.com/t5/technology-q-a/how-to-enable-the-create-button-in-the-flexible-programming-model/qaa-p/14020625#M4904044</link>
      <description>As a solution for the Main view, what I did was replace the template: sap.fe.core.fpm with sap.fe.templates.ListReport and with this I get the desired behavior and in the rest of the navigations without problems I can use: sap.fe.core.fpm.</description>
      <pubDate>Tue, 18 Feb 2025 21:32:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-to-enable-the-create-button-in-the-flexible-programming-model/qaa-p/14020625#M4904044</guid>
      <dc:creator>jorbriceno</dc:creator>
      <dc:date>2025-02-18T21:32:03Z</dc:date>
    </item>
  </channel>
</rss>

