This page has moved, please reach out to Paul or Zack for an updated URL.
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
<script type='text/javascript'> | |
var domain='{!$Setup.EnvironmentSettings__c.Domain__c}'; | |
liveagent.details.preChatInit('https://' + domain+'/chat','detailCallBack'); | |
</script> |
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
//-- for more information, please see: https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver | |
//-- creates the observer that will fire the function when the dom is updated. | |
//-- in this case when we scroll, there are new elements added to the fixedHeaderContainer | |
//-- so we just run from that | |
//-- if we wanted to be smarter, we can look through the mutations arguments to see if | |
//-- any mutation records (i.e. mutations[0].addedNodes is greater than 0) | |
var observer = new MutationObserver( function( mutations, observer ){ | |
console.log( "mutations occurred" ); console.log( mutations ); console.log( this ); | |
jq( "#gbMainTable > tbody > tr > td.fixedHeaderContainer tr td[name='v5']" ).hide(); |
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
/** | |
* Example DataSource.Connection class | |
* that provides row level security | |
* for Archived BigObject records | |
* | |
* For more information, please see: | |
* https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_connector_start_connection_class.htm | |
* or | |
* https://help.salesforce.com/articleView?id=apex_adapter_setup.htm&type=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
#!/bin/bash | |
# @TODO: provide more documentation. | |
# This is a shellscript that works on *nix / mac - but does not work on windows | |
# because it needs to use grep (and the very important -c --context lines around those matches | |
# but can be used on windows with a *nix emulator like cygwin | |
# to run: . findDevUsage.sh "[[ Field API Name to search ]]" | |
# this will output a file in /tmp/fieldAssignments/fieldAPIName__c_usage.html" | |
# or |
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 with sharing class ExampleController { | |
@AuraEnabled | |
public static Map<String,CustomFieldDefinition> getOpportunityDescribes(){ | |
//-- Through deep binding, it is possible to retrieve the field limitations from apex | |
//-- and leverage within lightning components. | |
//-- However, it is often recommended to optimize them to a |
To create a component that would perform an update and then auto close.
(Please note that this is from this installable demo here: https://github.com/SalesforceCloudServices/ltng-support-button-update )
Within this example, we load info from this record and set the value and then close the modal automatically.
- Preferrably without the end user seeing the modal, but this depends on the speed that javascript is processed on the client.
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
.DS_Store | |
Really simple component to show a page header in Lightning Experience
Includes the following:
- Component - the core of the component
- Includes the attributes (the things that other components can configure on this component through code)
- handlers (to communicate with the controller)
- events (that it can listen to from other components it contains)
OlderNewer