Crosstab in Java

Hi, I have a problem...
I need to find a Crosstab similar to that used ireport but in java. My problem is I need to export to excel the result of the select Crosstab from the ireport.
I do not know if I explained well
Thank's !

Are you talking about a JTabbedPane ?

Similar Messages

  • Error while creating new crosstab using

    I am getting the following error while creating a new crosstab object within Swing application. This error has started coming after we applied Oracle patch 9206 on database. The error originates from one of the classes in the olap_api_92.jar.
    ==========================================================
    Wed Feb 02 09:13:51 CST 2005 In BuilderWizardValidateAdapter::wizardValidatePage
    oracle.express.idl.util.OlapiException: No more data to read from socket
         at oracle.express.idl.ExpressOlapiDataSourceModule.DefinitionManagerInterfaceStub.crtCurMgrs2(DefinitionManagerInterfaceStub.java:927)
         at oracle.express.olapi.data.full.DefinitionManagerSince9202.createOLAPICursorManagers(DefinitionManagerSince9202.java:611)
         at oracle.express.olapi.data.full.ExpressDataProvider.createCursorManagers(ExpressDataProvider.java:1325)
    =========================================================
    Please check the BIcheckconfig output. It does not show any errors.
    =========================================================
    <?xml version="1.0" encoding="UTF-8" ?>
    <BICheckConfig version="1.0.2.0">
    <Check key="JDEV_ORACLE_HOME" value="C:\Mohan\Installs\Jdev904"/>
    <Check key="JAVA_HOME" value="C:\Mohan\Installs\Jdev904\jdk"/>
    <Check key="JDeveloper version" value="9.0.4.0.1419"/>
    <Check key="BI Beans release description" value="BI Beans 9.0.4 Production Release"/>
    <Check key="BI Beans component number" value="9.0.4.23.0"/>
    <Check key="BI Beans internal version" value="2.7.5.32"/>
    <Check key="host" value="db03schgefage"/>
    <Check key="port" value="1521"/>
    <Check key="sid" value="biolapp"/>
    <Check key="user" value="nairs5"/>
    <Check key="Connecting to the database" value="Successful"/>
    <Check key="JDBC driver version" value="9.2.0.4.0"/>
    <Check key="JDBC JAR file location" value="C:\Mohan\Installs\Jdev904\jdev\lib\patches"/>
    <Check key="Database version" value="9.2.0.6.0"/>
    <Check key="OLAP Catalog version" value="9.2.0.6.0"/>
    <Check key="OLAP AW Engine version" value="9.2.0.6.0"/>
    <Check key="OLAP API Server version" value="9.2.0.6.0"/>
    <Check key="BI Beans Catalog version" value="N/A; not installed in nairs5"/>
    <Check key="OLAP API JAR file version" value="9.2"/>
    <Check key="OLAP API JAR file location" value="C:\Mohan\Installs\Jdev904\jdev\lib\ext"/>
    <Check key="OLAP API Metadata Load" value="Successful"/>
    <Check key="Number of metadata folders" value="3"/>
    <Check key="Number of metadata measures" value="569"/>
    <Check key="Number of metadata dimensions" value="5"/>
    <Check key="OLAP API Metadata">
    <![CDATA[==============================================================================
    Type Name (S=Schema, C=Cube, M=Measure, D=Dimension)
    ========= ====================================================================
    Folder... ROOT
    Folder... Auto Claim Measures
    Folder... Service Measures
    Folder... Claim Counts
    Folder... Cell Summary Cube
    Folder... Actual Measures
    Measure.. Actual Acceptance Rate
    Measure.. Actual Annualized Bill amt
    Measure.. Actual Application Count
    Measure.. Actual Avg Annual Billing
    Measure.. Actual Contacts Count
    Measure.. Actual Commission Amt
         at oracle.express.olapi.data.full.ExpressDataProvider.internalCreateCursorManager(ExpressDataProvider.java:680)
         at oracle.express.olapi.data.full.ExpressDataProvider.createCursorManager(ExpressDataProvider.java:586)
         at oracle.olapi.data.source.DataProvider.createCursorManager(DataProvider.java:268)
         at oracle.dss.dataSource.QueryUtilities.setUpCursors(QueryUtilities.java:559)
         at oracle.dss.dataSource.QueryServer._setUpCursorsForMainQuery(QueryServer.java:7039)
         at oracle.dss.dataSource.QueryServer._getCursorForCube(QueryServer.java:4098)
         at oracle.dss.dataSource.QueryServer._updateCube(QueryServer.java:4055)
         at oracle.dss.dataSource.QueryServer._applySelections(QueryServer.java:2661)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.dss.util.Operation.execute(Operation.java:69)
         at oracle.dss.dataSource.OperationQueue.update(OperationQueue.java:68)
         at oracle.dss.dataSource.common.BaseOperationQueue.addOperation(BaseOperationQueue.java:176)
         at oracle.dss.dataSource.common.BaseOperationQueue.addOperation(BaseOperationQueue.java:146)
         at oracle.dss.dataSource.QueryServer.queueOperation(QueryServer.java:7076)
         at oracle.dss.dataSource.QueryServer.applySelection(QueryServer.java:2192)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.dss.util.Operation.execute(Operation.java:69)
         at oracle.dss.dataSource.QueryManagerServer.sendQueue(QueryManagerServer.java:1549)
         at oracle.dss.dataSource.common.OperationQueue.update(OperationQueue.java:198)
         at oracle.dss.dataSource.common.BaseOperationQueue.addOperation(BaseOperationQueue.java:176)
         at oracle.dss.dataSource.common.BaseOperationQueue.addOperation(BaseOperationQueue.java:146)
         at oracle.dss.dataSource.common.OperationQueue.addOperation(OperationQueue.java:127)
         at oracle.dss.dataSource.client.QueryClient.applySelection(QueryClient.java:970)
         at oracle.dss.dataSource.common.QueryQueryAccess$SelCursor.getDataAccess(QueryQueryAccess.java:1133)
         at oracle.dss.dataSource.common.QueryQueryAccess.getDataAccess(QueryQueryAccess.java:278)
         at oracle.dss.datautil.QueryAccessUtilities._getValues(QueryAccessUtilities.java:639)
         at oracle.dss.datautil.QueryAccessUtilities._getValues(QueryAccessUtilities.java:705)
         at oracle.dss.datautil.QueryAccessUtilities.getValues(QueryAccessUtilities.java:608)
         at oracle.dss.queryBuilder.QueryBuilderUtils.getSelectedMeasures(QueryBuilderUtils.java:623)
         at oracle.dss.queryBuilder.SelectedItemsPanel.populateTree(SelectedItemsPanel.java:298)
         at oracle.dss.queryBuilder.SelectedItemsPanel.refreshTree(SelectedItemsPanel.java:333)
         at oracle.dss.queryBuilder.SelectedItemsPanel.setActive(SelectedItemsPanel.java:366)
         at oracle.dss.queryBuilder.ItemsPanel.setActive(ItemsPanel.java:251)
         at oracle.dss.datautil.gui.DefaultBuilderDialog.setActive(DefaultBuilderDialog.java:1072)
         at oracle.dss.datautil.gui.DefaultBuilderDialog.validateNextPreviousEvent(DefaultBuilderDialog.java:1396)
         at oracle.dss.datautil.gui.DefaultBuilderDialog$BuilderWizardValidateAdapter.wizardValidatePage(DefaultBuilderDialog.java:2113)
         at oracle.bali.ewt.wizard.WizardPage.processWizardValidateEvent(Unknown Source)
         at oracle.bali.ewt.wizard.WizardPage.validatePage(Unknown Source)
         at oracle.dss.datautil.gui.CustomImageWizardPage.validatePage(CustomImageWizardPage.java:81)
         at oracle.bali.ewt.wizard.BaseWizard.validateSelectedPage(Unknown Source)
         at oracle.bali.ewt.wizard.BaseWizard.doNext(Unknown Source)
         at oracle.dss.datautil.gui.CustomWizard.doNext(CustomWizard.java:415)
         at oracle.bali.ewt.wizard.BaseWizard$Action.actionPerformed(Unknown Source)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
         at java.awt.Component.processMouseEvent(Component.java:5100)
         at java.awt.Component.processEvent(Component.java:4897)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
         at java.awt.Container.dispatchEventImpl(Container.java:1613)
         at java.awt.Window.dispatchEventImpl(Window.java:1606)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
         at java.awt.Dialog$1.run(Dialog.java:540)
         at java.awt.Dialog.show(Dialog.java:561)
         at java.awt.Component.show(Component.java:1133)
         at java.awt.Component.setVisible(Component.java:1088)
         at oracle.bali.ewt.wizard.WizardDialog.runDialog(Unknown Source)
         at oracle.dss.datautil.gui.DefaultBuilderDialog.runDialog(DefaultBuilderDialog.java:489)
         at oracle.dss.datautil.gui.DefaultBuilderDialog.run(DefaultBuilderDialog.java:466)
         at oracle.dss.queryBuilder.QueryBuilder.run(QueryBuilder.java:2401)
         at gecf.pmg.PmgBiOlapApp.newCrosstabWiz(PmgBiOlapApp.java:1622)
         at gecf.pmg.PmgBiOlapApp.mNewCrosstab_ActionPerformed(PmgBiOlapApp.java:1563)
         at gecf.pmg.PmgBiOlapApp$5.actionPerformed(PmgBiOlapApp.java:696)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
         at java.awt.Component.processMouseEvent(Component.java:5100)
         at java.awt.Component.processEvent(Component.java:4897)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
         at java.awt.Container.dispatchEventImpl(Container.java:1613)
         at java.awt.Window.dispatchEventImpl(Window.java:1606)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    I suspect that you have either not fully applied the patch or alternatively the patching process did not complete.
    If you are using an analytic workspace, connect as OLAPSYS account and run the following commands:
    exec CWM2_OLAP_METADATA_REFRESH.MR_REFRESH
    exec CWM2_OLAP_METADATA_REFRESH.MR_AC_REFRESH
    If this does not resolve the error, and assuming your system worked prior to applying the 9206 patch, then the patch may need to be reapplied.
    Hope this helps
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • Question Regarding Crosstab or Matrix Reporting

    Hi,
    I have a Requirement Where I have to Create a Cross-tab Report,
    We use XMLPublisher which is Bundled with R12...
    our ERP version is :12.1.3
    Our XML Publisher is :5.6.3.x.x
    The Requirement Output is
    I have Generate a report which should be a Pivot Report for Every item Entered by the User (it may be one or Multiple Item)
    if one Item is Entered
    I have To list the report as below
    ITEM ID:1234 ITEM DESC: SquarePaper Plate =>Item Detail to be printed on top of the table.. Followed by
    DATE is the Column field for the Crosstab
    ORDER STATUS  is the Row Field( Order Status will be of Five Types( BOOKED,ENTERED,AWAITING_SHIPPING,AWAITING_SHIPPING,SHIPPED,CLOSED) for the Crosstab
    QTY is the Field Data Field  for the Row Field(Order Status)..for the Crosstab
    If More than One Entered
    Then I have to Repeat the Same Logic to Produce Pivot Table for that many Items entered by the User..
    For Cross Tab I have Found this Link by Vetsrini
    http://winrichman.blogspot.com/2008/08/pivot-table-cross-table-with-fixed.html
    I followed his Template and I am Getting the Crosstab Output but I am getting for all the Items as One report,
    I could not get a Logic to Group or ( Repeating Group) by Item and Item Description..
    Please help as I am Stuck at this Logic for almost 3 weeks and I have posted so 4-5 questions on this regards unfortunately No replies..
    Thanks

    Hi, Nagornyi,
    Thanks for the Reply,
    <?if:count(ITEM)=1?>
    CROSSTAB_1
    <?end if?>
    <?if:count(ITEM)>1?>
    CROSSTAB_2
    <?end if?>
    When I use this Method, I am getting this Error..
    ConfFile: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
    Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    Template: C:\Documents and Settings\aranganathan\Desktop\Currently Working\RTF\tpc_item_count_sum_ver6_test.rtf
    RTFProcessor setLocale: en-us
    FOProcessor setData: C:\Documents and Settings\aranganathan\Desktop\cross_tab_test\tpc_item_count_sample2.xml
    FOProcessor setLocale: en-us
    Output type: MHTML
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
         at RTF2PDF.runRTFto(RTF2PDF.java:629)
         at RTF2PDF.runXDO(RTF2PDF.java:470)
         at RTF2PDF.main(RTF2PDF.java:289)
    Caused by: oracle.xdo.parser.v2.XPathException: Error in expression: './/=1'.
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:614)
         ... 15 more
    Also
    My Question was
    For Every ITEM_ID entered by the User, I have to Create Crosstab result grouped by ITEM_ID's
    Say
    if the User Enters one ITEM_ID then
    I should Create the Report as
    ITEM ID : 1234 ITEM_DESC: SQUARE PAPER PLATE -- Heading
    CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
    Say if the ITEM is more than ONE
    ITEM ID : 1234 ITEM_DESC: SQUARE PAPER PLATE -- Heading
    CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
    ITEM ID : 2341 ITEM_DESC: ROUND PAPER PLATE -- Heading
    CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
    ITEM ID : 3421 ITEM_DESC: RECTANGULAR PAPER PLATE -- Heading
    CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
    ITEM ID : 4123 ITEM_DESC: TRANGULAR PAPER PLATE -- Heading
    CROSSTAB - Report result under the ITEM_ID, and ITEM_DESC
    Thanks
    once again

  • Access to Attribute Type via Java API

    Hi,
    I'm writing an aplication in Java to access out OLAP schema and display certain DIMENSION/LEVEL and ATTRIBUTE values. This is working out really well but I'm hitting one issue at the moment which has me stumped.
    When I display a Dimension value in a table I want to default the attribute we display to a sensible display value. In AWM there is a field "Attribute Type" which offers drop down selections for "User", .... "Member Short Description", "Member Long Description"...
    See the General Tab under Attributes for a particular Attribute. Looking at the Help text for the "Member Long Description" I see the following.
    "Long descriptive names typically used by Oracle Business Intelligence tools for displaying dimension members in selection lists, crosstabs, and graphs." Looks perfect for what I want. My Dataware house architect already has an Attribute for each hirearchy
    marked with this property so in theory I should be able to look for the Attribute in the Dimension with this property and bingo I have my default display Atttribute!
    The problem is I seem to be able to find api's to access every aspect of the MdmAttribute object except this particular property.
    Here is a snippet from the OLAP api sample code augmented with some println's of my own:
    if (mdmAttr.getName().equals(name)) {
         System.out.println("Attribute : " + mdmAttr.getID());
         System.out.println(" name : " + mdmAttr.getName());
         System.out.println(" desc : " + mdmAttr.getDescription());
         System.out.println(" s desc: " + mdmAttr.getShortDescription());
         System.out.println(" type : " + mdmAttr.getType());      
         System.out.println(" type id: " + mdmAttr.getType().getID());
    return mdmAttr;
    None of the avaiable APIs of MdmAttribute seem to fit the bill.
    The question is ... is there an API somewhere I can call on the MdmAttribute object or an associated object that will give me back the "Attribute Type" as listed in this dropdown. Note that getType returns DataType!String which denotes the fundemental type of the Attribute (int, String etc) rather than this abstract Attribute Type property we need. Not listed here is the getDataType() api which also returns DataType!String and seems to be equivalent to the getType api.
    Regards
    Fergal

    One small clarification if its not already obvious. We are using the OLAP Java api's directly ... not via BI Beans.
    Regards
    Fergal

  • How to get the dimensions of the selected cell in java client

    hi,
    I am able to retrieve the value of a particular cell using the data access package.i want to know how can i get the measure and dimension of a particular cell in java client.is it possible to get the row and edge of the selected cell?please help me in this.
    thanks and regards
    S.Sharanya

    hi,
    I am able to get the value like 'RM00' of the dimension by using the method,
    m_activeView.getModel().getDataAccess().getValueQDR(1,1,1).getDimMember(m_activeView.getModel().getDataAccess().getValueQDR(1,1,1).getDimensions().nextElement().toString()));
    but this give all the values of the each dimension for each cell of the crosstab.but i want the values of dimension which is selected.i am able to get the selected dimension usind qdr method,for which i am getting the output like
    MDM!MEASUREDIMENSION(MDM!D_DEMO1.RESIDUAL_DIM 'RM00', MDM!MEASUREDIMENSION 'MDM!M_DEMO1.PD_BR_RMT_LDRUN_CUBE.PBRL_SIM', MDM!D_DEMO1.PRODUCT_DIM 'G001', MDM!D_DEMO1.LOADRUN_DIM '3', MDM!D_DEMO1.BRANCH_DIM 'HO01')
    i want to know the method so that i can get only values ,like RM00,G001,3,H001.is there any method,so that i can get all these value alone.pls help me.i am not able to proceed without this.
    thanks
    s.sharanya

  • CAN i CALL OLAP DML THROUGH JDBC IN JAVA PROGRAM

    I HAVE ORACLE V 9.2.0.1.0 AND AFTER CREATING A CUBE FROM ENTERPRISE CONSOLE I HAVE TO GO WITH EITHER SQL PACKAGES OR OLAP DML PROGRAMS ,SO PLS GIVE ME PROPER WAY AND LINK OF SOURCES TO WORK WITH OLAP DML IN JAVA PROGRAMS
    CAN I USE AS PREPARED STATEMENT OR CREATE STATEMENT IN JAVA
    TO CALL OLAP DML? BECAUSE NORMALLY WE MUST USE OLAP WORKSHEET TO EXECUTE OLAP COMMANDS
    Message was edited by:
    user594151

    The access OLAP objects via Java you have two options. You can code directly against the OLAP API and I think someone has already provided you with the link to the supporting documentation. The OLAP API docs provide worked examples on access OLAP metadata and retrieving OLAP data. However, this is extremely low level coding. An alternative is to use the Business Intelligence Beans. Oracle Business Intelligence Beans enables developers to productively build business intelligence applications that take advantage of the rich OLAP functionality in the Oracle database. OracleBI Beans includes presentation beans - graph and crosstab, data beans - query and calculation builders and persistence services, which may be deployed in both HTML client and Java client applications. OracleBI Beans is seamlessly integrated into Oracle JDeveloper to provide the most productive development environment for building custom BI applications. For more information goto the the BI Beans home page
    http://www.oracle.com/technology/products/bib/index.html
    Specifically on executing OLAP DML see the following example:
    Developing a Dashboard Application with Oracle BI Beans:
    http://www.oracle.com/technology/products/bib/1012/viewlets/MS%20Developing%20Executive%20Insight.html
    Adding controls to execute OLAP DML      This viewlet demonstrates how to quickly and easily add the controls to execute OLAP DML models that can be executed to update the What If presentation.
    http://www.oracle.com/technology/products/bib/1012/viewlets/Pages/What_If_Analysis_Part_4_viewlet_swf.html
    Hope this helps
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • OLAP JAVA API - JDev

    hi all!
    i want to develop an olap application with JDeveloper and i´ve followed the steps of the tutorials on bibeans tech site (create and format bi objects). Now i´ve got a graph and a crosstab formatted etc. which i can show in JDeveloper.
    My question: is it possible to produce the crosstab and graph with the java graph api on my own or to get the java-code behind the produced crosstab/graph? First of all is there a java code behind?
    I´ve recognized the oracle.dss.* package but i can´t find a api guide or sth. like that on the oracle site...
    Can anyone help me?
    greetz pm

    As far as I know there isn't any detailed guid or help doc. The best you can get is the help doc inside JDeveloper.
    To answer your question, yes its possible to create presentations using java api.
    There are some code fragments inside of the help doc - but its very minimal - you have to find your way through it!!
    For a web app - you could use a combination of bi bean tags (for std. features ) & java API ( for any customaization if neded) .
    EG: Use the presentation tag to build the presentation in a JSP
    And then add some custom java code inside if needed for any customization...
    <%
    Presentation crossTab = (Presentation)pageContext.findAttribute("MyWorkspace_pres1");
    ThinCrosstab thinCrosstab = (ThinCrosstab)crossTab.getView();
    DataDirector dd = thinCrosstab.getModel().getDataDirector();
    DataAccess da = thinCrosstab.getModel().getDataAccess();
    %>
    Good Luck!

  • "EmptyBorder" when creating Crosstab presentation in JDeveloper

    Hi,
    I have install oracle 10G as database and connect to the oracle olap using Jdeveloper (come with Oracle Developer Suite 10G), I try to create a crosstab presentation but it fail with the following error,
    java.lang.ClassCastException: javax.swing.border.EmptyBorder
         at oracle.dss.dataView.gui.FontColorTool.<init>(FontColorTool.java:97)
         at oracle.dss.gridView.gui.GridViewToolBar.initialize(GridViewToolBar.java:181)
         at oracle.dss.gridView.gui.GridViewToolBar.<init>(GridViewToolBar.java:104)
         at oracle.dss.addins.editor.presentation.GridViewEditorBar.<init>(GridViewEditorBar.java:14)
         at oracle.dss.addins.editor.presentation.PresentationEditor$PresPanel.init(PresentationEditor.java:631)
         at oracle.dss.addins.editor.presentation.PresentationEditor$PresPanel.<init>(PresentationEditor.java:612)
         at oracle.dss.addins.editor.presentation.PresentationEditor.createPresPanel(PresentationEditor.java:268)
         at oracle.dss.addins.editor.presentation.PresentationEditor.getGUI(PresentationEditor.java:391)
         at oracle.ideimpl.editor.EditorFrameImpl.setEditor(EditorFrameImpl.java:653)
         at oracle.ideimpl.editor.EditorManagerImpl.openEditorInFrame(EditorManagerImpl.java:677)
         at oracle.ideimpl.editor.EditorManagerImpl.openDefaultEditorInFrame(EditorManagerImpl.java:641)
         at oracle.ideimpl.editor.EditorManagerImpl.openDefaultEditorInFrame(EditorManagerImpl.java:618)
         at oracle.dss.addins.designer.BIFolder.addObject(BIFolder.java:228)
         at oracle.dss.addins.designer.BIDesignerImpl.addObject(BIDesignerImpl.java:1560)
         at oracle.dss.addins.wizard.presentation.PresentationWizardDialog$CloseDialog.run(PresentationWizardDialog.java:474)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Below is my database component version,
    Oracle Database Catalog Views 10.1.0.2.0 VALID
    Oracle Database Packages and Types 10.1.0.2.0 VALID
    Oracle Workspace Manager 10.1.0.2.0 VALID
    JServer JAVA Virtual Machine 10.1.0.2.0 VALID
    Oracle XDK 10.1.0.2.0 VALID
    Oracle Database Java Packages 10.1.0.2.0 VALID
    Oracle Expression Filter 10.1.0.2.0 VALID
    Oracle interMedia 10.1.0.2.0 VALID
    Oracle Data Mining 10.1.0.2.0 VALID
    Oracle Text 10.1.0.2.0 VALID
    Oracle XML Database 10.1.0.2.0 VALID
    OLAP Analytic Workspace 10.1.0.2.0 VALID
    Oracle OLAP API 10.1.0.2.0 VALID
    OLAP Catalog 10.1.0.2.0 VALID
    Spatial 10.1.0.2.0 VALID
    Oracle Enterprise Manager 10.1.0.2.0 VALID
    Please adviced.
    Thanks in advance.

    I would recommend applying the 10.1.0.4 database patchset as the database version you are using, 10.1.0.2, is not supported for use with OLAP. You can download the patchset directly from Metalink..
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • Calculations and crosstab view customization

    hi All,
    i am a beginner at olapi and BI beans. i am trying to understand if we can use bi beans to meet our users requirements. i have some questions here.
    1. lets take sales measure. i'd like to define new measure or calculation that shows difference from january-2001. and i'd like to get something like this:
    __________dec-2000 jan-2001 feb-2001
    world -10 0 10
    americas -2 0 2
    asia -2 0 2
    How could i achieve it with bi beans.
    I'd prefer to avoid coding (using DML or olapi). i think it would be better to give users a tool to build such things.
    2.How can hide some rows/columns in the crosstab.
    For example i drill down to month but i want to hide data from all of them except january and december.
    3.I looked through bi beans api and i found out that for example Query class implements 18 interfaces!!! Isn't something wrong with it? It seems to me that olapi and bi beans are a bit awkward.
    Best regards.
    Igor.

    hi
    regarding your calculations: eithe do it in the base deta or use the calculation bulder to achieve what you want (no need for dml/olapi coding)
    for the suppresions: well just use the features of the querybuilder, especially the "add/remove/keep" choice you are offered: this way you can do this very easily. another way is based on scoping:thus data only visible based on group/single access
    interface:whats wrong ? its due to java: you can derive from a single class, but are able to implement several interfaces ;)
    regards,
    thomas

  • Unclear error message using crosstab

    Hello,
    I get the following error message, when I will run a report with a crosstab ( the onliest element in this report). But if I limit the data amount by using a filter the report run. So is there any restriction in the number of data records by using a crosstab, or what can be the reason for the error message?
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Crystal Reports: Druckmodulfehler---- Error code:-2147215357 Error code name:internal
         at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)
         at com.crystaldecisions.sdk.occa.managedreports.ps.internal.f.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.managedreports.ps.internal.f.getPage(Unknown Source)
         at com.businessobjects.report.web.event.q.a(Unknown Source)
         at com.businessobjects.report.web.event.q.a(Unknown Source)
         at com.businessobjects.report.web.event.bq.a(Unknown Source)
         at com.businessobjects.report.web.event.bt.broadcast(Unknown Source)
         at com.businessobjects.report.web.event.ak.a(Unknown Source)
         at com.businessobjects.report.web.a.q.if(Unknown Source)
         at com.businessobjects.report.web.e.a(Unknown Source)
         at com.businessobjects.report.web.e.a(Unknown Source)
         at com.businessobjects.report.web.e.a(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
         at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)
         at org.apache.jsp.crystalreportviewers.htmlviewerbridge_jsp._jspService(htmlviewerbridge_jsp.java:489)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595

    I moved your thread from SAP Crystal Reports Design to this forum as from the error message it does not look like you are using the CR designer when you get the error(?). That being the case(?), please provide the following information;
    1) Version of CR
    2) Version of .NET used?
    3) OS?
    4) What SDK are you using (CR, RAS, BOE)?
    5) is this happening on your dev computer or after you deploy the app?
    6) Provide more info on the following;
    But if I limit the data amount by using a filter the report run.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • To place drill-out images and Handling Drill-Out Events in a  crosstab ?

    in the bibeans help, it is possible to manage drill out in a thin Crosstab.
    Is it possible to do it with Crosstab ?
    thanks

    I checked with development and strangely the Java client Crosstab doesn't support putting URLs in the cells. So we have a disconnect between thick and thin crosstabs, something that will have to be resolved in a future release. However, it does support showing drill out icons and firing events when the user clicks on them. The application is responsible for handling the drill out event, which could involve launching a browser and going to some URL.
    Looking at your code below, nothing obviously wrong comes to mind. An initial debugging step might be to uncomment the line // dataViewStyle.setBackground(Color.BLUE); to see if the rule applies formatting other than the drill out icon. There may be a problem with the QDR or the rule. If the blue background applies, then there may be a problem with the image path specified. Maybe the Crosstab can't load the given image. Are there any error messages logged to the ErrorHandler?
    Hope this helps,
    Keith
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Beans http://www.oracle.com/technology/products/bib/index.html
    Discoverer: http://www.oracle.com/technology/products/discoverer/
    BI Software: http://www.oracle.com/technology/software/products/ias/devuse.html
    Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
    BI Samples: http://www.oracle.com/technology/products/bi/samples/
    Blog: http://oraclebi.blogspot.com/

  • Create a crosstab sql

    Hi,
    I have the below sql query,
    select pool round((bytes/1024/1024),2) "Bytes in MB" from v$sgastat where name='free memory' order by pool;
    POOL Bytes in MB
    java pool 448
    large pool 7029
    shared pool 576
    I wish to write a crosstab sql query to get the output as below,
    java pool large pool shared pool
    448 7029 576
    How to wirte this sql ?
    Thanks.

    select max(case when pool = 'java pool' then mb end) "Java Pool"
    ,      max(case when pool = 'large pool' then mb end) "Large Pool"
    ,      max(case when pool = 'shared pool' then mb end) "Shared Pool"
    from ( select pool
           ,      round((bytes/1024/1024),2) mb
           from   v$sgastat
           where name ='free memory'
           order by pool
         );or
    select max(case when pool = 'java pool' then round((bytes/1024/1024),2) end) "Java Pool"
    ,      max(case when pool = 'large pool' then round((bytes/1024/1024),2) end) "Large Pool"
    ,      max(case when pool = 'shared pool' then round((bytes/1024/1024),2) end) "Shared Pool"
    from   v$sgastat
    where name ='free memory';Edited by: hoek on May 5, 2010 2:58 PM

  • Can any Java expert help me? Urgent.

    I create a table---CourseDB in adatabase to store the Student ID ( student identification number) and the grades of the courses that they took.
    The structure of the table---CourseDB is:
    StudentID
    GradeofCourse1
    GradeofCourse2
    GradeofCourse3
    GradeofCourseN
    Here GradeofCourse1 means the grade of course 1, that the student obtained. GradeofCourse2, GradeofCourse3, GradeofCourseN have the same meaning.
    I want to use the following query to count the students
    who get g1 in course 1, and g2 in course 2, ......and gn in
    course n.
    Select COUNT(*)
    From CourseDB
    Where GradeofCourse1=g1 AND GradeofCourse2= g2
    ......AND GradeofCourseN=gn
    Here g1, g2,......,gn are grade, the values are: A,B,C,D.
    I want to consider all the possible combination of g1,g2,...,gn.
    The students take all the n courses:Course 1, Course 2,...., Course n, and may get A,B,C, or D in the n courses.
    For example:
    g1=A,g2=B,g3=C,.....,gn=D
    ( This means that the student gets A in Course 1, gets B in Course 2, gets C in Course 3,....., gets D in Course n. Many students may have the same situation. I want to know how many are the students?)
    Or:
    g1=B,g2=C,g3=D,......,gn=A
    To make the problem clear, I give a detail example:
    For example, there are two courses: course 1, course 2.
    I want to know how many stuent get "A" in course 1 and
    get "B" in course 2 at the same time.
    And I want to know all the grade combination of the two courses:
    course 1 course 2
    A A
    A B
    A C
    A D
    B A
    B B
    B C
    B D
    C A
    C B
    C C
    C D
    D A
    D B
    D C
    D D
    So that's 16 total combinations(4^2).
    My question is in the code how I can assign the values(A,B,C,D)
    to g1,g2,g3,.....,gn conveniently.
    The following "nested for loop" can solve the problem ( for example, there are 6 courses):
    for (char class1 = 'A'; class1 <= 'D'; class1++)
    for (char class2 = 'A'; class1 <= 'D'; class2++)
    for (char class3 = 'A'; class1 <= 'D'; class3++)
    for (char class4 = 'A'; class1 <= 'D'; class4++)
    for (char class5 = 'A'; class1 <= 'D'; class5++)
    for (char class6 = 'A'; class1 <= 'D'; class6++)
    select count(*)
    from CourseDB
    where GradeofCourse1=class1 AND GradeofCourse2 = class2 AND GradeofCourse3 = class3
    ....AND GradeofCourse6=class6
    But the problem is that in the "Where GradeofCourse1=class1 AND
    GradeofCourse2= class2 ......AND GradeofCourse6=class6" of the
    Query, the number of courses is not fixed, maybe six, maybe three,
    maybe four, so the depth of "nested for loop" can not be fixed.
    Can any Java expert give me some suggestions?
    Thanks in advance.
    Jack

    Jack,
    When you posted this on the other forum, it was quite a different question, but it has mutated to this point now. I believe what you want to do can be done with what MS Access calls a crosstab query and you can completely leave Java and any other programming language out of it. If you need to know how to do a crosstab query please take it to another forum.

  • Read Text file using Java Script

    Hi,
    I am trying to read a text file using Java Script within the webroot of MII as .HTML file. I have provided the path as below but where I am not able to open the file. Any clue to provide the relative path or any changes required on the below path ?
    var FileOpener = new ActiveXObject("Scripting.FileSystemObject");
    var FilePointer = FileOpener.OpenTextFile("E:\\usr\\sap\\MID\\J00\\j2ee\\cluster\\apps\\sap.com\\xapps~xmii~ear\\servlet_jsp\\XMII\\root\\CM\\OCTAL\\TestTV\\Test.txt", 1, true);
    FileContents = FilePointer.ReadAll(); // we can use FilePointer.ReadAll() to read all the lines
    The Error Log shows as :
    Path not found
    Regards,
    Mohamed

    Hi Mohamed,
    I tried above code after importing JQuery Library through script Tag. It worked for me . Pls check.
    Note : You can place Jquery1.xx.xx.js file in the same folder where you saved this IRPT/HTML file.
    <HTML>
    <HEAD>
        <TITLE>Your Title Here</TITLE>
        <SCRIPT type="text/javascript" src="jquery-1.9.1.js"></SCRIPT>
        <script language="javascript">
    function Read()
    $.get( "http://ldcimfb.wdf.sap.corp:50100/XMII/CM/Regression_15.0/CrossTab.txt", function( data ) {
      $(".result").html(data);
      alert(data);
    // The file content is available in this variable "data"
    </script>
    </HEAD>
    <BODY onLoad="Read()">
    </BODY>
    </HTML>

  • Calling Presentation from BI BEANS SAMPLE'S BIWRITEBACK.JAVA

    Hi ,
    I have created a presentation (crosstab) using analyzer.java
    now i need to call that presentation in my BIWRITEBACK.JAVA
    Am writing following code in getDefaultQuery method
    Presentation pres=new Presentation();
    pres.setLocation("SampleCatalog/Applications/Samples/Reports/sales_rev");
    m_query=(Query)pres.getView();
    But above is giving me following error-:
    oracle.dss.thin.beans.Thin
    nException: 19011
    at oracle.dss.thin.beans.dataView.Presentation.loadView(Presentation.java:791)
    at oracle.dss.thin.beans.dataView.Presentation.setLocation(Presentation.java:993)
    at oracle.dss.thin.beans.dataView.Presentation.setLocation(Presentation.java:954)
    at samples.javaclient.analyzer.BIWriteback.getDefaultQuery(BIWriteback.java:256)
    at samples.javaclient.analyzer.BIWriteback.init(BIWriteback.java:198)
    at samples.javaclient.analyzer.BIWriteback.<init>(BIWriteback.java:163)
    at samples.javaclient.analyzer.BIFrame.runWritebackSample(BIFrame.java:440)
    at samples.javaclient.analyzer.BIFrame$6.actionPerformed(BIFrame.java:769)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.ja
    va:1820)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.jav

    Hi,
    Can you confirm the version number of the various products you are using please:
    - Database
    - JDeveloper
    - BIBeans
    - Oracle Warehouse Builder (OWB)
    - EIM (can you explain what this is please)
    I presume you have created a database using the data warehouse option of the Database Configuration Assistant. This should install a demo schema owned by the user SH. Can you create a crosstab using this schema. This will help determine the status of the metadata layer.
    Keith Laker
    BIBeans Product Manager
    Oracle Corporation

Maybe you are looking for

  • How do I use my web camera to chat and take photos?

    I would like to use my web cam to live chat and post pictures and do not know how to use it properly.

  • Help needed - automatic log in on public computer.   How to get rid of the account.

    Hi there Recently while on vacation, my son logged into a public computer on his ichat.  Unfortuantely, it was clicked as automatic log in. Now we are back home and have realized that someone has been accessing his account. We have tried deleting the

  • Can't remove email from icloud

    I have updated my account information on my apple id and deleted an alternate email address replacing it with a new one. I've saved the changes but when I go onto my ipad 4 or iPhone 5 in settings, icloud account information the old email still remai

  • Help me with my ipod please

    I had to restore my computer and lost all of my songs, how do I get them from my ipod touch back onto itunes?

  • How to create a Dir and files within it?

    Hi all , I need to create a Dir and some sample files within it for some testing purpose,can any body tell me how to do it?(I follow al11 GUI options but its giving some error) Or Is there any FM by which we can do it directly to application server??