cancel
Showing results for 
Search instead for 
Did you mean: 

Switch fragments dynamically based on Segmented button event in SAP UI5

tamilselvanm
Participant
0 Kudos

Hi Guys,

I have two segmented buttons in the fragment and need to switch between the two fragments dynamically when clicked on segmented button event.

Kindly help.

Regards,

Tamilselvan

Accepted Solutions (0)

Answers (2)

Answers (2)

ssrinivas
Advisor
Advisor
0 Kudos

Hello tamilselvanm,

To differentiate between buttons you can use Custom Data concept and add property to your segment button.
You can find example from the above link

Srinivas

ajays_26
Explorer
0 Kudos

Try to assign the ID to the segmented buttons and you can trigger the particular fragment based on it