Refer:
http://boards.developerforce.com/t5/Visualforce-Development/custom-login-page/m-p/501739
http://boards.developerforce.com/t5/Visualforce-Development/custom-login-page/m-p/501739
<apex:page sidebar="false" standardController="Sample__c"> <head> <style type="text/css"> a:link { COLOR: #FF0000; } a:visited { COLOR: #008000; } a:hover { COLOR: #FF0000; } a:active { COLOR: #00FF00; } </style> </head> <apex:form > <!-- Designing Sidebar --> <table> <tr> <th width="200" valign="top"> <apex:outputPanel > <apex:pageblock title="Sidebar"> <apex:pageblockSection columns="1"> <apex:commandlink value="One"/> <apex:commandlink value="Two"/> </apex:pageblockSection> </apex:pageblock> </apex:outputPanel> <!-- All pages comes here --> </th> <th> <apex:outputPanel > <apex:pageblock title="One"> <apex:pageblockSection > <apex:inputField value="{!Sample__c.name}"/> <apex:inputField value="{!Sample__c.City__c}"/> </apex:pageblockSection> </apex:pageblock> <apex:pageblock title="Two"> <apex:pageblockSection > <apex:inputField value="{!Sample__c.Mobile__c}"/> <apex:inputField value="{!Sample__c.Salary__c}"/> </apex:pageblockSection> </apex:pageblock> </apex:outputPanel> </th> </tr> </table> </apex:form> </apex:page>
<apex:page sidebar="false" standardController="Sample__c" Extensions="sample">
<body text="#507070" link="#900000" alink="#D06000" vlink="#C08000" bgcolor="#FFD078">
<apex:form >
<!-- Designing Sidebar -->
<table>
<tr>
<th width="200" valign="top">
<apex:outputPanel >
<apex:pageblock id="Sidebar">
<apex:pageblockSection columns="1" title="Sidebar" collapsible="false">
<apex:commandlink value="One" action="{!pageOne}" style="color: #CC0000"/>
<apex:commandlink value="Two" action="{!pageTwo}"/>
</apex:pageblockSection>
</apex:pageblock>
</apex:outputPanel>
<!-- All pages comes here -->
</th>
<th>
<apex:outputPanel >
<apex:pageblock title="One" rendered="{!page1}">
<apex:pageblockSection >
<apex:inputField value="{!Sample__c.name}"/>
<apex:inputField value="{!Sample__c.City__c}"/>
</apex:pageblockSection>
</apex:pageblock>
<apex:pageblock title="Two" rendered="{!page2}">
<apex:pageblockSection >
<apex:inputField value="{!Sample__c.Mobile__c}"/>
<apex:inputField value="{!Sample__c.Salary__c}"/>
</apex:pageblockSection>
</apex:pageblock>
</apex:outputPanel>
</th>
</tr>
</table>
</apex:form>
</body>
</apex:page>
Windows-7 Task Scheduler |
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="csvInsertArtist" class="com.salesforce.dataloader.process.ProcessRunner" singleton="false"> <description>Inserts artist names from CSV file into Artist custom object.</description> <property name="name" value="csvInsertArtist"/> <property name="configOverrideMap"> <map> <entry key="sfdc.debugMessages" value="false"/> <entry key="sfdc.debugMessagesFile" value="c:\dataloader\csvInsertArtist.log"/> <entry key="sfdc.endpoint" value="https://www.salesforce.com"/> <entry key="sfdc.username" value="<i>Your Salesforce ID</i>"/> <entry key="sfdc.password" value="<i>Your encrypted Salesforce password</>"/> <entry key="sfdc.timeoutSecs" value="540"/> <entry key="sfdc.loadBatchSize" value="200"/> <entry key="sfdc.entity" value="Artist__c"/> <entry key="process.operation" value="insert"/> <entry key="process.mappingFile" value="c:\dataloader\artistmap.sdl"/> <entry key="process.outputError" value="c:\dataloader\errorInsertArtist.csv"/> <entry key="process.outputSuccess" value="c:\dataloader\successInsertArtist.csv"/> <entry key="dataAccess.name" value="c:\dataloader\Artists_1_100.csv" /> <entry key="dataAccess.type" value="csvRead" /> <entry key="process.initialLastRunDate" value="2007-06-06T00:00:00.000-0800"/> </map> </property> </bean> </beans>
C:\Program Files (x86) C:\Program Files (x86)\salesforce.com\Data Loader\bin process ../conf csvInsertArtist |
Annotations:
|
|
* An Apex annotation modifies the way a
method or class is used, similar to annotations in Java.
* Annotations are defined with an initial @
symbol, followed by the appropriate keyword.
* To add an annotation to a method, specify it immediately before the
method or class definition.
global class MyClass {
@future
Public static void myMethod(String a)
{
//long-running Apex code
}
}
|
|
Annotations
supported by Apex
|
|
Annotation Name
|
Description
|
@Deprecated
|
* Use the deprecated annotation to identify methods, classes, exceptions,
enums, interfaces or variables that can no longer be referenced in subsequent
release of the managed package in which they reside. * This is useful when you are refactoring code in managed package as the requirements evolve. * New subscribers cannot see the deprecated elements, while the elements continue to function for existing subscribers and API integrations. Syntax: @deprecated //This method is deprecated, use myOptimizedMethod(String a, String b) instead Public void myMethod(String a) { } |
@Future
|
|
@IsTest
|
|
@ReadOnly
|
|
@RemoteAction
|
|
Name
|
Latest Version
|
Apex Data loader
|
29.0
|
Force.com API
|
29.0
|
Force.com IDE
|
29.0.0 (compatible with Eclipse 4.2 and 4.3)
|
Salesforce.com
|
Winter' 2014
|