You need to sign in to do that
Don't have an account?
Shabbir Shaik
Problem to get multiselect picklist values from soql to string
//oppcountry is List<String>
cnt= [select Id,Name,Opp_Country__c from Mat__c where Opp_Country__c<>''];
for(integer i=0;i<cnt.size();i++){
oppcountry= cnt[i].Opp_Country__c.split(';');
}
can anybody help me in this, I am unable assign country values to oppcountry.
Thanks in advance.
cnt= [select Id,Name,Opp_Country__c from Mat__c where Opp_Country__c<>''];
for(integer i=0;i<cnt.size();i++){
oppcountry= cnt[i].Opp_Country__c.split(';');
}
can anybody help me in this, I am unable assign country values to oppcountry.
Thanks in advance.
String oppCountry = '';
List<String> opC;
List<Mat__c> mat = [select Id,Name,Opp_Country__c from Mat__c where Opp_Country__c<>''];
for(Mat__c m : mat){
oppCountry = m.Opp_Country__c;
}
if(oppCountry.contains(';')){
opC = oppCountry.split(';');
for(Integer i=0;i<opC.size();i++){
system.debug('Country: '+opC[i]);
}
}
Thanks,
Kishore
Thanks for your reply, I tried using this but its not working, The values are passing into string but not populating in List<String>.