Tuesday, June 29, 2010

Add Attachment Functionality to Price List Form

Introduction

In Oracle 11i and R12, adding attachment functionality (the "paper clip" icon in the menu bar) to a particular Form is actually pretty complex since this functionality is a generic mechanism and it can be used in different kind of scenario.  In here I present an example of adding this functionality to the Price List Form. You can also look through data in the following tables to see how the data is stored:
FND_DOCUMENT_ENTITIES
FND_ATTACHMENT_BLK_ENTITIES
FND_ATTACHED_DOCUMENTS
FND_ATTACHMENT_BLOCKS
FND_ATTACHMENT_FUNCTIONS
FND_FORM_FUNCTIONS
FND_FORM


Steps

Responsibility: Application Developer


Navigation: Attachments -> Document Entity

(1) Add a new Document Entity:

TableQP_LIST_HEADERS_B
Entity IDQP_LIST_HEADERS
Entity NameQP Price List Header
PromptQP Price List Header
ApplicationAdvanced Pricing

Navigation: Attachment -> Attachment Functions


(2) Enter a new attachment function:
TypeForm
NameQPXPRLST

Click "Categories" Button



Add a Category to this Attachment Function
Save and then close the Categories window. Go back to Attachment Function window and Click "Blocks" button.

(3) Add Block Declaration
Block NamePRICE_LIST
Secured ByNone
Click "Entities" Button


(4) Add Entity Declaration - Privileges Tab
EntityQP Price List Header
Include in IndicatorChecked





(5) Add Entity Declaration - Primary Key Fields
Key 1PRICE_LISTS.LIST_HEADER_ID

(6) Go back to Price Lists Form and the "paper clip" icon is activated

1 comment :

kkerig said...

I have a question regarding something similar. I would like to add the attachment feature that already exists for Order Management into another form. The OM header_id is available in the other form.

Thanks,
Rogers