This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright Strategic Sales Systems 2011 | |
* Customization to write an email to the selected records on the mainview. | |
*/ | |
define({ | |
/** | |
* Open an email using Outlook automation, if available, falling back to mailto url otherwise. | |
* @param {Array|String} recipient email address (or addresses) | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title></title> | |
<link rel="stylesheet" href="http://code.jquery.com/qunit/git/qunit.css" type="text/css" | |
media="screen" /> | |
</head> | |
<body> | |
<h1 id="qunit-header"> | |
QUnit example</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Used to read a delimited file. | |
*/ | |
public class SSSCsvReader { | |
private String delim = ','; | |
// the input data | |
private String[] buffer; | |
public SSSCsvReader(String data){ | |
this.buffer = data.split('\n'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@isTest | |
private class SSSCsvReaderTest { | |
static testmethod void testSplitCsvSimple(){ | |
String line = 'abc,efg'; | |
String[] splitted = new SSSCsvReader(line).readLine(); | |
System.assertEquals(2, splitted.size()); | |
System.assertEquals('efg', splitted[1]); | |
System.assertEquals('abc', splitted[0]); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function () { | |
// Execute the "Copy" method on each selected record | |
var grid = this; | |
// check that we have a selection | |
var selectedItems = grid.selection.getSelected(); | |
if (selectedItems.length < 1) { | |
alert(grid.noSelectionsText); | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ICAccWidget nw = Sage.Platform.EntityFactory.Create(); | |
nw.Account = caccwidget.Account; | |
nw.WIdget_name = caccwidget.WIdget_name; | |
nw.Quantity = caccwidget.Quantity; | |
nw.Price = caccwidget.Price; | |
nw.Save(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CampaignResponse | |
{ | |
public String Id { get; set; } | |
public String ContactId { get; set; } | |
} | |
public List<CampaignResponse> GetCampaignResponses(String campaignId) | |
{ | |
List<CampaignResponse> result = new List<CampaignResponse>(); | |
GetCampaignResponsesPaged(campaignId, result, 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<ContextualListConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<TargetPages> | |
<TargetConfigInfo> | |
<TargetPage>CONTACT</TargetPage> | |
<ReferingPages> | |
<ContextConditionInfo> | |
<ReferringPage>ACCOUNT</ReferringPage> | |
<DataPath>CONTACT:ACCOUNTID</DataPath> | |
<ConditionValue>ReferringId</ConditionValue> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TargetConfigInfo> | |
<TargetPage>C_OPP_BRAND</TargetPage> | |
<ReferingPages> | |
<ContextConditionInfo> | |
<ReferringPage>OPPORTUNITY</ReferringPage> | |
<DataPath>C_OPP_BRAND:OPPORTUNITYID</DataPath> | |
<ConditionValue>ReferringId</ConditionValue> | |
</ContextConditionInfo> | |
</ReferingPages> | |
</TargetConfigInfo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pseudo code for SyncTarget method: | |
sourceDigest = get_digest_from_feed(syncSource) | |
targetDigest = GetDigest() | |
for each entry in syncSource: | |
gcon = retrieve_contact_from_google (entry) | |
if gcon == null: | |
create_google_contact(entry) | |
else: |
OlderNewer