cancel
Showing results for 
Search instead for 
Did you mean: 

How to use RatingControl, ProgressBarControl, MediaPlayerControl and LegendControl ?

former_member207719
Participant
0 Kudos

Hi Experts,

Have any one successfully implemented RatingControl, ProgressBarControl, MediaPlayerControl or LegendControl ?. I have tried RatingControl in several ways but nothing works . I'm very curious about this...

Regards,

Senthil

Accepted Solutions (1)

Accepted Solutions (1)

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Senthil,

Be aware that not every control works in HTML5.

Bye,

   Horst

former_member207719
Participant
0 Kudos

Thanks for the advice Horst,

So far I tried in silverlight only, I tried to bind the RatingControl to codelist, NumberValue, Quantity and even unbinded, No luck at all.

Are the data types really matters in RatingControl? Am I heading in the right direction ?

I can get only the label Atleast if I get the "stars" are read-only or disabled, I would be happy.

Any help is appreciable.

Regards,

Senthil

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Senthil,

I defined an own Code date type for the rating values:

I defined the RatingControl as follows:

It is important that the "RatingItemCountField" is bound as the value of this field determines the stars.

When you set the "ReadOnly" to true no click on the control will reset the value. Therefore I used the DDLB to set the value.

It seems that the RangeFields have no influence.

Now it looks like this:

or

HTH,

    Horst

former_member207719
Participant
0 Kudos

Amazing Horst !

I'm really happy to see the stars at last.

And I wonder, whether the reverse flow is possible . As in your example, If I change the Rating to 3 stars will it change the Rating code to 03 - Normal. I tried with that, but whenever I change the star manually, the star looses its stability.

Is it the standard behavior of star type in ByD?

Regards,

Senthil

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Senthil,

I belive I've got how the RatingControl works.

The names of the elements on the UI matches the names in the tag.

Have a look at these snapshots:

  • Rating Value set by click on the resp. star

  • Rating Value set by entering value manually

The CountField defines how many stars are displayed.

The Range fields define the valid range for the RatingValue field.

Based on that value the count (even partial) of stars to be displayed in yellow is calculated.

Easy, if you know how.

HTH,

  Horst

former_member207719
Participant
0 Kudos

Thanks a lot Horst

Regards,

Senthil

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Senthil,

In the first example with the DDLB it was an own Code data type

But in the last example I used IntegerValue.

Bye,

   Horst

Answers (0)