Force.com 云计算平台 试玩小结(一)
简介:
salesforce.com 包括 Salesforce CRM (Customer Relationship Management 客户关系管理 )和 Force.com 平台 (业界领先的云计算平台 )。
基础知识: (可以先学教程,到最后看基础知识)
理解Adobe Flash Builder 在创建 Force.com 程序时的数据管理
http://www.riameeting.com/node/471
教程:
- 使用Force.com下的Flash Builder构建桌面应用(简介) http://www.riameeting.com/node/512
- Force.com Workbook(附件下载)系统学习强烈推荐
- Developer Guide(附件下载)
第一部分:配置salesforce.com数据
1. 所有的类型名:自定义->客户->字段
You would access this field using the API in a Force.com Flex
application as Account.Name
.
2. 表名:创建->对象
It has a value of Merchandise__c
. This is the name you will use
to access it using the API
in your Force.com Flex application. All custom
objects are identified by a suffix of two underscores immediately followed by a
lowercase "c"
character.
3. 不能上传文件,只能使用text保存路径字符串
At this time, salesforce.com does not have a
File data type
for which you can upload
the associated file. There is, however,
a URL data type that you can use to specify an external URL where you would
then have to go manually store the image.
4. 字段名
It has a value of Total_Inventory__c
. The field names for custom
fields are also appended by __c
just like the API names for custom objects.
5. 创建一个Tab:创建->选项卡
Create a salesforce.com tab
6. 增加表记录
(基于步骤5
)
Enter Merchandise data
7. 查看表的所有记录
To view all records
(which will match the
recent records at this time), click the Go! button
next to View All.
8. 离线公文包配置
(Set up an offline briefcase
)
选择一个Available User
和一组数据集
,我们所创建的桌面应用程序所能访问的数据仅限于
离线公文包里的数据集。
9. 生成一个企业WSDL:应用程序设置->发展->API
(Generate a WSDL)
You must generate an Enterprise WSDL (not the Partner of one of the
other WSDLs) because only the Enterprise WSDL
contains the details
for
accessing your custom objects
and creates
strongly typed objects
representing records in your database tables.
- 你需要生成WSDL(Web服务描述语言)文件,该文件包含你的应用程序通过网络服务需要实际访问的数据信息 。
- 只有Enterprise WSDL能创建强类型 对象,代表在你的数据库表中的记录 。如果你使用自定义对象 ,同样也只有WSDL会包含 用于访问自定义对象的详细信息 。
- 如果在数据集中包含有任意自定义对象 ,你必须在创建WSDL之前创建脱机公文包 ,因为WSDL生成时将包含所有标准对象 的交互细节,但只有自定义数据 对象在脱机公文包中需要指定 。
10. 授予访问数据权限 (Grant permission to access data )
- 启用离线模式 :个人设置->我的个人信息(Enable user offline access)
- 获取安全标记 ,用于桌面应用远程登录force.com云服务时使用 :个人设置->我的个人信息->重新设置我的安全标记(Get a security token (if you do not have a static IP address))