關於元件上傳檔案:
a.用document物件來接:
*需要為document指定乙個folderid
b.用attachment物件來接:
*需要為attach指定乙個parentid
page:
controller:
public class personalattachmentcontroller{
c.用content物件來接:
*content<===>contentversion
此物件可以手動建立,versiondata欄位,必須指定。pathonclient欄位跟另外一欄位二選一指定。
contentworkspace 與 contentworkspacedoc
子類中查父類:
select id, isowner, createddate, contentworkspace.id, contentworkspace.name from contentworkspacedoc
父類中查子類:
不支援。
contentdocument 與 contentworkspacedoc
子類中查父類:
select id, isowner, createddate, contentdocumentid, contentdocument.title from contentworkspacedoc
父類中查子類:
不支援contentdocument 與 contentversion
子類中查父類:
select id, versionnumber, title, description, filetype, contentsize, islatest from contentversion
父類中查子類:
select id, title, (select versionnumber, title, description from contentversions) from contentdocument c
opportunity 與 contentversion
子類中查父類
select versionnumber, title, description, reasonforchange, ownerid, tagcsv, filetype, contentsize, opportunity__r.name from contentversion
父類中查子類
select o.name, (select versionnumber, title, description, reasonforchange, ownerid, tagcsv, filetype, contentsize from content__r) from opportunity o
contentworkspace:
select c.tagmodel, c.systemmodstamp, c.name, c.lastmodifieddate, c.lastmodifiedbyid, c.isrestrictlinkedcontenttypes, c.isrestrictcontenttypes, c.id, c.description, c.defaultrecordtypeid, c.createddate, c.createdbyid from contentworkspace c
建立contentworkspacedoc物件時(為當前content指定存放library.),需要contentdocumentid, contentdocumentid兩個required fields.
contentworkspacedoc contentdoc = new contentworkspacedoc();
contentdoc.contentdocumentid = '06990000000nwlkaaq';
contentdoc.contentdocumentid = '05890000000ctnxaai';
insert contentdoc;
在乙個新的環境中,用content等物件:set up ==> build ==> customize ==> salesforce crm content ==> settings,先設定。再在user物件中的receive salesforce crm content email alerts, receive salesforce crm content alerts as daily diges三個核取方塊,設定為true狀態。
本文出自 「prodigal_k」 部落格,請務必保留此出處
linux中資料夾中檔案排序顯示
在檢視linux檔案的時候,大家都習慣用ls 命令來對進行檢視。ls的引數很多,這裡就不一一說明了,有興趣的直接在控制台 ls help 可以看到所有資訊。資料夾中檔案多的時候,大家就會想到要排序了。排序的話在ls 命令中使用的是 t c u引數。敲入ls help 命令檢視說明 c with lt...
struts中檔案上傳
struts本身對檔案上傳進行了支援.在struts config.xml中進行配置 form bean name upfileform type org.apache.struts.action.dynaactionform form property name upfile type org.a...
LINUX中檔案描述
對於linux作業系統來說,它是以檔案為基礎而設計的,即一切操作皆檔案。linux的檔案子系統主要用於管理檔案儲存空間的分配 檔案訪問許可權的維護 對檔案的各種操作。檔案主要包含兩方面的內容 一是檔案本身所包含的資料 另一是檔案的屬性,也稱元資料,包括檔案的訪問許可權 所有者 檔案大小 建立日期等。...