You need to sign in to do that
Don't have an account?
Shree K
How to Add radio buttons to display selected records on the VF page
Hi
I am trying to display Opportunity records based on their picklist value either "Closed Won" or "Closed Lost".
Upon selecting the radio button A all "Closed won" opportunities should be displayed,similarly
Upon selecting the radio button B all "Closed Lost " opportunities should be displayed.
so, in order to achieve this ,do i need to create radio buttons on my object or is is possible without creating radio buttons on the object.
i am unable to add radio buttons to my vf page when it has a pageblock table,
below is my VF Page Code for the reference,
please help me with the controller if required.
VF page:
<apex:page standardcontroller="Opportunity" tabstyle="Opportunity">
<Apex:form >
<Apex:pageblock Title="Records">
<Apex:PageBlockTable value="{!Opportunity}" var="O">
<Apex:Column value="{!O.Name}"/>
<Apex:Column value="{!O.StageName}"/>
<Apex:Column value="{!O.Amount}"/>
</Apex:PageBlockTable>
</Apex:pageblock>
</Apex:form>
</apex:page>
Thanks in advance
I am trying to display Opportunity records based on their picklist value either "Closed Won" or "Closed Lost".
Upon selecting the radio button A all "Closed won" opportunities should be displayed,similarly
Upon selecting the radio button B all "Closed Lost " opportunities should be displayed.
so, in order to achieve this ,do i need to create radio buttons on my object or is is possible without creating radio buttons on the object.
i am unable to add radio buttons to my vf page when it has a pageblock table,
below is my VF Page Code for the reference,
please help me with the controller if required.
VF page:
<apex:page standardcontroller="Opportunity" tabstyle="Opportunity">
<Apex:form >
<Apex:pageblock Title="Records">
<Apex:PageBlockTable value="{!Opportunity}" var="O">
<Apex:Column value="{!O.Name}"/>
<Apex:Column value="{!O.StageName}"/>
<Apex:Column value="{!O.Amount}"/>
</Apex:PageBlockTable>
</Apex:pageblock>
</Apex:form>
</apex:page>
Thanks in advance
We can add radio buttons in the vF page itself and fetch the opportunities using custom controller or Extension to standard controller
Try the below code
VF page
Extension Class
Mark this as "SOLVED" if your query is answered.
Thanks & Regards,
Bhanu Mahesh