Implementation of add-on functions in EBS form development (5)

Source: Internet
Author: User

Implementation of add-on functions in EBS form development (5)

(Copyright notice, I original or translated articles for reprint, such as reprinted for Personal learning, please specify the source; otherwise please contact me, the offender must investigate)

Continue using the last created form and add an attachment feature to it. In the EBS form development implementation of the attachment function is very simple, do not write any code can be implemented, the basic steps are as follows.

1. Design implementation form (and attachment independent).

2. Add Document Entity via applicationdeveloper->attachments->document entities, which is optional if you are not adding attachments to the current table. Each attachment corresponds to the primary key of the entity's table.

3. Maintenance of Category,category through applicationdeveloper->attachments->document categories primarily for security considerations, For example: PO on invoice related attachments can be placed in the payable classification, so that only access to payable form or function can be placed invoice, Other function can not access these attachments as long as they do not have access to the payable classification, if you want to use the existing classification, this step is optional.

4. Applicationdeveloper->attachments->attachment functions to bind form/function, Entity, category by configuration.

For a simple example, the following steps are required:

1. Adding vendor_id fields to the previous resulltsblock and adjusting the corresponding canvas is only used to correlate po_vendors entity-related attachments, nothing special.

2. Save the changes, upload to the server corresponding directory, and then compile.

3. Add Document Entity through applicationdeveloper->attachments->document entities, as we use the Rcv_transactions table, There are already defined entities that you do not need to define, and here you use these two entities, as shown in the following illustration. The entity is actually very simple, just corresponding to that table.


4. Define a new category by Applicationdeveloper->attachments->document categories.


5. Applicationdeveloper->attachments->attachment functions to bind form/function, Entity, category together through configuration, Select function here, then select the function name corresponding to our form. can also form type, in fact, are similar.


6. Click on the Categories button to define the type of attachment that can be accessed within this function, select our new category and Misc type.


7. Click Block to bind the block to the form/function, and so on, our form has only resullts this block, all the blocks are filled in. Security and context settings can be set as needed. Leave it blank.


8. Click Entities, respectively, the relevant item on the block binding to the corresponding entity, first add RCV Transaction this entity, privileges page signing settings are as follows, indicating that the block allows for the addition of this entity, delete, Update and query attachments. It is only possible to manipulate the attachment of this entity only if the resullts.transaction_id on the block is not empty.


9. Click Primary keyfields to indicate which field the entity's primary key corresponds to on the block, here is resullts.transaction_id.


10. Then add the supplier entity, because our form is not a maintenance supplier, so for this entity, we only query and when resullts.vendor_id is not empty.


The primary key of the supplier entity corresponds to the resullts.vendor_id.


12. Save the settings, open the form we created, click on the attachment icon, we can see the corresponding supplier two accessories.


13. We add a new attachment, the point added, we can only for RCV transaction entity new, type we select previously defined type, as follows.


14. Save our attachment and check our new attachment to the View receivingtransactions form, but we will find no attachments at all. That's because the form doesn't contain our new definition of category. For supplier attachments, the form does not have supplier Entity set at all. So we don't see any attachments.


15. We add our new category to the Attachmentfunction form for the View receivingtransactions form.


16. Then open the View receivingtransactions form, select the rcvtransaction that we added the attachment, and click on the attachment feature, and we can see the attachment I added earlier.


The attachment function on the personal feel form is powerful, with simple configuration and an add-on function without coding, and security controls that can easily be shared between different form.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.