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
<apex:page lightningStylesheets="true" controller="GenericConnectorController"> | |
<apex:includeLightning /> | |
<!-- Define Tab panel .css styles --> | |
<style> | |
.activeTab {background-color: #236FBD; color:white; background-image:none} | |
.inactiveTab { background-color: lightgrey; color:black; background-image:none} | |
</style> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script> | |
function checkSelect(selectedtab){ |
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
@RestResource(urlMapping='/v1/BookManagement/') | |
global class BookManager { | |
@httpGet | |
global static Book__c doGetBook(){ | |
Book__c book = new Book__c(); | |
Map<String, String> paramsMap = RestContext.request.params; | |
String bookId = paramsMap.get('Id'); | |
book = [Select Id, Name, Price__c From Book__c Where Id =: bookId]; | |
return book; | |
} |
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 PerformanceAnalysis { | |
public static void method1(Id accountId){ | |
List<Contact> contactList = new List<Contact>(); | |
contactList = [Select Id, Name, DoNotCall, AccountId, Account.Name | |
From Contact Where | |
AccountId != null | |
AND accountId =: accountId]; | |
/* For Each */ | |
Long startTime = System.now().getTime(); | |
For(Contact con : contactList){ |
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 LinkedlnoAuthController{ | |
public Boolean isCode { get; set; } | |
public String authCodeFromURL { get; set; } | |
public List<LinkedIn_Information__c> linkedlnInfoList { get; set; } | |
public String BasicInfo { get; set; } | |
public String urlToSharedPost { get; set; } | |
public String sharedInformation { get; set; } | |
public Final String consumerKey = 'YOUR_CONSUMER_KEY'; |
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
import { LightningElement, api } from 'lwc'; | |
export default class MetaExaples extends LightningElement { | |
@api message; | |
@api pageno; | |
} |
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
import { createElement } from 'lwc'; | |
import wireMethodWithParam from 'c/wireMethod'; | |
import { registerApexTestWireAdapter } from '@salesforce/lwc-jest'; | |
import getAllCases from '@salesforce/apex/CaseController.getAllCases'; | |
const mockFindCases = require('./data/allcases.json'); | |
const mockFindCasesNoRecords = require('./data/nodata.json'); | |
// Register as Apex wire adapter. |
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 BeerController { | |
public BeerController() { | |
} | |
public static String generateCardId(){ | |
String CharList = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'; | |
Integer position; | |
Integer LengthRequired = 30; | |
String Res = ''; |
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 BeerController { | |
public BeerController() { | |
} | |
public static String generateCardId(){ | |
String CharList = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'; | |
Integer position; | |
Integer LengthRequired = 30; | |
String Res = ''; |
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
import { LightningElement, api } from 'lwc'; | |
export default class AddressComponent extends LightningElement { | |
@api address; | |
handleSelect(){ | |
const addressEev = new CustomEvent( | |
'address', | |
{ | |
detail : this.address.Id |
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 BeerController { | |
public BeerController() { | |
} | |
public static String generateCardId(){ | |
String CharList = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'; | |
Integer position; | |
Integer LengthRequired = 30; | |
String Res = ''; |