-
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
What Makes the Salesforce Ecosystem a Game-Changer for Businesses?
Introduction: Why the Salesforce Ecosystem Matters Imagine having a single platform that connects your sales, marketing, customer support, and analytics teams seamlessly while adapting to…
How AI Will Improve CRM in 2019
Customer relationship management (CRM) is one of the fields that stands to benefit the most from the rapid development of artificial intelligence (AI) in 2019.…