当前位置:网站首页>Attachment handling of SAP Fiori
Attachment handling of SAP Fiori
2022-07-25 16:24:00 【Jerry Wang】
With SAP CRM Fiori Application, for example . Attachment processing has two levels , That is to say Fiori UI Show attachments on ( Read operation ), And by Fiori UI Create attachments ( Write operation ).
Attachment The read
As shown in the figure below , Click any Attachment Hyperlinks ,
That is, automatically open the browser download window .
It's time to OData Corresponding implementation system , such as AG3 backstage , Things code SEGW, open CRM_OPPORTUNITY OData project , Create a file called Opportunity_Attachments Of association, Point to a name OpportunityAttachment Of Dependent Entity.
Opportunity and OpportunityAttachment The relationship between models is 0:n, That is, a Opportunity It's not allowed to attachment, Multiple attachment.
Attachment Model fields for :
We can do it in AG3 To set breakpoints , debugging attachment Read requests for :
Fiori UI Put what you want to read attachment The instance information passes through SAP UI5 Pass the code to the background ABAP:
Last call CL_CRM_OPPORTUNITY_DPC_EXT~GET_STREAM Methods from AG3/001 Read attachment data on the system :
Fiori The front desk is S3.view.xml It uses UploadCollection Control to display attachments .
When Attachment When the tab is clicked , Trigger attachmentsTabSelected Method :
In this method , Manual call OData API Initiate reading data to the background OData request :
var info = this.getView().byId('info');
var headerGuid = info.getModel('json').getData().Guid;
var oModel = this.oModel;
var sPath = this.sPath;
// get the list to set the post url param
var that = this.getView();
oModel.read(sPath, null, [
"$expand=Attachments"
], true, jQuery.proxy(function(odata, response) {
var data = {
OpportunityAttachments: []
};
var length = response.data.Attachments.results.length;Attachment The creation of
Click on + Icon , Choose a file to upload locally :
SAP UI5 Control can display the uploaded progress bar :
Trigger the background CL_CRM_OPPORTUNITY_DPC_EXT~CREATE_STREAM Method :
CREATE_STREAM Method to create a flow ( Media resources ) And corresponding entities ( Media link entries ). Additional information can be found in Slug In the head . The layout of creating media link entries is performed first HTTP Post, It only contains binary data . Be careful , It is not allowed to publish the item itself first , Then release relevant media resources . be based on Slug head , Developers can pass additional information to the server , for example , The server can be used to store binaries ( Media resources ) And create entities ( Media link entries ) Created framework . Newly created entity ( Media link entries ) stay HTTP The response is sent back to the user , The response can be updated with appropriate data . The updated entry will be in HTTP Put Send to SAP NetWeaver Gateway System , To complete the creation of media resources / The process of media link entries .
边栏推荐
- MyBaits
- 阿唐的小帮手
- Wechat applet does not use plug-ins, rendering videos in rich text, image adaptation, plus version
- Use huggingface to quickly load pre training models and datasets in moment pool cloud
- MySQL页锁
- Verifiable random function VRF
- Mysql读写锁
- Cookie、cookie与session区别
- 自定义mvc项目登录注册和树形菜单
- ILSSI认证|六西格玛DMAIC的历程
猜你喜欢
![[image denoising] image denoising based on bicube interpolation and sparse representation matlab source code](/img/39/716c62d6ca533a7e84704b2c55d072.png)
[image denoising] image denoising based on bicube interpolation and sparse representation matlab source code

自定义mvc项目登录注册和树形菜单

Verifiable random function VRF

Use huggingface to quickly load pre training models and datasets in moment pool cloud
![[zeloengine] summary of pit filling of reflection system](/img/7a/c85ba66c5dd05908b2d784fab306a2.png)
[zeloengine] summary of pit filling of reflection system

狂神redis笔记12

Quickly deploy mqtt clusters on AWS using terraform

Fastadmin TP installation uses Baidu rich text editor ueeditor

新增批量删除

How to build an enterprise level OLAP data engine for massive data and high real-time requirements?
随机推荐
MYSQL导入sqllite表格的两种方法
记得那两句话
doGet与doPost
Cookie、cookie与session区别
fastadmin tp 安装使用百度富文本编辑器UEditor
Sum arrays with recursion
Mqtt x cli officially released: powerful and easy-to-use mqtt 5.0 command line tool
MySQL页锁
Save the image with gaussdb (for redis), and the recommended business can easily reduce the cost by 60%
Simple rotation map and hamster beating
进程之间的通信(管道详解)
Various useful forms of London Silver K-line chart
Communication between processes (pipeline details)
pymongo保存dataframe格式的数据(insert_one, insert_many, 多线程保存)
Visual studio 2022 view class diagram
2W word detailed data Lake: concept, characteristics, architecture and cases
Exclusive lock
01.一个更简单的方法来传递大量的props
ILSSI认证|六西格玛DMAIC的历程
Upgrade esxi6.7.0 to 7.0u3f (updated on July 12, 2022)