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

How to achieve dynamic selection screen in frontend using SAP Fiori elements ?

mrajasekarana
Product and Topic Expert
Product and Topic Expert
0 Kudos
1,937

We all know, we have selection screen events in classical ABAP , where based on input, the selection screen can be altered like we can hide/enable certain input fields .

Is something similar possible when using SAP Fiori elements via CDS annotation ?

Accepted Solutions (0)

Answers (2)

Answers (2)

rammel_sapdev
Participant
0 Kudos

Unfortunately, we can only be creative with how we use the framework.

I think in your case, instead of having 2 radio buttons, you can have 2 types of views in the list page.

Each view will have its own selection screen fields and result table columns.

You can refer to this link:

https://sapui5.hana.ondemand.com/sdk/#/topic/37aeed74e17a42caa2cba3123f0c15fc

rammel_sapdev_0-1717004055700.png

Basically, the first tab represents radio button A and second tab represents radio button B. You can try to play around and feel free to ask if you encountered any challenges.

 

arunbharathi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

The concept of a field(s) or an action influencing some other field(s) / control(s) is termed as Side Effects in Fiori Elements.

Please check the documentation and see if it helps.

https://sapui5.hana.ondemand.com/#/topic/18b17bdd49d1436fa9172cbb01e26544

Thanks,

Arun

mrajasekarana
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Arun, Thanks for checking this, but unfortunately this suggested solution , does not enable/disable fields on screen, my requirement is to have a input screen with two radiobuttons :

1. Option 1
2. Option 2

When Option 1 is chosen , I have to enable (display) 3 unique fields for input to user
When Option 2 is chose , I have to enable (display) different 3 unique fields for inputs to user.