This file contains hidden or 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 LinkedInCrtl{ | |
public LinkedInParser lwrapper{get;set;} | |
public LinkedInCrtl(){ | |
lwrapper=new LinkedInParser(); | |
fetchLinkedInDetails(); | |
} | |
private void fetchLinkedInDetails(){ |
This file contains hidden or 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
<c:Responsive_Calendar URL="id" ObjName="Event" StartDateTimeFieldName="Startdatetime" EndDateTimeFieldName="Enddatetime" Namefield="Subject"/> |
This file contains hidden or 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 controller="MyAccCtrl" showHeader="false" sidebar="false" standardStylesheets="false" docType="html-5.0"> | |
<apex:stylesheet value="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"/> | |
<apex:includeScript value="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.11/angular.min.js"/> | |
<apex:remoteObjects jsNamespace="RemoteObjectModel"> | |
<apex:remoteObjectModel name="Account" jsShorthand="acc" fields="Name,Phone"></apex:remoteObjectModel> | |
</apex:remoteObjects> | |
<script> | |
var app = angular.module("ngApp", []); |
This file contains hidden or 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
global class MyAccCtrl{ | |
@RemoteAction | |
global static list<Account > myAccounts() { | |
return [select id, name, Phone,Website from Account where Phone!=null Order By LastModifiedDate DESC LIMIT 50]; | |
} | |
} |
This file contains hidden or 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 sidebar="false" showHeader="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5.0"> | |
<html> | |
<head> | |
<style type="text/css"> | |
body {background: white; margin: 20px;} | |
h2 {margin: 20px 0;} | |
</style> | |
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script> |
This file contains hidden or 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
<!--Event Definations in event file--> | |
<aura:event type="APPLICATION"> | |
<aura:attribute name="saccount" type="Account"/> <!Note Attribute carries Pay load--> | |
</aura:event> | |
<!--Publish events from edit component--> | |
<aura:registerEvent name="saveAccount" type="c:saverowEvent" /> | |
<ui:button label="Submit" press="{!c.updateAccount}" class="btn btn-default btn-lg btn-block"/> |
This file contains hidden or 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
hidenewBtn:function(component,event) { | |
var toggleBtn= component.find("Newbtn"); | |
$A.util.removeClass(toggleBtn,'btn btn-primary btn-lg btn-block'); | |
$A.util.addClass(toggleBtn,'toggle'); | |
} | |
//CSS file | |
/*toggleCss.css*/ | |
.THIS .toggle { |
This file contains hidden or 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
<aura:attribute name="messages" type="Aura.Component[]" access="GLOBAL"/> | |
<div aura:id="messages"> | |
{!v.messages} | |
</div> | |
//Script for Error handling | |
else if (state === "ERROR") { | |
var errors = response.getError(); |
This file contains hidden or 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
/** | |
* Extends the DataSource.Connection class to enable | |
* Salesforce to sync the external system’s metadata schema | |
* and to handle queries and searches of the external data. | |
**/ | |
global class CurrencyDataSourceConnection extends DataSource.Connection { | |
private DataSource.ConnectionParams connectionInfo; | |
/** |