my DB games is there to display the games you click on with all your information. It’s also on this screen that all the information is displayed, and I think that’s where I should put the stars.
I want to display the number of stars attributed by the users, I don’t want the average, that’s what I did with the video.
Where and how is each users rating saved?
Depending on how, it might be as simple as collection filtered by signed in user, or you might need a relation & lookup based on signed in user. Can’t say exactly without knowing how the ratings are stored.
What if it were now possible to enter a rating directly into DB Games, which would then be sent to DB Ratings?
Because what I like about DB Ratings is that it has a star display (it detects if someone has put a rating of 3 = 3 stars) and there’s also an average which I really like.
Not sure I understand what you’re asking there. Do you want the user rating to be stored in the DB Games table, or do you just want to add a row to the Ratings table from the context of the DB Games detail screen?
The stars are just a relation and lookup, right? You can have the same thing in your Ratings table.
I’d like the number of stars I’ve put on a game to be displayed on the screen so that I don’t have to click on “Modify your review” to see how many stars I’ve put on a game.
For example, I click on Minecraft and I see that I’ve put 4 stars on the game and I don’t need to go down and click on Modify your review and then only see the number of stars I’ve put on that game.
However, I’d like to keep the option of seeing the stars I’ve put in the review a little further down the screen (you can see the username, the number of stars and the comment I’ve left). And see the average of all the stars in “Game Score”.
Aren’t the averages calculated based on all user ratings?
So if any user changes their rating, then logically the average must change - right?
Anyway, to modify it directly - that’s something I’d have to play around with. Essentially you’re wanting an input component (Ratings) that modifies a value in a different table to the one the screen is attached to. I’m thinking that what you will need is a Custom Colection that just contains a Ratings component, and then filter it so that it only shows the row from the Ratings table that corresponds to the current user/game combination. Actually, you can probably use that Query column that we created earlier as the source of the collection. Give that a try, I suspect it will work.
What’s strange is that everything works but it’s not displayed. It’s as if you have to enter the number of stars you want for it to be displayed, but if you enter a number beforehand in the DB and link it to the Rating, it won’t be displayed.