You need to sign in to do that
Don't have an account?
Sanjay92062
<apex:selectList with multiselect="true" is giving [] brackets, how to remove those brackets?.
Hi,
I am using the below code for multi-select.
and controller method is below,
From the visualforce page,i can select multiple columns, but the issue is those columns are coming like [column1,column2]
How can I remove those brackets from the visualforce code?
Thanks in Advance !!
I am using the below code for multi-select.
<apex:selectList value="{!tab.tables__c}" title="Select" multiselect="true" size="5" id="selectListValue"> <apex:selectOptions value="{!tables}"/> </apex:selectList>
and controller method is below,
public List<selectOption> getselectValues1(){ List<Column___c> relatedprod = new List<Column___c>(); relatedprod = [Select Id,name from Column___c where Table_Name__r.id =:tableValue ]; List<SelectOption> columns = new List<SelectOption>(); columns.add(new SelectOption('','-None-')); for(Column___c prod:relatedprod){ columns.add(new SelectOption(prod.Name,prod.Name)); } return columns; }
From the visualforce page,i can select multiple columns, but the issue is those columns are coming like [column1,column2]
How can I remove those brackets from the visualforce code?
Thanks in Advance !!
please find the code.
Thanks !!!