123
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
2021-07-19 14-21-08
Carlos Alfradique
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?

2021-07-19 14-21-08
Carlos Alfradique

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

UserImage.jpg
Sowndarya  Subramanian

Hi Carlos,


The data type is Integer.

please sort it out.


Thanks.

ratings.png
2021-07-19 14-21-08
Carlos Alfradique
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?

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Sowndarya,

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

UserImage.jpg
Sowndarya  Subramanian

Ya okay, Its text.

I have changed to Integer now..Lets see



Thanks a lot.

UserImage.jpg
Sowndarya  Subramanian

Hi Carlos and Kilian,


Its working now.Great

Thanks a ton.



Thanks,

Sowndarya S

2021-07-19 14-21-08
Carlos Alfradique

Sowndarya Subramanian wrote:

Hi Carlos and Kilian,


Its working now.Great

Thanks a ton.



Thanks,

Sowndarya S

I'm happy I could have helped you. :)

Have a nice day.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Great to hear that Sowndarya, happy coding :).

2019-08-31 20-35-18
...Matt...

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.