What Is The DBC File
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.
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
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