Introduction
Rating is one of the most common features in social sites and for any of the interactive requirements by users. While I was developing ratings, I realized, there are lots of validation required in order to capture correct ratings.
Scenario
We will add a rating control and set display mode as per the requirement. We will also capture all the ratings and project average ratings.
Objective
The objective of this requirement is very demanding as rating the concept is important in many of the scenarios. It is useful in concepts like idea ratings or article ratings. To calculate and project we will create a SharePoint list as per the requirements.
Step 1. The list structure would look like below-
The list structure could be designed as per our needs. Here for a demo, I have created 3 different lists and shown the data with its list structure.
Article list structure.

Article list content.

PostViewsOnArticle list structure.

PostViewsOnArticle Content.

The third list will save data from power apps, and the list structure looks like below.

Step 2. Design screen and form as per requirement.
The below screenshot shows all the articles that are entered, on clicking on articles, we can see the details of the article and all the views that we got on that article. To show all articles, I have taken gallery control.

Below is the display form, which shows the variable View value. Variable View value shows gallery-selected item details.

Below form I would like to show all the views that people might have. When we click on each of the views, we can see the details and after seeing the details, we can rate it. To show all the views, we will again use Gallery control.
As we can see, I have deleted the title from the box label and provided a button so that I can show the title as text, and it remains clickable too.

On selecting the button, it should go to View description so the code looks like below.

Step 3. Save the Logged User in a Global variable
We keep logged-in user details in a global variable for performance improvement. Otherwise User(). The email could directly be used wherever required.













Join the conversation! Your thoughts help the community grow.