Selected Document Type

Posted on Posted in SAP Business ByDesign
Overview

In the previous article, 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.

selectdoctype


Save this article as PDF?


Process flow

  1. 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/.
  2. 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.

selectdoctype

In the dialogue box,

a. Click Add Button

b.Enter your custom name for the document type

c.Enter the Typecode.

selectdoctype

You can find your type code in the Repository Explorer as shown in the below screenshot.

selectdoctype

Some Important type codes are,

Type Code Description
10001 Standard Attachment
10013 Image
10006 Certificate
10021 Job Description

Save this article as PDF?


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

selectdoctype

Choose type code as Dynamic Method

Choose the dynamic field form data model in TextPool-Reference as shown in the screenshot.

 

selectdoctype


Finally, your window will look like, (Example, Static Type, Image 10013)

selectdoctype


Testing

  1. Navigate to your screen, where the embedded component has been added.
  2. Click Add button. Add File dialogue box will open.
  3. In Document Type, Choose your document.

selectdoctype


Save this article as PDF?


Display selected Documents in Front End

  1. Go back to the UI Designer, Choose Display Type from Property window.
  2. Enter the Typecode, which you need to display on front end.

selectdoctype


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 and leave your comments to improve this article.

Do you want to download this article?

2 thoughts on “Selected Document Type

  1. I must say it was hard to find your site in google.
    You write great articles but you should rank your
    website higher in search engines. If you don’t know how to do it
    search on youtube: how to rank a website Marcel’s way

Leave a Reply

Your email address will not be published. Required fields are marked *