error_reporting
Warning: Cannot modify header information - headers already sent by (output started at /home/adhiso5/public_html/wp-config.php:1) in /home/adhiso5/public_html/wp-includes/feed-rss2.php on line 8
AdhiSoft https://adhisoft.com/ One stop for your Simple website to complex cloud solutions Fri, 08 Jun 2018 21:25:01 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.4 Salesforce Apex read CSV file data which has comma in it https://adhisoft.com/pagename https://adhisoft.com/pagename#respond Fri, 08 Jun 2018 21:20:28 +0000 http://adhisoft.com/?p=146 List allFields = new List(); Blob contentFile; String nameFile; String[] filelines = new String[] {}; nameFile = contentFile.toString(); filelines = nameFile.split('\n'); for (Integer i = 1; i < filelines.size(); i++) { //for(String line : filelines) { //String[] inputvalues = new String[] {}; List fields = filelines[i].split(','); // check for blank CSV lines (only commas) //if […]

The post Salesforce Apex read CSV file data which has comma in it appeared first on AdhiSoft.

]]>

List> allFields = new List>();
Blob contentFile;
String nameFile;
String[] filelines = new String[] {};
nameFile = contentFile.toString();
filelines = nameFile.split('\n');

for (Integer i = 1; i < filelines.size(); i++) { //for(String line : filelines) { //String[] inputvalues = new String[] {}; List fields = filelines[i].split(',');

// check for blank CSV lines (only commas)
//if (line.replaceAll(',','').trim().length() == 0)
// break;

List cleanFields = new List();
String compositeField;
Boolean makeCompositeField = false;
for(String field : fields) {

if (field.startsWith('"') && field.endsWith('"')) {
cleanFields.add(field.replaceAll('"',''));
} else if (field.startsWith('"')) {
makeCompositeField = true;
compositeField = field;
} else if (field.endsWith('"')) {
compositeField += ',' + field;
cleanFields.add(compositeField.replaceAll('"',''));
makeCompositeField = false;
} else if (makeCompositeField) {
compositeField += ',' + field;
} else {
cleanFields.add(field.replaceAll('"',''));
}

}
allFields.add(cleanFields);
}
}

The post Salesforce Apex read CSV file data which has comma in it appeared first on AdhiSoft.

]]>
https://adhisoft.com/pagename/feed 0
Customer testmonimal https://adhisoft.com/pagename https://adhisoft.com/pagename#respond Tue, 12 Apr 2016 18:43:53 +0000 http://adhisoft.com/?p=142 AdhiSoft’s deep Force.com expertise helps our clients to take advantage of everything Salesforce platform offers and move quickly to go live usage. Our AdhiSoft solution force.com was delivered in lesser time, almost one third of time of traditional platform solutions.

The post Customer testmonimal appeared first on AdhiSoft.

]]>
AdhiSoft’s deep Force.com expertise helps our clients to take advantage of everything Salesforce platform offers and move quickly to go live usage. Our AdhiSoft solution force.com was delivered in lesser time, almost one third of time of traditional platform solutions.

The post Customer testmonimal appeared first on AdhiSoft.

]]>
https://adhisoft.com/pagename/feed 0
Prospective Client from US https://adhisoft.com/pagename https://adhisoft.com/pagename#respond Tue, 12 Apr 2016 17:33:15 +0000 http://adhisoft.com/?p=126 We are very aggressive about coming with new solution for our business need, AdhiSoft delivered the right mix of Force.com and custom development expertise. They helped us with Salesforce solutions for our requirement, Salesforce allows us to maintain a focus on our customer and to do it in a faster, simpler way.

The post Prospective Client from US appeared first on AdhiSoft.

]]>
We are very aggressive about coming with new solution for our business need, AdhiSoft delivered the right mix of Force.com and
custom development expertise. They helped us with Salesforce solutions for our requirement, Salesforce allows us to maintain a focus on our customer and to do it in a faster, simpler way.

The post Prospective Client from US appeared first on AdhiSoft.

]]>
https://adhisoft.com/pagename/feed 0