标签:自定义 BO step custom How Step attachment C4C
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
- How to render PDF which displays picture from the image attachment of your custom BO
- How to get current logged on business user’s employee information and assigned organization unit via ABSL
- How to implement dynamic access control based on custom BO using OWL
- How to make Code List Restriction work when control field and restricted field are not on the same BO
- How to implement custom number range using custom business object
- Two approaches to create Code List in Cloud Studio
- Create Dynamic Code List via Custom Business Object Association
- Step by step to develop Thing Type based navigation and BO Object based navigation
- Put Extension field into embedded component and make it visible in Standard UI
- One possible cause that embedded component fails to display in UI
- Step by step to create HTML Mashup and make it visible in UI
- Step by step to enable Text Collection for your custom BO
- Automatically send an Email notification to line manager via Workflow in Account application
- Step by step to create Object Value Selector in Cloud Application Studio
- Two approaches to fill an UI field with dedicated logic implemented in Cloud Application Studio
- How to execute BO action on multiple selected BO instances in AdvancedListPane
Requirement
You have created your custom BO with attachment upload functionality available via this blog Step by step to enable your custom BO with attachment upload functionality.
And now you have successfully uploaded two images as attachment to a given BO instance:
You would like that once preview button is pressed, the PDF will be generated which display these two images from uploaded attachment.
The rendered PDF looks as below:
This requirement just needs a few enhancement on the form template itself, whose development is already introduced in blog Step by Step to create an Adobe Print form in Cloud application Studio.
(1) Open the form template via Adobe Form Designer, menu File -> Form Property:
Set PDF Render Format as Dynamic XML Form:
(2) Select your body page and set the Content property as “Flowed” instead of “Positioned”:
(3) Drag a table control from control toolbox, select table header node and DO NOT bind any BO nodes to it.
Select table row node, bind it to path: $.TestBO.Attachment.DocumentList[*] and mark the checkbox “Repeat Row for Each Data Item”:
Select the last column field in table row, change its type for Text Field to Image Field:
And use relative binding to bind its path to the corresponding BO field BinaryObject which stores the binary data of an attachment.
After that in the runtime when the PDF is rendered, the table row will automatically be created based on the number of uploaded images as attachment, this behavior is called as “Data Driven Layout process”.
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
标签:自定义,BO,step,custom,How,Step,attachment,C4C 来源: https://www.cnblogs.com/sap-jerry/p/13585965.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。