Selected Document Type
In the previous article (http://blog.sankaranss.com/2016/12/19/attachment-folder-in-custom-bo/), we learned about How to attach a document in custom BO.
Here, we are going to learn how to control document type in attachment folder.
- Open a screen in UI Designer which you added Embedded component.
For more information about the Attachment folder creation, visit http://blog.sankaranss.com/2016/12/19/attachment-folder-in-custom-bo/.
- Configure as shown in below screenshot.
- Choose your embedded component.
- Click three dots next to the AddableType from properties.
- The AddableTyps Collection Editor dialogue box will open.
In the dialogue box,
a. Click Add Button
b.Enter your custom name for the document type
c.Enter the Type code.
You can find your type code in the Repository Explorer as shown in the below screenshot.
Some Important type codes are,
Choose type code as Static Method
Enter the Type code into constant value the constant value text field as shown in the screenshot.
Ex: 10013 for Image
Choose type code as Dynamic Method
Choose the dynamic field form data model in TextPool-Reference as shown in the screenshot.
Finally, your window will look like, (Example, Static Type, Image 10013)
- Navigate to your screen, where the embedded component has been added.
- Click Add button. Add File dialogue box will open.
- In Document Type, Choose your document.
Display selected Documents in Front End
- Go back to the UI Designer, Choose Display Type from Property window.
- Enter the Type code, which you need to display on front end.
For more information: http://blog.sankaranss.com/2017/01/18/selected-document-type/
For more information about SAP Business ByDesign: Click Here
We have seen about how to control document type in attachment folder, and in the future article, we will learn more about it. Don’t forget to subscribe my blog (http://blog.sankaranss.com) and leave your comments to improve this article.