cancel
Showing results for 
Search instead for 
Did you mean: 

Make field non editable in object page of list report in cloud application programming model

shil123
Participant
0 Kudos

Hi gregorw , ankur0026

I have 3-4 fields inside the object page where I want to edit all the fields except for one field as in the attached screenshot.

I want the name field in object field and I want that field as non editable field, where as rest all the field should be editable.

How can I achieve this by using CAP annotations?

Accepted Solutions (0)

Answers (1)

Answers (1)

marcmaurí
Participant

Hi Shilpa,

you can annotate your field with @readonly and it will be displayed as a non editable field.

Best regards,

Marc

shil123
Participant
0 Kudos

Hi marc.mauri

I tries giving @readonly but its not making my field non editable,

marcmaurí
Participant
0 Kudos

Hi shil123 ,

you should annotate the field, not the field inside the FieldGroup definition.

Something like that:

annotate YourService.YourEntity with {
    NAME
    @readonly;
}

Best regards,

Marc

shil123
Participant
0 Kudos

Hi marc.mauri

I added there also but its still editable.

marcmaurí
Participant
0 Kudos

Hi shil123 ,

Try it like this:

annotate pictureSRV.PictureSet with {
    NAME
    @readonly;
}

Best regards,

Marc

0 Kudos

Is there a way to change this @readonly tag dynamically at runtime?

vasantha_s
Employee
Employee
0 Kudos

You must create change files