2024 Jun 09 4:32 AM - edited 2024 Jun 09 4:33 AM
Dear experts,
I have built a custom action associated to an abstract entity in RAP(odata v4). On a click of the action in object page, my abstract entity is rendered properly as Pop up with fields. Requirement is one of the fields has to be rendered as a read only/text with a default value. I can default the value using function. But unable to make that as a readonly field.
I tried using
1. @objectmodel.readonly: true in abstract entity cds.
2. UI common annotation Fieldcontrol.readonly and annotation core.computed in annotation.xml in BAS
https://sapui5.hana.ondemand.com/sdk/#/topic/f49a0f7eaafe444daf4cd62d48120ad0
3. Checked for UI pop up extension.
but none of these worked
Can you please help here?
Request clarification before answering.
Hi,
The only way in which I was able to accomplish the same requirement was by using local annotation:
<Annotation Term="Common.FieldControl" EnumMember="Common.FieldControlType/ReadOnly"/>
See next screenshot for a better reference
I hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
30 | |
10 | |
8 | |
8 | |
7 | |
7 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.