I am doing a web blocks of clicking the star to do the rating of the movie. There are five star. I will click the number of star and it will show the rating of the movie. How come if I click the second star an error message show up and if I clicked, the star should become dark but it won't changed

Solution

Hi,

You are missing the Refresh of GetUserMovieRating in OnRatingEvent action.

You can check how to fix it in the attachment.

Regards,

Marcelo



Solution

Hi Theow,

You are usgin  Unique index on UserMovieRating table for movie id and user id.

if one user is rating for same movie more than one time than unique index row giving error.

https://success.outsystems.com/Documentation/11/Developing_an_Application/Use_Data/Data_Modeling/Create_an_Entity_Index


Hope this will help you.

Regards

Rahul Sahu

how many I suppose to get over this