Force.com 雲計算平臺 試玩小結(一)

簡介:

salesforce.com 包括 Salesforce CRMCustomer Relationship Management 客戶關係管理 )和 Force.com 平臺 (業界領先的雲計算平臺 )。

 

基礎知識: (可以先學教程,到最後看基礎知識)

理解Adobe Flash Builder 在創建 Force.com 程序時的數據管理

http://www.riameeting.com/node/471

 

教程:

  • 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))
發佈了82 篇原創文章 · 獲贊 0 · 訪問量 5407
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章