0% found this document useful (0 votes)
65 views

What Is The DBC File

The document discusses storing attachments in custom Oracle Application Framework (OAF) tables rather than the default FND_LOBS table. It provides steps to create an entity object (EO) based on a custom table with a BLOB column to store file data. A view object (VO) is created from the EO. Pages are created - one to display attachments and allow uploading new ones using a messageUpload bean, and another upload page containing the bean.

Uploaded by

Nageswara Reddy
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views

What Is The DBC File

The document discusses storing attachments in custom Oracle Application Framework (OAF) tables rather than the default FND_LOBS table. It provides steps to create an entity object (EO) based on a custom table with a BLOB column to store file data. A view object (VO) is created from the EO. Pages are created - one to display attachments and allow uploading new ones using a messageUpload bean, and another upload page containing the bean.

Uploaded by

Nageswara Reddy
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

8. What is the DBC File?

The DBC(Database Connection) file contains all the required information to connect oracle apps from Jdev. This file can be found in $FND_SECURE top or $FND_TOP/secure folder. The DBC file name will be in the format of $FND_SECURE/<two_task>.dbc and $FND_SECURE/<database host name>_<two_task>.dbc. We need to use $FND_SECURE/<database host name>_<two_task>.dbc file in our Jdev connection entries. Comment out entry APPS_JDBC_URL from dbc file if its not commented.

Oracle Application Framework OAF Attachment Storing in Custom Tables


Most of the Oracle Application Framework(OAF) based pages contains attachments. OAF has provided a vanilla attachment bean which helps us to add the attachment functionality to our OAF pages. The drawback of using oracle provided attachment bean is the attached file is always stored in FND_LOBS table. In most of the customizations we need to store the attached file in a custom table. Using the below steps we can store the attached file in a custom table.

Steps to implement attachments in OAF

1. Create an OAF entity object based on the custom database table. The database table should contain a BLOB type of column where we will store our JPG/Txt attachment file. In the attached example the EO name is EmployeeEO. The columns of the EO are as below: FileData: Attribute/Column name of the BLOB column

FileName: This column will store the file name

2. Create a new OAF view object(EmpAttchLogoVO) from the existing EO EmployeeEO. This VO will contain say three columns Filename, FullName and EmployeeId.

3. Create a PG file(EmpUpdatePG.xml). This page will be used as main page. Create a Stack Layout Region. Create a table type of region on the above region. Add required columns with FileName, and Delete image as mandatory. Add a Submit Button item type. Rename to Add Attachment. This will give same look feel of the add attachment bean and table layout of AttachmentTableBean. FileName will be item type of messageDownload Set the property of messageDownlaod : View Instance: EmpAttchLogoVO instance Name View Attribute: Attribute of the File Name in the database table. Not the BLOB column(FileName in current example). File View Attribute: attribute name of the BLOB column. In our example its FileData 1. Create a new PG file EMPAttachPG. This PG file be used as file upload page. Add a messageUpload bean. Set the view name to View instance name of Messageupload bean (EmpAttchLogoVO1). Attribute name will same as BLOB attribute(FileData). Set the Data type will be BLOB. 2. On click of the add attachment button we need to call a new page EMPAttachPG. This page will contain the messageUpload bean which will upload the logo file. Once click on the apply button of the EMPAttachPG we will return the control to the parent main PG.

//For Attachment Region Code Required -Start if (pageContext.getParameter("AddAttach") != null) { pageContext.forwardImmediately("OA.jsp? page=/mycompany/oracle/apps/ak/employee/webui/EMPAttachPG", null, OAWebBeanConstants.KEEP_MENU_CONTEXT, null, null, true, // retain AM OAWebBeanConstants.ADD_BREAD_CRUMB_NO); } //For Attachment Region Code Required -END

You might also like