-
Splitting label values on '\n' is not getting same values on comparing
When i am comparing two same values in label by splitting values on the basis of '\n'
It is getting some problem on the last value of the list returned by System.Label.QuoteFCLFix_OriginServices.split('\n')
How can i solve this issue?
for(String c: System.Label.QuoteFCL_OriginServices.split('\n')) {
FCLOriginServices.add(new wrappingServices(c));
}list<wrappingServices> tempWrapList = new list<wrappingServices>();
for(wrappingServices objWrap : FCLOriginServices){
for(String c: System.Label.QuoteFCLFix_OriginServices.split('\n')) {
if(objWrap.label == c ){
objWrap.selected = true;
}
}
tempWrapList.add(objWrap);
}
FCLOriginServices.clear();
FCLOriginServices.addall(tempWrapList);
Log In to reply.
Popular Salesforce Blogs
Why Should I Move My Business to Salesforce
If you are exploring the realm of the CRM business, you will run into plenty of CRMs, with a considerable lot of them offering the…