29
Views
9
Comments
Solved
How i can Replace Voting with boolean value to rating value
Question
Application Type
Reactive

How i can Replace Voting with boolean value to rating value in my case i made voting with boolean value but now i need replace it with rating value how can make Voting with rating value and save these in an entity and then show totla voting with rating per user in screen (result voting) As in the demo attachment

Rating.oml
2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

Hi Andrew,

Based on the mentioned use-case, I did some code changes in the shared .oml file.

Check the attached updated .oml file.

Implemented Points:

  • Introduced an additional attribute called RatingValue of Decimal Data type in the STR_Creitria structure definition
  • Mapped the same newly introduced attribute to the Rating widget's RatingValue property, within the Table widget (second column)
  •  Introduced an additional Block called VoteCountPerUser to compute and display the VoteCountPerUser value - which is referred in the VotingResult screen


Hope this helps you!


Kind regards,

Benjith Sam

Rating.oml
2020-09-21 11-35-56
Sachin Waghmare
Solution

Hi Andrew,

Are you referring the boolean attribute iscount in UserCreiteria entity?

Thanks & Kind Regards,

Sachin

2021-01-05 18-22-18
andrew mahfouz

yes

2020-09-21 11-35-56
Sachin Waghmare

Is this what you are looking for? Please confirm.

2020-09-21 11-35-56
Sachin Waghmare
Solution

Hi Andrew,

Please find attached the update OML.

Thanks & Kind Regards,

Sachin

SachinRating14.oml
2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

Hi Andrew,

Based on the mentioned use-case, I did some code changes in the shared .oml file.

Check the attached updated .oml file.

Implemented Points:

  • Introduced an additional attribute called RatingValue of Decimal Data type in the STR_Creitria structure definition
  • Mapped the same newly introduced attribute to the Rating widget's RatingValue property, within the Table widget (second column)
  •  Introduced an additional Block called VoteCountPerUser to compute and display the VoteCountPerUser value - which is referred in the VotingResult screen


Hope this helps you!


Kind regards,

Benjith Sam

Rating.oml
2020-09-21 11-35-56
Sachin Waghmare
Solution

Hi Andrew,

Are you referring the boolean attribute iscount in UserCreiteria entity?

Thanks & Kind Regards,

Sachin

2021-01-05 18-22-18
andrew mahfouz

yes

2020-09-21 11-35-56
Sachin Waghmare

Is this what you are looking for? Please confirm.

2021-01-05 18-22-18
andrew mahfouz

yes

2020-09-21 11-35-56
Sachin Waghmare

Hi Andrew,

Please find attached the updated OML. Kindly review this and let me know, if you need any other help.

Thanks & Kind Regards,

Sachin

RatingSachin.oml
2021-01-05 18-22-18
andrew mahfouz

in action 

the rating is fixed where if i change user form drop down 

Rating.JPG
2020-09-21 11-35-56
Sachin Waghmare

Please change the bindings of the rating from Count attribute to IsCount attribute.

Thanks & Kind Regards,

Sachin

2020-09-21 11-35-56
Sachin Waghmare
Solution

Hi Andrew,

Please find attached the update OML.

Thanks & Kind Regards,

Sachin

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