OLAP or Datagrid to present

Hello,
I have been struggling with this and would appreciate if anyone can guide me here.
I am getting a resultset from a database and I need to present it in a particular format. I tried with DataGrid and it doesnt work, I read through OLAP documentation and saw the statement "Flex supports only numeric values for the measure of a cube". I am stuck and not sure how to do this.
The resultset I am getting is of the following format
<Details>
     <Company>
          <Name> Intel </Name>
          <ID> 2356 </ID>
          <City>Santa Clara </City>
          <State> California </State>
     </Company>
     <Financials>
          <Cash>2345</Cash>
          <Liability>9876</Liability>
          <Assets>457847</Assets>
     </Financials>
     <Profile>
          <Employees>44459</Employees>
          <Industry>computer</Industry>
     </Profile>
     <Year>2009</Year>
     </Company>
     <Company>
          <Name> Intel </Name>
           <ID> 2356 </ID>
          <City>Santa Clara  </City>
          <State> California </State>
      </Company>
     <Financials>
           <Cash>4857</Cash>
           <Liability>8769</Liability>
           <Assets>36456</Assets>
     </Financials>
      <Profile>
           <Employees>56489</Employees>
           <Industry>computer</Industry>
     </Profile>
      <Year>2010</Year>
     </Company>
     <Company>
          <Name> IBM  </Name>
          <ID> 2356 </ID>
           <City>Santa Clara </City>
          <State>  California </State>
     </Company>
      <Financials>
          <Cash>2345</Cash>
           <Liability>9876</Liability>
           <Assets>457847</Assets>
     </Financials>
      <Profile>
           <Employees>44459</Employees>
           <Industry>computer</Industry>
     </Profile>
      <Year>2009</Year>
     </Company>
     <Company>
          <Name> IBM </Name>
           <ID> 2356 </ID>
          <City>Santa Clara  </City>
          <State> California </State>
      </Company>
     <Financials>
           <Cash>4857</Cash>
           <Liability>8769</Liability>
           <Assets>36456</Assets>
     </Financials>
      <Profile>
           <Employees>56489</Employees>
           <Industry>computer</Industry>
     </Profile>
      <Year>2010</Year>
     </Company>
</Details>
The output needs to of the below
Intel
IBM
2009
2010
2009
2010
Financials
  Cash
58748
456476
4657846
456740
  Liability
564756
343545
857898
98798
  Assets
35455
87990
34535
789787
Profile
  Employees
634536
67886
87668
95688
  Industry
Computers
Computers
Computers
Computers
ID
2356
67678
City
Santa Clara
San Jose
State
California
California

Statspack and AWR do not run continuously and collect stats, so they don't cause any performance impact.
When you run a snap it just reads the current system stats from the V$ and X$ tables and stores them in permanent tables. The V$ and X$ tables are always updated even if statspack is not installed.
Edited by: Robert Geier on Oct 13, 2009 1:06 PM

Similar Messages

  • How to make the navigation tree icon in an advanced datagrid to expand in different columns

    Hi All ,
    I am using an application built using Flex 3 .
    In my application I am using an AdvancedDataGrid for datadisplay.
    And the hierachy is like this
    Tree structure in advanced datagrid at present :
    Header 1
    Header 2
    Header 3
    Header 4
    Header 5
    Parent Tree
       Expanded1
          Expanded2
              Expanded3
                     ParentTree
    Expanded1
    Expanded2
    Expanded3
    value
    Expected tree structure in advanced datagrid :
    Header 1
    Header 2
    Header 3
    Header 4
    Header 5
    ParentTree
    Expanded1
    Expanded2
    Expanded3
    value
    can someone tell me if this is possible in advanced data grid and if possible please let me know how do i expand the tree icons in seperate columns ...
    Thanks ,
    Ajantha

    Hi,
    you can check the view source of html and check the onclick code written on that plus sign(Expand All), just copy that onclick javascript code and put it on page javascript event.
    Thanks,
    Jaydip Bosamiya
    +91-76000 23053
    http://jbosamiya.blogspot.com

  • How to Integrate BI Beans to Discover plus

    Hi,
    We have created some report in oracle discover plus. Can we use the existing report using BI beans?
    If yes? What is the BI Bean tag do I need to use.
    pl. help us .
    regards

    Hi,
    If you mean open a presentation of Discoverer for OLAP stored in D4OSYS, no it is not possible. I would recommend to use Discoverer Plus for OLAP to create presentations and Discoverer Viewer for OLAP to view those presentations.
    I hope this will help you.
    Regards

  • Using data from HTTPService call

    I have been searching every forum, Google, etc for what I'm
    trying to do. I have found some answers, but none of them seem to
    work for me or I'm doing something wrong (probably the latter).
    I have a simple app that presents a form to a user and based
    on their input it makes and HTTPService call to send a GET to a PHP
    script which then returns data to fill a datagrid and present a
    chart. That all works good. Now I'm trying to figure out the best
    way to export the data to a CSV. I've seen the forums that show how
    to put the data to a clipboard and then copy it. I can't get any of
    those to work for some reason. I had another idea, but can't figure
    out how to do it.
    I'd like to take the same query and returned results and put
    it into a string or similar so I can output the data to a TextArea.
    Is this possible? I've got the popup working and when I can get it
    to fill in the TextArea, it just says
    "[Object,object],[Object,object]...... " over and over again. So
    it's almost like the data is getting there, but it's not displaying
    properly. Any thoughts on how to do this?
    Is the data returned from a query like this an Array? An
    XMLList? I can't find any docs on how to determine what the result
    is returned as or how to use the result other than in a datagrid or
    filling in Labels or Text fields.
    Any help would be greatly appreciated.
    Thanks,
    chris

    Tracy - Thank you for taking the time to reply. Sorry about
    posting to the wrong forum. I was busy reading so many other posts,
    I just hit the link to add a new topic.
    You are right, my first problem was how to use the returned
    data. I found another post that said to use the e4x format, just
    like you said and that definitely helped. I found this example on
    manipulating XML data:
    http://www.brucephillips.name/blog/index.cfm/2006/10/15/XML-Tutorial-Part-2,
    which also help.
    With all of this, I am able to take the XML output and dump
    it right into the TextArea for viewing or selecting and copying.
    What I'd like to do now though is to pull off the XML tags
    and just have the straight content so that I can have usable CSV
    text to copy.
    As for the System.setClipboard() call - I guess I didn't have
    so much trouble with that other than figuring out how to get the
    data out of my datagrid properly, convert it to a string to create
    a CSV format and then copy it.
    Chris

  • OLAP Datagrid

    Hi All
    This is quite a general question but I was wondering if
    anyone was using the OLAP Datagrid in Flex 3.
    Also, I was wondering if the OLAP calculations (data) within
    the datagrid could be used to produce charts.
    Any experiences would be worth hearing.
    Best regards
    Versie

    Can any one help me convert flex3 code of olapdatagrid to flex2 but it should not give runtime error
    Thanks in advance
    Niranjan

  • Implement OLAP Datagrid in flex2

    Actually olap datagrid is a component in flex 3. but i want to implent this datagrid in flex 2.
    If any one have any idea or any help link is avaliable in web plz send me.
    Thanks in advance.
    Niranjan Swain.

    Can any one help me convert flex3 code of olapdatagrid to flex2 but it should not give runtime error
    Thanks in advance
    Niranjan

  • Newbie: Datagrid = great, but what about textual presentations?

    I am a php hack, now learning Flex. I can create datagrid presentations of my SQL data in a snap... fast and wonderful CRUD interface in an instant. Datagrid = great.
    But what is the proper way of presenting and formatting data in a more textual context? Imagine a list of book titles presented with brief text story abstracts, generated from the database (and available to the MXML app as a php-generated XML file, of course). Each would be shown one after another with links to more content...
    So what is the proper data container to use for text-intensive presentations... maybe even including images and CDATA?
    Hope I have asked this clearly....
    thanks

    Any particular DataGrid column can have its own itemRenderer, and if you use something like TextArea you could populate the htmlText property.
    htmlText property is not without its problems, such as data in a CDATA block might not render perfectly and might need to be massaged.
    http://blogs.adobe.com/aharui/2007/04/more_thinking_about_item_rende.html
    http://stackoverflow.com/questions/309897/what-is-the-best-way-to-display-html-in-flex
    http://www.actionscript.org/forums/archive/index.php3/t-107897.html
    If this post answers your question or helps, please mark it as such.

  • Export/Add Datagrid to programmatically generated PowerPoint presentation

    Hi All,
    I would like to ask you, how could I export or add DataGrid from my app to the powerpoint presentation?
    I know how to create an ppt, but I cannot find solution for export. 
    Appreciate your suggestions
    Thank you!
    Mathh

    The DataGrid control has no built-in export functionality. The best thing you can do out-of-the-box is copy/paste (select all data in the DataGrid in your WPF application and paste it into Powerpoint presentation).
    If you want some more sophisticated export mechanism you will have to implement it yourself. Please check out my blog post about how to export data from a DataGrid for more information and how to get started:
    http://blog.magnusmontin.net/2013/09/29/export-data-from-a-datagrid/.
    But since the DataGrid displays tabular data you may find it hard to export to a Powerpoint presentation which is nothing like a grid or table.
    I hope you don't expect anyone here to write an export method for you because this may not be trivial and that's not what the forums are for. But my blog post should give you the idea as it contains the full code for being able to export data into a
    .csv file.
    Hope that helps.
    Please remember to mark helpful posts as answer to close your threads.

  • How to populate a combobox2 when value selected from combobox1, both are present in datagrid

    Hi,
    I have a mx:datagrid which has 2 columns that has 1 component each, say combobox1,combobox 2
    when i select a value from combobox 1 i need to populate the combobox 2, how can it be done kindly suggest,
    The rows of datagrid can increase or decrease, having the combo boxes within it, based on user button click say AddRow, DeleteRow

    try these links:
    http://sharepoint.stackexchange.com/questions/103682/autopopulate-form-fields-based-on-selection-in-people-picker-column-using-javasc
    http://sharepoint.stackexchange.com/questions/80261/people-picker-not-getting-populated-in-the-sharepoint-site
    http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx

  • Getting NaN in Olap Datagrid

    Hi,
    I am using the olapdatagrid and am using a date field as a
    column axis. For the other axis I have an account hierarchy. For
    the measure I am using a sum aggregator.
    When aggregated the data contains 5 different dates. The
    problem is that where an account contains values for only some of
    the dates, the olapdatagrid displays NaN which looks as though
    there is an error.
    I would prefer it displayed 0 but a blank (as per the Excel
    Pivot Control) would suffice.
    Any suggestions.

    OK, actually the answer is in the documentation. You can
    apply a defaultCellString property to the datagrid. In this case I
    am choosing the value "" to have the grid show a blank.

  • Suppressing  the total row and column in OLAP datagrid

    I have created an OLAPDatagrid and everything looks fine
    except that I don't want to show the '(All)' row and column in the
    grid. Is there a way to suppress them?
    Thanks,
    Fred

    Instead of using members() in the query use children() for
    the attribute/hierarchy.

  • Direction Needed: Storing calculated values from datagrid column in order to call values into graph

    Hi all,
    I am new to Flex/Flash Builder, actionscript, and mxml, so please be kind.
    I have developed a small program that has a component that displays a datagrid fed with information out of a mysql db via a php data services connection. Within that same component (page), I have a graph that charts the dates via a plot chart. I am interested in adding a line series to the graph, but the data I want to use is a calculated field in the datagrid which I used a custom lable function to derive and display. Can someone steer me to the correct method to store such values and how to call them into a chart?
    Some addition information
    Custom label function:
      /* Custom label function for the Delta1 column. Calculates the number of days between the planting date and 10% flower. */
                                  private function calculateTo1stFlower(item:Object, column:GridColumn):String {
                                            var tempDate1:Date = new Date(item.dflower10 - item.dplanting);
                                            return Math.round((tempDate1.time / MS_PER_DAY) + 1).toString();
    /* Number of milliseconds in a day. (1000 milliseconds per second * 60 seconds per minute * 60 minutes per hour * 24 hours per day) */
                                  private const MS_PER_DAY:uint = 1000 * 60 * 60 * 24;
    Within my spark datagrid
    <s:GridColumn width="30" headerText="Δ1" labelFunction="calculateTo1stFlower" ></s:GridColumn>
    I assume I need to store the array of values for this column and then chart the saved values as the xField within the LineSeries. Should I use a class based model?
    The following link seemed like it may be an appropriate path; I am not sure though.
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7b51.html
    Thanks in advance for any support,
    Matthew

    Thanks for trying to post DDL, but you have no idea how to do a data model. You do not know that tables have to have keys, what ISO-11179 is, etc. 
    You have a table that is supposed to model companies. Your singular names says that there is only one company!  There is no company identifier (the industry standard is the DUNS). A customer is not a company. We do not use numeric data types for identifiers;
    do you do math on them? NO!  The attribute property comes after the attribute name (you never heard of ISO-11179). 
    Think about how silly VARCHAR(1) is. 
    CREATE TABLE Companies 
    (company_duns CHAR(9) NOT NULL PRIMARY KEY, 
     company_name VARCHAR(30)NOIT NULL, 
     margin_oil INTEGER NOT NULL, 
     margin_hangar INTEGER NOT NULL, 
     margin_cleaning INTEGER NOT NULL);
    INSERT INTO Companies
     VALUES (1, 'AviatKorea', 100, 125, 200), 
    (2, 'AXHollande', 50, 40, 30), 
    (3, 'BFXNorway', 60, 80, 600), 
    (4, 'EEEFrance', 10, 25, 60);
    CREATE TABLE Company_Tariffs
    (company_duns INTEGER NOT NULL
       REFERENCES Companies(company_duns), 
     tariff_type CHAR(1) NOT NULL
        CHECK (tariff_type IN ('A','B','C','D'),
     PRIMARY KEY (company_duns, tariff_type));
    INSERT INTO Company_Tariffs values (1, 'A'), (2, 'C'), (2, 'D'), (3, 'A'), (4, 'A'), (4, 'C'), (4, 'D')
    SELECT * -- do not use * in production code
      FROM Companies AS C,
           Company_Tariffs AS T 
     WHERE C.company_duns = T.company_duns;
    >> I would like something like with a computed column [ ] that retrieves the different contracts used: <<
    You might but a SQL programmer would not. This violated First Normal Form. It is a display report and is done in the presentation layers. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Possible to limit dimensions and measures when creating presentations?

    We are trying to use OLAP/BI Beans to add BI functionality to our next-generation data warehouse application. This application has its own security framework, with the ability to define permissions/privileges for objects. We need to integrate BI Beans/OLAP with this security framework.
    One of the things we need to do is control which OLAP objects (like dimensions and measures) are available to a given user in the Items tab when creating a presentation. For example, user A might see dimensions Alpha, Bravo and measure Charlie, while user B might see dimensions Delta, Echo and measure Foxtrot.
    We need to be able to apply these dimension/measure restrictions without using different Oracle users, with each having access only to their own OLAP objects. Our data warehousing application does not use Oracle and Oracle users to control security; it has its own internal frameworks for privileges/permissions. We therefore need to find a way to restrict access to OLAP objects in some programmatic way.
    Here's an example of how this might work:
    - I am a clinical analyst. I sign on to the data warehouse application. The data warehouse knows that as a clinical analyst, I have access to a certain list of objects and functionality across the application. One of the apps I have privilege to is the BI Bean Presentation Creation Application, so I click the menu to bring this up. I can now create BI presentations, but since I am a clinical analyst my list of available dimensions and measures do not contain any of the G/L, payroll or other financial OLAP objects.
    - If I signed onto the data warehousing application as a different user, one that has a financial analyst role, I might see a different set of OLAP objects when I run the presentation application application.
    So what we need is some API way to specify which dimensions and measures are available to a given user when they launch the presentation wizard. I've been digging through the BI Beans help and javadoc and have found a few things, but they aren't what I need.
    Here's what I found:
    - setItemSearchPath: this allows you to specify which folders are to be displayed. We want control at the OLAP object level, not at the folder level, so this doesn't work for us
    - setVisibleDimensions: this controls which dimensions are available in the Dimensions tab, not which dimensions can be selected in the Items tab. Doesn't work for us
    - setDimensionContext/setMeasureContext: These might work for us but I haven't been able to get them to retrieve anything yet. It also seems to me that these might set which dimensions/members are initially selected in the Items tab, not the list of dims/measures that are available for selection.
    Any assistance on this matter would be greatly appreciated.
    s.l.

    Reply from one of our developers:
    The get/setMeasureContext and get/setDimensionContext methods are currently only used by the Thick CalcBuilder (in a few limited scenarios) and cannot be used "to scope the dimensions and measures listed in Query and Calc builder based on user access rights".
    The scoping of dimensions and measures based on user access rights should be performed at the MetadataManager/Database level.
    This may change going forward as the real issue here is the static nature of the metadata and a general issue with the GRANT option within the database. So from the database perspective it is not possible to grant select priviledges on a single column of a table.
    The metadata issue is more complex as the OLAP API reads the metadata only once on startup of a session. The list of available measures is based on the GRANT priviledge, so for relational OLAP this limits the data scoping capabilities. In 10g, the metadata for AW OLAP becomes more dynamic and contained and read directly from the AW. Therefore, with an AW OLAP implementation with 10g it could be possible to scope boht dimensions and measures quickly and easily.
    Hope this helps
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • DataGrid does not display XML data

    Hello, and thanks for reading this...
    I am having a problem displaying XMLList data in a DataGrid.
    The data is coming from a Tree control, which is receiving it
    from a database using HTTPService.
    The data is a list of "Job Orders" from a MySQL database,
    being formatted as XML by a PHP page.
    If it would be helpful to see the actual XML, a sample is
    here:
    http://www.anaheimwib.com/_login/get_all_orders_test2.php
    All is going well until I get to the DataGrid, which doesn't
    display the data, although I know it is there as I can see it in
    debug mode. I've checked the dataField property of the appropriate
    DataGrid column, and it appears correct.
    Following is a summary of the relevant code.
    ...An HTTPService named "get_all_job_orders" retrieves
    records from a MySQL database via PHP...
    ...Results are formatted as E4X:
    HTTPService resultFormat="e4x"
    ...An XMLListCollection's source property is set to the
    returned E4X XML results:
    ...The "order" node is what is being used as the top-level of
    the XML data.
    <mx:XMLListCollection id="jobOrdersReviewXMLList"
    source="{get_all_job_orders.lastResult.order}"/>
    ...The "jobOrdersReviewXMLList" collection is assigned to be
    the dataProvider property of a Tree list, using the @name syntax to
    display the nodes correctly, and a change event function is defined
    to add the records to a DataGrid on a separate Component for
    viewing the XML records:
    <mx:Tree dataProvider="{jobOrdersReviewXMLList}"
    labelField="@name"
    change="jobPosForm.addTreePositionsToDG(event)"/>
    ...Here is the relevant "jobPosForm" code (the Job Positions
    Form, a separate Component based on a Form) :
    ...A variable is declared:
    [Bindable]
    public var positionsArray:XMLList;
    ...The variable is initialized on CreationComplete event of
    the Form:
    positionsArray = new XMLList;
    ...The Tree's change event function is defined within the
    "jobPosForm" Component.
    ...Clicking on a Tree node fires the Change event.
    ...This passes an event object to the function.
    ...This event object contains the XML from the selected Tree
    node.
    ...The Tree node's XML data is passed into the positionsArray
    XMLList.
    ...This array is the dataProvider for the DataGrid, as you
    will see in the following block.
    public function addTreePositionsToDG(event:Event):void{
    this.positionsArray = selectedNode.positions.position;
    ...A datagrid has its dataProvider is bound to
    positionsArray.
    ...(I will only show one column defined here for brevity.)
    ...This column has its dataField property set to "POS_TITLE",
    a field in the returned XML record:
    <mx:DataGrid width="100%" variableRowHeight="true"
    height="75%" id="dgPositions"
    dataProvider="{positionsArray}" editable="false">
    <mx:columns>
    <mx:DataGridColumn width="25" headerText="Position Title"
    dataField="POS_TITLE"/>
    </mx:columns>
    </mx:DataGrid>
    In debug mode, I can examine the datagrid's dataProvider
    property, and see that the correct XML data from the Tree control
    is present. However, The datagrid does not display the data in any
    of its 6 columns.
    Does anyone have any advice?
    Thanks for your time.

    Hello again,
    I came up with a method of populating the DataGrid from the
    selected Item of a Tree Control which displays complex XML data and
    XML attributes. After the user clicks on a Tree branch, I call this
    function:
    public function addTreePositionsToDG(event:Event):void{
    //Retrieve all "position" nodes from tree.
    //Loop thru each Position.
    //Add Position data to the positionsArray Array Collection.
    //The DataGrid dataprovider is bound to this array, and will
    be updated.
    positionsArray = new ArrayCollection();
    var selectedNode:Object=event.target.selectedItem;//Contains
    entire branch.
    for each (var position:XML in
    selectedNode.positions.position){
    var posArray:Array = new Array();
    posArray.PK_POSITIONID = position.@PK_POSITIONID;
    posArray.FK_ORDERID = position.@FK_ORDERID;
    posArray.POS_TITLE = position.@POS_TITLE;
    posArray.NUM_YOUTH = position.@NUM_YOUTH;
    posArray.AGE_1617 = position.@AGE_1617;
    posArray.AGE_1821 = position.@AGE_1821;
    posArray.HOURS_WK = position.@HOURS_WK;
    posArray.WAGE_RANGE_FROM = position.@WAGE_RANGE_FROM;
    posArray.WAGE_RANGE_TO = position.@WAGE_RANGE_TO;
    posArray.JOB_DESCR = position.@JOB_DESCR;
    posArray.DES_SKILLS = position.@DES_SKILLS;
    positionsArray.addItem(posArray);
    So, I just had to manually go through the selected Tree node,
    copy each XML attribute into a simple Array, then ADD this Array to
    an ArrayCollection being used as the DataProvider for the DataGrid.
    It's not elegant, but it works and I don't have to use a Label
    Function, which was getting way too complicated. I still think that
    Flex should have an easier way of doing this. There probably is an
    easier way, but the Flex documentation doesn't provide an easy path
    to it.
    I want to thank you, Tracy, for the all the help. I checked
    out the examples you have at www.cflex.net and they are very
    helpful. I bookmarked the site and will be using it as a resource
    from now on.

  • Data not getting displayed in controls present in the tabs

    Hi,
    I am facing problem in binding data to different controls
    exisiting in different tabs of a page from database. I can see the
    values of the controls in first tab, but not in other tabs. And at
    the same time, I can get the values of the datagrid even if is
    present in the later tabs....
    please guide me......

    To do what you want, set creationPolicy="all" on the
    TabNavigator.

Maybe you are looking for

  • Office Web Apps Server 2013 issue

    Dear All, I am encounter problem when I try to open document from my browser. Prompt message will pop-out when it try to preview a document: "sorry, there was a problem and we can't open this document. If this happens again, try opening the document

  • Client Program accessing J2EE entity Bean

    I have trouble find my Course J2EE bean from a client. (The client runs on the same computer but a different VM from the bean.) In Glassfish (Sun Application Server Nine), I set up a simple Container-Managed Entity Bean. I tried to access it from an

  • Copy controls from F2 to CR

    Why system allows to change the Sold To Party, Bill To Party in sales document while creating credit memo request with reference to Billing document? For which all business scenarios we require this? How we can control this?

  • Workflow Message - "Update Was Terminated" while MIRO

    Hi Experts, Please help me in the following  - Requirement : Whenever Invoice (by MIRO) is blocked either due to Price or Amount, a mail should be triggered to a user in his SAP Inbox. Approach : Business Object used - BUS2081.                  Event

  • Help! Handling Fonts for Best Print Quality

    In a PS file, what is the best way to handle fonts, leave them as font or rasterize, before flatening and making PDF?