Skip to content

Instantly share code, notes, and snippets.

View pradeep-dani's full-sized avatar

Pradeep Dani pradeep-dani

  • Deloitte
View GitHub Profile
@pradeep-dani
pradeep-dani / package.xml
Created December 4, 2019 10:09
Salesforce XML for package.xml for version 47.0
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>*</members>
<name>AccountForecastSettings</name>
</types>
<types>
<members>*</members>
<name>ActionLinkGroupTemplate</name>
</types>
@pradeep-dani
pradeep-dani / helper.js
Created December 2, 2019 10:06
LWC File structure with many modulated JS files
export function isFunction(value) {
return 'Test'+ value;
}
@pradeep-dani
pradeep-dani / final-2.markdown
Last active April 29, 2018 13:27
Child Rows in same JQ data-table
@pradeep-dani
pradeep-dani / final-child-rows-in-same-table.markdown
Created April 29, 2018 13:24
Final - Child Rows in same table
<!-- source of inspiration: source fo inspiration: https://stackoverflow.com/questions/10131268/jquery-no-conflict-still-conflicts-with-other-version-of-jquery#answer-10131373 -->
<html>
<script src="https://code.jquery.com/jquery-1.7.2.js"></script>
<head>
<script>
console.log('THUMB Rule 1: $ variable will hold version which is before conflict version');
console.log('THUMB Rule 2: jQuery variable will hold latest version unless it is conflicted with passing true as an argument');
jQ_v1_7_2 = jQuery.noConflict();
console.log('*******************************************************************');
<?xml version="1.0" encoding="UTF-8"?>
<CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata">
<customApplicationComponents>
<alignment>right</alignment>
<customApplicationComponent>Console.BuiltInComponent.mostRecentlyUsed</customApplicationComponent>
<customApplicationComponent>LiveAgentToolkit</customApplicationComponent>
</customApplicationComponents>
<!----Rest of the XML---->
</CustomApplication>
<?xml version="1.0" encoding="UTF-8"?>
<CustomApplicationComponent xmlns="http://soap.sforce.com/2006/04/metadata">
<buttonText>Live Agent Toolkit</buttonText>
<isHeightFixed>false</isHeightFixed>
<isHidden>true</isHidden><!—This setting will not display the button in the service console?
<isWidthFixed>false</isWidthFixed>
<visualforcePage>LiveAgentToolKit</visualforcePage>
</CustomApplicationComponent>
<apex:page sidebar="false" showHeader="false" standardStylesheets="false">
<apex:includeScript value="/support/console/36.0/integration.js"/>
<script type="text/javascript">
var __sfdcSessionId = '{!GETSESSIONID()}';
</script>
<script src="../../soap/ajax/38.0/connection.js" type="text/javascript"></script>
<script type="text/javascript">
var _laEventHandler = function (result) {
<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
<actionOverrides>
<actionName>Accept</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>CancelEdit</actionName>
<type>Default</type>
</actionOverrides>
<apex:page sidebar="false" controller="multipleDateSelect_Bootstrap">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.3.0/css/datepicker.min.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.3.0/js/bootstrap-datepicker.min.js"></script>
<script type='text/javascript'>
$m = jQuery.noConflict();
$m(document).ready(function() {
$m( "#selDates" ).datepicker({
show : true,
multidate : true,