cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RAP - static read only field problem?

jh_sim
Explorer
0 Likes
3,014

hi, im trying to develope custom RAP Application with odata V4.

i have root view and 2 composition view.

but when i syntax check on my serveice page, it shows error message like

i using waers field in root view and either composition views too.

what should i know to solve this?

Accepted Solutions (0)

Answers (2)

Answers (2)

vykuntrao
Participant
0 Likes

I also faced similar issue. Initially created behavior definition projection without field which was highlighted in the error message which includes wears or currency code. Now I created service definition and service binding respectively.

At this point you will not get this error.

Now again I updated behavior definition projection by adding the wears or currency code field to read only section. Am not seeing that error and when I execute the app the field becomes read only.

JessieCheah
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello. This error normally comes when you have annotated an amount field with semantic currency code, but the currency code is declared as read-only in BDEF. Can you check if this is your case?

The annotation to check is @Semantics.amount.currencyCode: 'CurrencyCodeField' and then in the BDEF

field (readonly) CurrencyCodeField;

Updated: I've just seen your comments with Andre, should have updated the post before I answered. So far I don't see any read only defined in your BDEF, so it's a bit strange

jh_sim
Explorer
0 Likes

Hello JES SIE CHEAH!

im using semantic annotation of currency code for 'WAERS' as you said

->

@Semantics.amount.currencyCode: 'waers'

zfram,

Waers...

but i dont write any of 'readonly' waers in my bdef

thanks.