• venkatesh jammi
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi,

i have two piclkists in my custom visualforce page UI i.e picklist 1 name indicators: values are value1,value2, value3,value4 and second picklist name rating: values are super-3,good-2,bad-1. if i choose value1 in first picklist many times and if i choose relating rating values i need to caluculate average based on first picklist value and rating.
ex:
indiactors:value1               rating:super-3
                value2                         good-2
                value3                         bad-1
                value4
                                                     addrow button  remove button

if i click on addrow another picklists are displaying and if i select value1 again and again and ratings are 3,1,2 like that i need to calculate average and i need to put that average in another outputtext.please give me the snippet of code to solve this , help would be appriciated.
Thanks
syeda.