cancel
Showing results for 
Search instead for 
Did you mean: 

Disable an input field based on values of another field in SAP FIori Elements

deepak_pandey
Advisor
Advisor
0 Kudos

Hi All,

So I've been using an Abstract Entity as a 'parameter' for a custom button on my main CDS Custom Entity.

Example from Behavior Definition:

action <method name> parameter <abstract entity> result [1] <custom entity projection>

Now, within my Abstract Entity, which is used as the button input parameter, there are 2 fields. Field 1 is a text input and Field 2 is a Checkbox (type : Boolean). I wish to disable/clear Field 1 if Field 2 is selected as true. Is this possible? If so, could you please guide me with the steps to follow? Thanks in advance!

View Entire Topic
0 Kudos

Yes it is possible . You have to implement feature control described in the below link

feature control

deepak_pandey
Advisor
Advisor
0 Kudos

Thank you Tisha for your response. I had already read about feature control earlier and gave it a try. Problem in my case is that the entity is 'abstract'. It's Behavior Definition can only be 'abstract' -- meaning, I cannot implement a Behavior Class wherein I could write the feature control method for this entity. This feature seems more likely in managed/unmanaged scenarios. However, do correct me if I'm missing something here.