64
Views
9
Comments
Solved
Unable to get average option from context menu
Question

I'm currently doing the Web blocks course where am I getting trouble in having "Average" from the context menu. Using that value only I can able to display the Star ratings in my application.

Can anyone pls help out.


PFA my trial application image



Thanks,

Sowndarya

mycourse.png

Solution

Sowndarya Subramanian wrote:

Hi Carlos,


The data type is Integer.

please sort it out.


Thanks.


Hi Sowndarya.

But your Attribute (Rating) in your Entity (UserMovieRating) is Text or Integer?

Sowndarya Subramanian wrote:

I'm currently doing the Web blocks course where am I getting trouble in having "Average" from the context menu. Using that value only I can able to display the Star ratings in my application.

Can anyone pls help out.


PFA my trial application image



Thanks,

Sowndarya


Hi there Sowndarya.


Check if the Attribute Rating is Text.

Because the option "Average" don't show for type "Text".


Regards,

Carlos Alfradique

Hi Carlos,


The data type is Integer.

please sort it out.


Thanks.

ratings.png

mvp_badge
MVP
Rank: #2

Hi Sowndarya,

Carlos means the Rating Attribute of the Entity, the one you're trying to get the Average of.

Ya okay, Its text.

I have changed to Integer now..Lets see



Thanks a lot.

Hi Carlos and Kilian,


Its working now.Great

Thanks a ton.



Thanks,

Sowndarya S

mvp_badge
MVP
Rank: #2

Great to hear that Sowndarya, happy coding :).

Rank: #12651

Uff, ran into the same problem - but the solution is already given here :-) Thanks a lot!