最大的不便:只能用Flash Builder 4构建基于桌面的AIR程序
,基于Web的Flex应用暂时还不支持
。。。
Tutorial #5: Adding Business Logic with Apex
- Apex是运行在Force.com上强类型
,面向对象
的编程语言。
- 你可以用Apex来编写触发器(trigger)
、web services
和 program controllers
。
- 可以用Apex来编写一些复杂的事务逻辑
。
- 商品(Merchandise)price降低的时候,Invoice Statement 和 Line Item会作出相应的变化。
- Setup->Create->Objects->Triggers->New
Step 2: Define a List Variable
trigger HandleProductPriceChange on Merchandise__c (after update) {
List<Line_Item__c> openLineItems =
[SELECT j.Unit_Price__c, j.Merchandise__r.Price__c
FROM Line_Item__c j
WHERE j.Invoice_Statement__r.Status__c = 'Negotiating'
AND j.Merchandise__r.id IN :Trigger.new
FOR UPDATE];
for (Line_Item__c li: openLineItems) {
if ( li.Merchandise__r.Price__c < li.Unit_Price__c ){
li.Unit_Price__c = li.Merchandise__r.Price__c;
}
}
update openLineItems;
}
Tutorial #7: Building a Custom User Interface Using Visualforce
Step 1: Enable Visualforce Development Mode
Setup->My Personal Information->Personla Information->Edit->Development Mode
Step 2: Create a Visualforce Page
https://na1.salesforce.com/apex/CountSheet
Tutorial #8: Creating a Public Web Page Using Force.com Sites
Step 1: Create a Product Catalog Page
Setup->Develop->Pages
<apex:page standardstylesheets="false" showHeader="false" sidebar="false" standardController="Merchandise__c" recordSetVar="products" >
<apex:stylesheet value="{!URLFOR($Resource.styles, 'styles.css')}"/>
<h1>Merchandise Catalog</h1>
<apex:datatable value="{!products}" var="pitem" rowClasses="odd,even">
<apex:column headerValue="Product">
<apex:outputtext value="{!pitem.name}" />
</apex:column>
<apex:column headerValue="Description">
<apex:outputField value="{!pitem.Description__c}"/>
</apex:column>
<apex:column headerValue="Price">
<apex:outputField value="{!pitem.Price__c}"/>
</apex:column>
</apex:datatable>
</apex:page>
Step 2: Register a Force.com Domain Name
Setup->Develop->Sites->Register My Force.com Domain->Public Access Settings->Edit->Read permission for the Merchandise object
- 大小: 24 KB
分享到:
相关推荐
[Addison-Wesley Professional] Force.com 平台应用开发 第3版 (英文版) [Addison-Wesley Professional] Development with the Force.com Platform Building Business Applications in the Cloud 3rd Edition (E-...
com.force.json v1.2.2 json 解析神器 ..................
创建随需应变的应用程序 Force.com 平台简介 第1 章 Force.com 平台简介 第2 章 关于示例招聘应用程序 第3 章 复习数据库概念 第4 章 构建简单应用程序 第5 章 通过高级字段和页面布局改进简单应用程序 第6 章 使用...
Force.com Fundamentals is an introduction to the Force.com platform, designed to lead the reader through the functionality provided natively by the Force.com platform. The book walks the reader ...
force.com workbook 2015 pdf
Force.com 工作手册 云应用程序入门
Force.com白皮书,SaaS领域经典应用的,元数据驱动的经典实现
Starting with an introduction to the Force.com model, key features, and advantages of the Force.com platform, this book delves into the design and development of applications on the Force.com platform...
有个哥们10分要,我就看不惯了,2分要的拿去,本来想免费的结果最少要2分不好意思了各位
json解析
Force.com Development Blueprints
Spring for Force.com Developer
The Force.com Multitenant Architecture Understanding the Design of Salesforce.com's Internet Application Development Platform
大多数Force.com开发人员都有多个帐户,并且每次从一个帐户转移到另一个帐户时,都厌倦了输入用户名和密码。此扩展程序执行以下操作:-保留您的salesforce.com帐户信息(用户名,密码,安全令牌和描述) -可让您使用...
SalesforceMobileSDK-iOS, 面向iOS应用的Force.com 移动 SDK 用于iOS的 Salesforce.com 移动 SDK你已经到达了 Salesforce Mobile SDK的源代码库。 欢迎从我们的2.0版开始,现在有三种方法可以以选择使用移动 SDK: !...
Force.com CI 工具 Gulp 任务,用于以 git 友好的方式将元数据部署到 Force.com 并从 Force.com 刷新元数据。 如何使用 将以下文件复制到 Force.com 项目目录中: 包.json 配置文件 sfpackage.json gulpfile.js ...
Force.com Tips and Tricks
Force.com Toolkit for .NET 为 .NET 开发人员提供了一种使用本机库与照明平台 API 交互的简单方法。 .NET 通用库提供了和。 虽然您可以独立使用 .NET 通用库,但建议您通过工具包之一使用它。 NuGet 包 已发布的...
扩展提供最大化的按钮,以最大化画布面积和出口到图像设施。...//作者:Ajay Singh Hada:http://facebook.com/ajay.hada || http://in.linkedin.com/pub/ajay-hada/10/3a7/379 支持语言:English (United States)