Skip to Content
avatar image
Former Member

How to make extension facet support draft mechanism on Object Page?

I use Fiori element - List Report, and generated UI by annotations in CDS views. Then I use BOPF(with draft mechanism) to support draft mechanism.

The Facet 1 is generated by annotation. But the text is shown as plain text, which experience is not good. So I made an extension facet 2(want to replace facet 1 with facet 2), which can support HTMLtext display and richTextEditor.

But the problem is, when I click "edit" button to edit this object page, facet 1 can support draft mechanism automatically, but the facet 2 can't.

How can the draft mechanism also supports extension facet?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 23 at 07:08 PM

    Hi,

    May be this is too late, but for others to know, The Fiori Elements has a model "ui" which has a property "editable".

    Editable property of all the controls in your extension facet should be bound to this model.

    eg: editable = {ui>/editable}

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member
      Hi Pratheek,Thank you for the quick response. I was thinking the draft support for extensions should work out of the box as I am using entity set from the same model used by my Fiori elements application. Please find below a copy of my view extension. Could you kindly take a look? Many thanks!
      • <core:View xmlns:core="sap.ui.core" xmlns="sap.m" xmlns:smartTable="sap.ui.comp.smarttable"><VBox><!--ComboBox visible="true" items="{to_Facts}" editable="{ui>/editable}" ><items><core:ListItem key="{InsurClmSFCQstn}" text="{InsurClmSFCQstnShrtTxt}"/></items></ComboBox--><smartTable:SmartTable entitySet="C_InsurClm1stNotifFactsTP" tableBindingPath="to_Facts" tableType="ResponsiveTable" useExportToExcel="true"useVariantManagement="false" useTablePersonalisation="true" header="Line Items" showRowCount="true" persistencyKey=""enableAutoBinding="true" demandPopin="true"><Table><columns><Column><customData><core:CustomData key="p13nData"value='\{"columnKey": "InsurClmSFCAnswerForEdit","leadingProperty": "InsurClmSFCAnswerForEdit","sortProperty": "InsurClmSFCAnswerForEdit","filterProperty": "InsurClmSFCAnswerForEdit","columnIndex" : "100"}'/></customData><Text text="Answer New" tooltip="Custom column"/></Column></columns><items><ColumnListItem><cells><VBox><ComboBox items="{to_SFCAnswerVH}" editable="{ui>/editable}"><items><core:ListItem key="{InsurClmSFCAnswer}" text="{InsurClmSFCAnswerShrtTxt}"/></items></ComboBox></VBox></cells></ColumnListItem></items></Table></smartTable:SmartTable></VBox></core:View>