-
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…
Salesforce Dreamforce 2024: Unlocking the Future with AI and Data-Driven Insights
Dreamforce 2024, Salesforce's flagship event, captivated a global audience with groundbreaking innovations, strategic partnerships, and a bold focus on the future of AI. As businesses…
A complete list of Salesforce Events & Conferences for fall/winter 2018 - Part 1
Europe is going to be packed in the upcoming months as these Top Salesforce conferences and events are heading there! Here’s a list of all…