You need to sign in to do that
Don't have an account?

Displaying Q&A
My actual requirement was like
i have a custom object in that i have fields questions(data type text area),answers(answer also same ) an pick list having internal user,external user and All users. now my requirement is i want to display the pick list values in vf page and if the user selects internal option in picklist then page should display question and answer related to internal and if he selects ExternalUser it should display Questio and answer of External user and if he selects all user it should display All the Q&A .So how could i achieve this.For that i wrote the above code .i am getting the pick list but not the Q&A related to that.Please help me on this.
i have a custom object in that i have fields questions(data type text area),answers(answer also same ) an pick list having internal user,external user and All users. now my requirement is i want to display the pick list values in vf page and if the user selects internal option in picklist then page should display question and answer related to internal and if he selects ExternalUser it should display Questio and answer of External user and if he selects all user it should display All the Q&A .So how could i achieve this.For that i wrote the above code .i am getting the pick list but not the Q&A related to that.Please help me on this.
Looks like community members have already given the right code in the links below,
https://developer.salesforce.com/forums/ForumsMain?id=906F00000009Dc5IAE
https://developer.salesforce.com/forums/ForumsMain?id=906F00000009DgMIAU
Let us know if that code does not meet your requirements.
Regards,
Ashish