当前位置:网站首页>Attachment handling of SAP Fiori
Attachment handling of SAP Fiori
2022-07-19 13:09:00 【51CTO】
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 :
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 .
边栏推荐
- 音频控制常见BUG注意事项
- Advanced C language -- character function and string function
- CMOS switch learning (I)
- 标签球问题
- [pyGame learning notes] 6 Cursor mouse cursor
- 逻辑运算符1(阁瑞钛伦特软件-九耶实训)
- AE how to make Nebula particle special effects
- Wrong again, byte alignment and the use of pragma pack
- Method of converting video format to ffmpeg and exporting GIF dynamic graph
- 音频常见端子剖析图---再也不会搞错了
猜你喜欢

jvm自学总结

力扣70-爬楼梯——动态规划

MatrixCube揭秘 101——MatrixCube的功能与架构

LeetCode 0117. Populate the next right node pointer II of each node

JS operation string string string

JVM self study summary

使用case语句时会产生锁存器的情况

How to invest scientifically and rationally when the global financial crisis strikes? 2020-03-17

C语言进阶——自定义类型:结构体 枚举 联合

Ultrasonic sensor (ch101 & ch201) - I
随机推荐
LeetCode 0565. Array nesting: convert to graph + modify in place の optimization
[pyGame learning notes] 7 event
Advanced C language -- character function and string function
RingBuffer
Useeffect summary
jvm自学总结
力扣413-等差数列划分——动态规划
[C language programming 7] BTB model
2022全球开发者薪资曝光:中国排第19名,平均年薪23,790美元
About the "bottom reading" mentality, it makes you exhausted 2020-03-15
Go unit test
Is it safe for Everbright futures to open an account online? Are there any account opening guidelines?
2022 global developer salary exposure: China ranks 19th, with an average annual salary of $23790
Review the 2008 financial crisis and become a long-term investor 2020-03-19
sqli-labs(less-11)
MOF customized product | n-k2ti4o9/g-c3n4/uio-66 ternary composite | paper based au-aginse2-zif-8 Nanocomposite
[pyGame learning notes] 5 Collision detection of rect objects
MatrixCube揭秘 101——MatrixCube的功能与架构
XML modeling (easy to learn)
Arbitrum Nova release! Create a low-cost and high-speed dedicated chain in the game social field