如何讓SAP C4C自定義BO實現附件上傳的功能
My series of Cloud Application Studio Blogs
- How to detect EditMode in an Embedded Component
- Step by step to enable your custom BO with attachment upload functionality
- Step by step to create an Adobe Print form in Cloud application Studio
I began to learn how to use Cloud Application Studio today and I record what I have learned into this blog regarding how to enable attachment upload functionality for my custom BO. (1) Create a new BO for example TestBO by copying the following source code in Cloud studio and activate it. Here an association to depedent object AttachmentFolder is declared.
import AP.Common.GDT as apCommonGDT;businessobject TestBO {[Label("Agreement ID")] [AlternativeKey] element AgreementID:ID;
[Label("Start Date")] element StartDate:Date;
[Label("Close Date")] element CloseDate:Date;
[DependentObject(AttachmentFolder)] node Attachment;}
(2) Create all necessary UI screens via wizard by right clicking the created BO and choose “Create Screens” from context menu. Once done you should have several automatically created artifacts as displayed below.
(3) Assign your business user to the created work center floorplan and after you log on the system, you should see the below OWL with only one “Export” button existing in toolbar. Without New button it is not possible for us to create some test data. As a result we have to create the New button manually.
Open the OWL in UI Designer, select the toolbar in OWL and click “Configure” button in property tab:
Select “My Button” and click the triangle to move it to the right part.
Choose “QuickCreate” as Semantic, and for OnClick property, leave it as blank.
Under Thing Type section, bind the “Associated Thing Type container” to BO ID field.
And then bind this BO ID field to the automatically created Thing Type Object.
Now you could create new BO instance by pressing the New button, and quick create UI will be displayed:
Click the hyperlink and now you can reach the Thing inspector UI.
Remove unused tab and only keep Attachments tab. Locate the document reuse UI from path listed below, drag it from Configuration Explorer and drop to the area of Attachments tab.
Click Bind button, bind Controller root node to the NodeReference Binding under Interface in the right.
Now you could create new attachment file for a given test BO instance.
Once you have created an attachment and successfully saved it, next time you open the Thing inspector UI, you can observe there is a HTTP request which fetches the attachment data from backend.
In the response, the structure fields are exactly mapped to the corresponding fields in attachment DO.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2715819/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 如何啟用SAP C4C自定義BO的Text Collection功能
- 如何將SAP C4C自定義BO中型別為圖片的附件用PDF文件顯示出來型別
- 如何讓你的SAP CRM應用支援附件上傳
- 自定義檔案上傳功能實現方法
- 使用OData服務將SAP C4C自定義BO的TextCollection暴露給外部消費者
- 如何在SAP Cloud for Customer自定義BO中建立訪問控制Cloud
- 如何使用SAP C4C Repository Explorer裡的BO test shell
- SAP MM 給合同的ITEM上傳附件以及附件查詢
- Dynamics CRM中自定義頁面實現附件管理包含下載模板、上傳、下載、刪除
- 實戰|如何使用雲開發實現照片附件上傳開發
- 一種不通過UI給C4C自定義BO建立測試資料的方式UI
- 如何實現SAP GUI的自定義語法檢查(Syntax check)GUI
- 如何在SAP C4C AdvancedListPane上批量執行若干BO例項的action
- 自定義事件實現子傳父事件
- SAP Spartacus 自定義Popover指令,如何實現彈出對話方塊自動關閉功能
- 線上教育系統開發中,如何實現作業功能字型自定義?
- vue-自定義指令-實現提示功能Vue
- video自定義實現視訊播放功能IDE
- 淺談如何實現自定義的 iterator
- 如何啟用SAP CRM附件UI上的advanced按鈕UI
- Python進階:自定義物件實現切片功能Python物件
- 如何讓郵附件上雲?分享企業網盤郵附件管理方案
- 使用自定義 Query 實現 SAP UI5 頁面路由的書籤功能試讀版UI路由
- Ant-Design-Vue 自定義上傳和圖片預覽功能Vue
- EventSource的自定義實現
- mysql使用自定義序列實現row_number功能MySql
- 如何自行給指定的SAP OData服務新增自定義日誌記錄功能
- Spring核心思想之 AOP:在自定義容器基礎上實現AOP功能Spring
- 教你如何實現c#檔案上傳下載功能C#
- .net web core 如何編碼實現檔案上傳功能Web
- Vue + Element 自定義上傳封面元件Vue元件
- Docker自定義映象上傳阿里雲Docker阿里
- 如何阻止指定型別的SAP CRM附件被上傳到伺服器型別伺服器
- SAP C4C裡如何實現Sales Unit和Seller的自動determination
- 如何實現 axios 的自定義介面卡 adapteriOSAPT
- 淺談如何實現自定義的 iterator 之二
- 自定義限速功能實踐——Caffeine
- Teamcenter 流程配置實現《部分發布功能附件》