You need to sign in to do that
Don't have an account?
Raja Bipin Chandra M B
How to find selected checkbox in apex:selectcheckboxes
Hello All,
I am using <apex:selectcheckboxes> with the below some of select options getting dynamically. along with "Select All' option.
I am using the following code for "Select All" Option and re-rendering the page.
Thanks,
Raja
I am using <apex:selectcheckboxes> with the below some of select options getting dynamically. along with "Select All' option.
I am using the following code for "Select All" Option and re-rendering the page.
public String[] chartYear { get{ if(chartYear==null){ chartYear=new list<String>{'Qatar'}; } else if(chartYear!=null){ for(String year:chartYear){ if(year.Equals('Select All')){ chartYear=new list<String>{'Qatar','Bahrain','Oman','Jordan','Lebanon','Syria','Select All'}; } } } return chartYear; } set; }However, Once I uncheck "Select All" option, i need all the checkboxes to be unchecked. I am stuck in half-way. Appreciate your help.
Thanks,
Raja
Please let us know if this will help you
Thanks
Amit Chaudhary
Thanks for your help... It certainly helped me.However, i have many other fields to be displayed on a single page. So i tried displaying options horizontally instead of using a table. This approach will eat my vertical space .
Thanks again,
Raja