on 2022 Aug 12 4:46 PM
Hi Gurus,
I am trying to set Additional Binding fields to be readonly in RAP while creating record...
When I run application the field still allows to change the value.
When I choose value from F4 short description gets updated but the field is still editable. How can I make it readonly...
Below is annotation :
@UI:{ lineItem: [ { position : 80 } ],
identification : [{ position : 80 }] }
@Consumption.valueHelpDefinition: [{ entity:
{name: 'ZI_GENDER_5001' , element: 'Value' },
distinctValues: true,
additionalBinding: [{ localElement: 'Genderdesc',
localParameter: '',
localConstant: '',
parameter: '',
element: 'Description',
usage: #FILTER_AND_RESULT }]
}]
Gender;
@UI: { //lineItem: [{ position: 100, importance: #HIGH, label: '' }],
identification: [{ position: 100, label: '', importance: #HIGH }] }
Genderdesc;
@UI:{ lineItem: [ { position : 90 } ],
identification : [{ position : 90 }] }
I have tried @ObjectModel.readonly = true
but getting error message property is not released yet.
Please help...
https://www.youtube.com/channel/UCjXZ-tts_5gde1QvptsNbrQ?sub_confirmation=1
Thanks-
Abhishek
Request clarification before answering.
in RAP you do not use the annotation anymore on CDS view level or projection level.
You have to define this in the behavior definition.
the syntax is the following:
field ( readonly ) Genderdesc;
You should synchronize your RAP BO afterwards again and depending on if you still have a gateway service in place or not, you should also regenerate that.
Best,
Edrilan Berisha
SAP S/4HANA Financials Development
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
30 | |
22 | |
16 | |
8 | |
7 | |
6 | |
5 | |
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.