Exercise 8.4 web blocks exercise
Question

I couldn´t manage to get the stars on the user rate of the movie to be clicked
I already did a step back thru the stpes and still can´t do it

any help?


8.4xWebBlocksExercise.pdf

Solution

Look at this!

You need to change to this

What you add before was this

If you change it's going to work!

What is happening is that you are not saving on the UserMovieRating entity the movie id to where you are giving a rate.


OSMDbAFN.oml

Hey António can you share your OML? Just to see what is missing

Kind Regards,

Márcio

Hi,

attach your oml to understand where you did the mistake>


sorry guys, what's the OML?

Hi Antonio,

OML is a module extension and stands for outsystems modelling language.

Navigation: Module -> Export -> save/save as and it will be saved as OML.

Refer post

Thanks, Aadhavan S


Hi Marcio, Thanks for the notice.

Your answer was posted when I am typing my reply.. I am not aware that you posted your answer and there is only few minutes difference between our replies. 

my typing skill is slow some times

Hope you will understand the scenario for being more days with community forum.

Thanks, Aadhavan S


Thank you Márcio,
Here it Is

OML.oml

But you are on the Average Rating right?
I need to click on the stars on the rate this movie/your rating

The INSERT statement conflicted with the FOREIGN KEY constraint "OSFRK_OSUSR_VS5_USERMOVIERATING_OSUSR_VS5_MOVIE_MOVIEID". The conflict occurred in database "S7TOHN000", table "dbo.OSUSR_VS5_MOVIE", column 'ID'. The statement has been terminated.

This is the message that appears when I try to click on the stars on the browser


Solution

Look at this!

You need to change to this

What you add before was this

If you change it's going to work!

What is happening is that you are not saving on the UserMovieRating entity the movie id to where you are giving a rate.


OSMDbAFN.oml

It worked!!
Thank you so much, I was getting crazy on this
Thank you Márcio

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