cancel
Showing results for 
Search instead for 
Did you mean: 

DS 1.6 SP2 - Segmented Button - Missing script function

d_otto
Explorer
0 Kudos
299

Hello,

i just installed Design Studio 1.6 SP2 and tested the new feature "Segmented Button".

Now i wanted to set the segment via scripting.

But I do not find something like .setSelectedValue .

How can i achieve to set the selected segment with script functions?

thanks

Dirk

View Entire Topic
MustafaBensan
Active Contributor
0 Kudos

Hi Dirk,

I haven't installed SP02 yet but in theory I would expect there to be a selectedKey property which should be settable with a setSelectedKey() script method.  I say this because the segmented button should be based on the UI5 sap.m.SegmentedButton which does have this option if you look at tye examples and documentation: SAPUI5 Explored - Segmented Button

Can you at least set the default selection in the properties panel?

Regards,

Mustafa.

d_otto
Explorer
0 Kudos

Hi Mustafa,

i found no property to define the default selection.

The first segment seems to be the default because if you start the application it looks active.

But if you use getSelectedValue before you selected any segment of the segmented button the result you get is blank.

regards

Dirk