-
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
Standard and Custom Percentage Calculator in Salesforce Lightning Component
Requirement We are going to calculate some standard percentage and custom percentage i.e. any percent you want to calculate any input number. On click of…
What are Quick Actions in Salesforce? | The Ultimate Guide
What are Quick Actions? Quick actions in Salesforce are a powerful feature that allows users to perform tasks quickly and efficiently, without having to navigate…
What are External Services in Salesforce? | All You Need to Know
Salesforce is a leading customer relationship management (CRM) platform that is widely used by organizations of all sizes and industries to manage their customer data,…