cancel
Showing results for 
Search instead for 
Did you mean: 

Add custom control in field group SAP fiori elements for odata v2

akki_gt
Explorer
0 Kudos

Hello Experts,

Was following the documentation as mention here to add a custom control in the object page form/field group. I have created a fragment and mentioned it in the manifest.json file as mentioned in the documentation for OData V2. However, I am unable to get it to work. I have passed the id of the field group which is created using CAP annotations as follows

FieldGroup #CustomType : {
$Type : 'UI.FieldGroupType',
Data: [],
Label : 'Custom Group'
}

The manifest looks like

"SmartFormExtension|MyEntity|com.sap.vocabularies.UI.v1.FieldGroup::CustomType": {
"className": "sap.ui.core.Fragment",
"fragmentName": "com.my.namespace.ext.view.CustomField",
"type": "XML"
}

Also the Fragment is as follows

<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">
<Input visible="{= ${ui>/editable}}" value="{registrationID}">
<layoutData>
<FlexItemData growFactor="1" alignSelf="Center" />
</layoutData>
</Input>
</core:FragmentDefinition>

This facet is not rendered at all. Could not find any other documentation apart from the one mentioned above. Kindly guide on the right steps.

Thanks & Regards,

Akshay Tamhane

View Entire Topic
akki_gt
Explorer

Got it working by referencing id of the facet.