Skip to Content
0
Jul 27, 2023 at 11:08 AM

Disable or remove element of value help in RAP V4 application

82 Views

Hi colleagues,

currently I'm developing a managed RAP Application based on OData V4.

One of the Business Object's entities is the Legacy Data Transfer (LDT), that has a corresponding status. There can also be multiple LDT segments. The status indicates, in which state the current segment ist (In Preparation, Ongoing 1, Ongoing 2 or Completed). To change this status, there is a value help that shows all possible status:

image.png

The user is able to change the status, but only in one "direction". For example, if the segment is in status "In Preparation", the user is only allowed to change the status to "Ongoing 1" or "Ongoing 2". The status that is not allowed to click should be disabled or not even be listed in the value help, like this:

image.pngimage.png

The value help is based on a Domain that provides the values of the LDT status and CDS Views.

Does anybody know, how to achieve this?
Many thanks in advance!

Johannes

Attachments

image.png (67.6 kB)
image.png (10.0 kB)
image.png (15.3 kB)