-
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
Leveraging Communities with Experience Cloud
Leveraging Communities with Experience Cloud: Building Thriving Online Communities to Foster Customer Engagement and Knowledge Sharing In today's digital age, businesses are increasingly recognizing the…
Visualforce Pages vs Lightning Components
There are a lot of fundamental differences between Visualforce Page and Lightning Components: Visualforce Page: 1. Page-Centric Model. 2. Most of the processing takes place…
How Salesforce Integration with Marketing Automation Tools Can Boost Your Business?
In the fast-paced digital age, businesses are constantly seeking ways to enhance their marketing efforts and drive growth. Integrating Salesforce with marketing automation tools is…