Tuesday, April 21, 2015

Exporting Data from ADF Table

Exporting Data from ADF Table


In this post we shall look at how to export data from an ADF table.To export data from an ADF table we shall use an export collection action listener from the operations component panel of ADF Faces.

General steps which i followed to export data from ADF Table declaratively.

  • Inside a Layout container had a panel collection component
  • Under this layout container have a panel collection component used
  • Inside the panel collection dropped an read only ADF table
  • Now we can either use the toolbar facet or menu facet of panel collection component
  • In the current example have used toolbar facet have tried it with menu facet also the steps are the same.
  • Toolbar facet of panel collection drop a toolbar and drop a button into the toolbar, give the button an appropriate text
Inside the button drop an export collection action listener a dialog opens up asking for two mandatory attributes for this listener which are as mentioned below:

i) ExportedId - ID of the component to be exported
ii) type - export type. The only currently supported value is 'excelHTML'

Other optional parameters are
iii) filename - file name for the exported content
iv) title - the title of the worksheet of the exported content
v) exportedRows - rows to include in the exported content

specific reason to use panel collection is to wrap my collection component which is the table as it provides toolbar and menu facets

Note:
Only the following can be exported:

Value of value holder components (such as input and output components).

Value of selectItem components used in selelctOneChoice and selectOneListbox components (the value of selectItem components in other selection components are not exported).

Value of the text attribute of a command component.


Value of the shortDesc attribute on image and icon components.

Following is the sample code snippet of my demo app.

<af:panelStretchLayout id="psl1">
          <f:facet name="center">
            <af:panelCollection id="pc1">
              <f:facet name="menus"/>
              <f:facet name="toolbar">
                <af:toolbar id="t1">
                  <af:commandToolbarButton text="ExporttoExcel"
                                           id="ctb1">
                    <af:exportCollectionActionListener type="excelHTML"
                                                       exportedId="datatoexport"
                                                       filename="Employee"
                                                       title="EmployeeExport"/>
                  </af:commandToolbarButton>
                </af:toolbar>
              </f:facet>
              <f:facet name="statusbar"/>
              <af:table value="#{bindings.ExportEmp.collectionModel}" var="row"
                        rows="#{bindings.ExportEmp.rangeSize}"
                        emptyText="#{bindings.ExportEmp.viewable ? 'No data to display.' : 'Access Denied.'}"
                        fetchSize="#{bindings.ExportEmp.rangeSize}"
                        rowBandingInterval="0"
                        selectionListener="#{bindings.ExportEmp.collectionModel.makeCurrent}"

                        rowSelection="multiple" id="datatoexport">

This is how the application looks when it is run




Once you click the export excel button a dialog appears on whether to save the data




Saved excel file worksheet title has the title as given in the export collection action listener title property





Uploaded is the sample app here

References:

  1.  Export data from Tables,Trees
  2.  Export Collection Action Listener









Sunday, April 12, 2015

Deleting a Jdeveloper Extension

DELETING A JDEVELOPER EXTENSION


As per checks done looks like there is no user interface to delete an extension from Jdeveloper.But we can go ahead with disabling an extension from Jdeveloper.

1) Go to Tools -> Preferences -> Extensions from Jdeveloper and then uncheck the extesions which you want to disable as shown below 




 But if we want to really delete an extension from Jdeveloper then the only option looks to be do it manually.Prior to executing this manual step first stop any Jdeveloper running instances and then do the manual activity of deleting an extension.

Go to your <MiddlewareHome>/jdeveloper/jdev/extensions directory and then take a back up of this directory before deleting any specific extensions.

Say i want to delete BPM extension from Jdeveloper then search for JAR files with name like oracle.bpm.* as shown below

Now run Jdeveloper and see whether it is working fine after the deletion of the JAR files from the extension directory.If it is working fine then you can clean up your extension directory back up accordingly.

Saturday, April 11, 2015

Changing JDeveloper Font Size

CHANGING JDEVELOPER FONT SIZE

Ever wondered on how to change the font size of JDeveloper as we might me working on different screens may be on laptop or big desktop monitor.So people would really like to customize the font size as per their wish the JDeveloper font size then that would be really useful.

Came across this setting as part of my search and efforts to change the Jdeveloper font size as per my wishes.

In order to set the font size for the Jdeveloper IDE you need to modify the ide.properties file to set the font size.

It is typically available under 

Windows:

C:\Users\{user_name}\AppData\Roaming\JDeveloper\system11.<Versiopn>\o.jdeveloper\ide.properties

Linux:

For Linux just do a find for ide.properties file under your Jdeveloper home and set the font size as per your wish.

Value which i have set the font size is 15 as below in the file.

Ide.FontSize=15

In fact the ide.properties file is so self explanatory it has lot of comments documented in it on how to set the font sizes for a specific locale and look and feel etc.

Tested the same with a larger font size of 45 on my laptop below are the images for the same.

Ide.FontSize=15





Ide.FontSize=45























Reference:https://community.oracle.com/thread/2282785

Thursday, April 2, 2015

Fusion Applications Transaction Database

Fusion Applications Transaction Database


In this post we shall cover on details related to Database Schema installation required for a Fusion Applications.As Fusion Applications is built on top of Fusion Middleware products it requires a significant amount of database schemas catering to the requirements of different Fusion Middleware products used.

Following is a brief snapshot on different schemas which will typically be installed in a Fusion Applications transaction database.




Out of all the schemas installed specific schemas for Fusion Applications functionality and business logic are the ones mentioned below

  • FUSION
  • FUSION_RUNTIME
  • FUSION_DYNAMIC
  • FUSION_AQ
  • FUSION_BI
  • FUSION_DQ
  • FUSION_ODI_STAGE
  • FUSION_SETUP
Rest of the other schemas are related to the specific Fusion Middleware related infrastructure components.

Let us look at the details of few of the schemas related to Fusion Applications

FUSION : This is the owner of all the objects that belong to Fusion Applications.All the corresponding rights and powers such as owning tables and objects, providing grants to FUSION_RUNTIME.  It is used for patching and has grants to many internal DBMS functions.

FUSION_RUNTIME : This is the runtime user.Used to run the Applications.Contains no DB objects.

FUSION_DYNAMIC : This is the schema that owns the objects that are dynamically created through ADM_DDL.ADM_DDL is a package that acts as a wrapper around the DDL statement. ADM_DDL support operations like truncate table, create index etc.

Looking at the schemas all application UI's related to Fusion Applications are run from FUSION_RUNTIME schema, so any development done has to be tested against runtime schema.

Now the specific details of other related technology schemas are 

AS Common Schemas Includes:
Enterprise Scheduler Service FUSION_ORA_ESS
Metadata Services CRM_FUSION_MDS_SOA
FIN_FUSION_MDS_SOA
HCM_FUSION_MDS_SOA
OIC_FUSION_MDS_SOA
PRC_FUSION_MDS_SOA
PRJ_FUSION_MDS_SOA
SCM_FUSION_MDS_SOA
SETUP_FUSION_MDS_SOA
FUSION_MDS (complete MDS schema for Fusion Applications related customizations,ESS jobs etc which is related to Fusion Applications functionalities)
FUSION_MDS_ESS
FUSION_MDS_SPACES
Secure Enterprise Search SEARCHSYS
Oracle Data Integrator FUSION_ODI
Master and Work Repository
Enterprise Content Management Includes:
Oracle Content Server 11g - Complete FUSION_OCSERVER11G
Oracle Imaging and Process Management FUSION_IPM
Oracle Business Intelligence (Platform) FUSION_BIPLATFORM
Oracle BI Applications Schemas Includes:
Oracle Transactional BI FUSION_OTBI
WebLogic Server Communication Services Includes:
SIP Infrastructure Location Service FUSION_ORASDPLS
Presence FUSION_ORASDPXDMS
SIP Infrastructure Subscriber Data Service FUSION_ORASDPSDS
SOA and BPM Infrastructure Includes:
User Messaging Service FUSION_ORASDPM
SOA Infrastructure CRM_FUSION_SOAINFRA
SOA Infrastructure FIN_FUSION_SOAINFRA
SOA Infrastructure HCM_FUSION_SOAINFRA
SOA Infrastructure OIC_FUSION_SOAINFRA
SOA Infrastructure PRC_FUSION_SOAINFRA
SOA Infrastructure PRJ_FUSION_SOAINFRA
SOA Infrastructure SCM_FUSION_SOAINFRA
SOA Infrastructure SETUP_FUSION_SOAINFRA
WebCenter Suite Includes:
WebCenter Spaces FUSION_WEBCENTER
Portlet Producers FUSION_PORTLET
Activity Graph and Analytics FUSION_ACTIVITIES
Discussions FUSION_DISCUSSIONS
FUSION_DISCUSSIONS_CRAWLER
Audit Includes:
FUSION_IAU
FUSION_IAU_APPEND
FUSION_IAU_VIEWER
Oracle Social Network Includes:
FUSION_SOCIAL
FUSION_SOCIAL_VIEWS
FUSION_SOCIAL_CEF

Mostly the above mentioned are related to Fusion Middleware Infrastructure component related schemas whose features are used in Fusion Applications

                      ii) Fusion Database Schemas