This action might not be possible to undo. Are you sure you want to continue?
02 Sep i 3 Votes
Attachment in Oracle Application
What is attachment in oracle application? The attachments feature in oracle application enables users to link unstructured data, such as images, word-processing documents, spreadsheets, or text to their application data. For example, users can link images to items or video to operations as operation instructions. Where to find an attachment? There is an attachment icon in the oracle application toolbar that indicates whether the Attachments feature is enabled in a form block. When the button is dimmed, the Attachment feature is not available. When the Attachment feature is enabled in a form block, the icon becomes a solid paper clip. The icon switches to a paper clip holding a paper when the Attachment feature is enabled in a form lock and the current record has at least one attachment. Attachment types: An attached document can be: 1] Short Text Text stored in the database containing less than 2000 characters. 2] Long Text Text stored in the database containing 2000 characters or more. 3] Image An image that Oracle Forms can display, including: bmp, cals, jfif, jpeg, gif, pcd, pcx, pict, ras, and tif. 4] OLE Object An OLE Object that requires other OLE server applications to view, such as Microsoft Word or Microsoft Excel. 5] Web Page A URL reference to a web page which you can view with your web browser. Tables Involved: For Importing Attachments in oracle application one has to populate following tables. 1. FND_DOCUMENTS 2. FND_ATTACHED_DOCUMENTS 3. FND_DOCUMENTS_TL
Images and OLE Objects cannot be used as templates. where 1=stored in the database.4. image. The document can be referenced by many application entities and changed only in the define document form (USAGE_TYPE=S). FND_DOCUMENTS: FND_DOCUMENTS stores language-independent information about a document. Each row includes the document identifier. and storage type (STORAGE_TYPE. Each row contains foreign keys to FND_DOCUMENTS and FND_DOCUMENT_ENTITIES. or it can be used only one time (USAGE_TYPE=O). where 1=Organization. or 4). 4=OLE object). and an identifier (MEDIA_ID) of the sub-table in which the document is saved (FND_DOCUMENTS_SHORT_TEXT. for each category there will be one record with the same CATEGORY_ID and CATEGORY_NAME for each language. image type. the period in which the document is active. Initial values are: short text. . 3=image. and OLE Object (DATATYPE_ID=1. where each time you use a template. FND_DOCUMENTS_TL: FND_DOCUMENTS_TL stores translated information about the documents in FND_DOCUMENTS. 2. For example. the method of security used for the document (SECURITY_TYPE. the language the row is translated to. the file in which the image is stored. the description of the document. 2=stored in the file system). 5. There is also a flag to indicate whether or not an attachment was created automatically. 3. you make a copy of it (USAGE_TYPE=T). a record may link a document to a sales order or an item. 8. where 1=short text. FND_DOCUMENTS_SHORT_TEXT (Short text type attachment). The table uses a ³duplicate record´ model for handling multi-lingual needs. it can be used as a fill-in-the-blanks document.4=None). a category identifier. 3=Business unit. FND_DOCUMENT_DATATYPES. or FND_DOCUMENTS_LONG_RAW). FND_LOBS (File type attachments). FND_DOCUMENT_CATEGORIES 6. FND_DOCUMENTS_LONG_RAW 9. Other specifications in this table include: datatype (DATATYPE_ID.2=Set of Books. For example. long text. FND_DOCUMENT_DATATYPES: FND_DOCUMENT_DATATYPES stores the document datatypes that are supported. FND_DOCUMENTS_LONG_TEXT. FND_DOCUMENTS_LONG_TEXT (Long text type attachment). That is. FND_ATTACHED_DOCUMENTS: FND_ATTACHED_DOCUMENTS stores information relating a document to an application entity. each row contains a document identifier.2=long text. Customers can add datatypes to handle documents stored outside of Oracle and use non-native Forms applications to view/edit their documents. 7. and a flag to indicate whether or not the document can be shared outside of the security type (PUBLISH_FLAG).
. for each document entity there will be one record with the same DOCUMENT_ENTITY_ID and DATA_OBJECT_CODE for each language. Since the table uses a ³duplicate record´ model for handling multi-lingual needs. FND_DOCUMENTS_SHORT_TEXT: FND_DOCUMENTS_SHORT_TEXT stores information about short text documents. 03 FDAT.FND_DOCUMENT_CATEGORIES: FND_DOCUMENT_CATEGORIES stores information about the categories in which documents are classified. ³WIP Job Comments´. 04 FDCT. Document categories are used to provide a measure of security on documents. attachments can be linked to Items. etc.SEQ_NUM "Seq Number". For example. FND_DOCUMENTS_LONG_RAW: FND_DOCUMENTS_LONG_RAW stores images and OLE Objects.USER_NAME "Data Type". Queries: 1] To find all Long Text attachments: view source print? 01 SELECT 02 FAD. in the database. Each form that enables the attachment feature lists which categories of documents can be viewed in the form. Sales Orders. 05 FAD.ATTACHED_DOCUMENT_ID "Attached Document Id". FND_DOCUMENT_ENTITIES: FND_DOCUMENT_ENTITIES lists each entity to which attachments can be linked. For example.USER_NAME "Category User Name". such as Word Documents and Excel spreadsheets. etc. FND_DOCUMENTS_LONG_TEXT: FND_DOCUMENTS_LONG_TEXT stores information about long text documents. This table uses a ³duplicate record´ model for handling multi-lingual needs. documents may be considered ³Bill of Material Comments´.
TITLE "Title".URL "Url". 08 FAD.06 FDET.DOCUMENT_ID "Document Id". 17 FND_DOCUMENTS FD. 16 FND_DOCUMENTS_TL FDT.MEDIA_ID "Media Id".USER_ENTITY_NAME "User Entity". 19 FND_ATTACHED_DOCUMENTS FAD. 11 FDT. 18 FND_DOCUMENT_CATEGORIES_TL FDCT. 12 FDLT.ENTITY_NAME "Entity Name". 09 FD. 15 FND_DOCUMENT_ENTITIES_TL FDET.LONG_TEXT "Attachment Text" 13 FROM 14 FND_DOCUMENT_DATATYPES FDAT. . 07 FD. 10 FD.
DATATYPE_ID 26 AND FAD.SEQ_NUM "Seq Number".20 FND_DOCUMENTS_LONG_TEXT FDLT 21 WHERE 22 FD. 2] To find all Short Text attachments: view source print? 01 SELECT 02 FAD.DOCUMENT_ID 24 AND FDCT.ENTITY_NAME = FDET.DOCUMENT_ID = FD. .DATA_OBJECT_CODE 27 AND FDLT.DOCUMENT_ID = FAD.USER_NAME "Data Type".MEDIA_ID 28 AND FDAT.CATEGORY_ID = FD.CATEGORY_ID 25 AND FD.DOCUMENT_ID 23 AND FDT.MEDIA_ID = FD.NAME = 'LONG_TEXT'. 03 FDAT.DATATYPE_ID = FDAT.
15 FND_DOCUMENT_ENTITIES_TL FDET. 10 FD.URL "Url".04 FDCT. 17 FND_DOCUMENTS FD.MEDIA_ID "Media Id". 11 FDT. 09 FD. 08 FAD.USER_ENTITY_NAME "User Entity".SHORT_TEXT "Attachment Text" 13 FROM 14 FND_DOCUMENT_DATATYPES FDAT.TITLE "Title". 16 FND_DOCUMENTS_TL FDT. 07 FD. 06 FDET.ATTACHED_DOCUMENT_ID "Attached Document Id".USER_NAME "Category User Name". 05 FAD.ENTITY_NAME "Entity Name". .DOCUMENT_ID "Document Id". 12 FDST.
CATEGORY_ID = FD. 19 FND_ATTACHED_DOCUMENTS FAD.NAME = 'SHORT_TEXT'.MEDIA_ID 28 AND FDAT.DATATYPE_ID 26 AND FAD.DOCUMENT_ID = FD.DATA_OBJECT_CODE 27 AND FDST.ENTITY_NAME = FDET. 20 FND_DOCUMENTS_SHORT_TEXT FDST 21 WHERE 22 FD.MEDIA_ID = FD. Attachment upload through API: Attachments can also be uploaded through an oracle provided API called FND_ATTACHED_DOCUMENTS_PKG. It consist of three procedures 1) Insert Row 2) Update Row 3) Lock Row .DOCUMENT_ID 23 AND FDT.DOCUMENT_ID = FAD.CATEGORY_ID 25 AND FD.18 FND_DOCUMENT_CATEGORIES_TL FDCT.DATATYPE_ID = FDAT.DOCUMENT_ID 24 AND FDCT.
Names of these procedures are self explanatory. update row is used to update existing row for a particular row and Lock Row is used to lock a existing row for further modification. . insert row is used to insert a new row for attachment data.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue reading from where you left off, or restart the preview.