Hello Community
After creating my list report using the northwind service (thanks for the blogs btw https://blogs.sap.com/2016/11/27/fiori-elements-how-to-develop-a-list-report-using-local-annotations/ and https://blogs.sap.com/2019/09/12/developing-app-with-sap-fiori-elements-list-report-pageobject-page-using-northwind-odata-service-and-how-to-create-an-extension-of-sap-fiori-elements/ ) , I can show the required data, but after several attempts, I have not achieved the following:
- if I create custom columns and only one (the Order Id) receive data, others (OrderDate) just appear in white
CustomColumn.fragment.xml -------------------------------------------------------------------------------------- <core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m"> <Column> <Text text="OrderId"/> <customData> <core:CustomData key="p13nData" value='\{"columnKey": "orderId", "columnIndex" : "-2"}'/> </customData> </Column> <Column> <Text text="OrderDate"/> <customData> <core:CustomData key="p13nData" value='\{"columnKey": "dateOrder", "columnIndex" : "-1"}'/> </customData> </Column> </core:FragmentDefinition> CustomCell.fragment.xml -------------------------------------------------------------------------------------- <core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m"> <Text text="{OrderID}"></Text> <Text text="{ path: 'OrderDate', type: 'sap.ui.model.type.Date', formatOptions: { style: 'medium' } }" /> </core:FragmentDefinition>
- imposible to set a different format date DD/MM/YYYY with the annotation modeler (even try to create my own column but only display the data if I set the annotation column too, and that means have the same column twice with different formats)
- imposible to hide columns ( https://sapui5.hana.ondemand.com/#/topic/ca00ee45fe344a73998f482cb2e669bb )
<Annotation Term="UI.LineItem"> <Collection> <Record Type="UI.DataField"> <PropertyValue Property="Value" Path="OrderDate"/> <Annotation Term="UI.Hidden" Bool="false"/> </Record> </Collection> </Annotation>
Could be great,any help with this. Because the idea is to use the Fiori template and create enhancements to those modifications we need otherwise we must create the whole list report from the scratch and I asume that's not the point here.
Thanks everyone!