on 2022 May 16 7:57 PM
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
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Got it working by referencing id of the facet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.