Horizontal display of parent/child/grandchild on the template troubles

Hello,
I am trying to display horizontally the Child/Grandchild records on my template. I can see the Child/Grandchild records but not the Parent. I'm sure it's an easy fix but it eludes me.
I can send the .rtf template and .xml file to anyone who would like to enlighten me.
Thanks.

Ok. I got the fix back. Thank you.
Looks like the change was that I had the ForEach based on the lines, at the line level, but it should have been on the header level.
Thanks again.
Kkerig

Similar Messages

  • Parent-Child-Grandchild report

    Hi,
    I am trying to create a Parent-Child-Grandchild report, grouping on a value in the Child record set. The scenario that I have encountered is that there may be legitimate dupes in the child record set and if I put a grouping on the child record set the dupes seem to be getting de-duped and all the grandchild records displyed under the one child record. The outout looks like this:
    Ungrouped
    Parent record 1
    ----Child Record 1
    ------------Grandchild record 1
    ----Child Record 2
    ------------Grandchild record 2
    Grouped
    Parent record 1
    ----Child Record 1 - Grouped by Status
    ------------Grandchild record 1
    ------------Grandchild record 2
    Desired Output
    Parent record 1
    - Grouped by Status
    ----Child Record 1
    ------------Grandchild record 1
    ----Child Record 2
    ------------Grandchild record 2
    If I take the grouping off the child record set however, the dupes display and display their respective grandchild records. How can I get the cild recordset to group but to show the grandchild records properly?
    Thanks!

    Hi,
    I am trying to create a Parent-Child-Grandchild report, grouping on a value in the Child record set. The scenario that I have encountered is that there may be legitimate dupes in the child record set and if I put a grouping on the child record set the dupes seem to be getting de-duped and all the grandchild records displyed under the one child record. The outout looks like this:
    Ungrouped
    Parent record 1
    ----Child Record 1
    ------------Grandchild record 1
    ----Child Record 2
    ------------Grandchild record 2
    Grouped
    Parent record 1
    ----Child Record 1 - Grouped by Status
    ------------Grandchild record 1
    ------------Grandchild record 2
    Desired Output
    Parent record 1
    - Grouped by Status
    ----Child Record 1
    ------------Grandchild record 1
    ----Child Record 2
    ------------Grandchild record 2
    If I take the grouping off the child record set however, the dupes display and display their respective grandchild records. How can I get the cild recordset to group but to show the grandchild records properly?
    Thanks!

  • How do i create a parent-child-grandchild form?

    the application module wizard seems intent on creating 2 separate parent child relationships. what am i missing?

    Data Control Palette displays exactly the same structure as view objects in your application module have. Return back to model and edit application module content.
    Is your structure similar? :
    Left side:
    - parent
    - - - child
    - child
    - - - grandchild <-- click this
    Right side:
    - parent
    - - - child <-- the click this and press arrow
    - child1
    - - - grandchild
    Rado

  • Parent/Child/Grandchild ViewLink

    Hello,
    I have a viewobject which is constructed as follows:
    1. ParentViewObject
    2. ChildViewObject via ParentChildViewLink
    3. GrandChildViewObject via ChildGrandChildViewLink
    When going from the parent to the child, the viewobject works as expected.
    When going from the child to the grandchild, no rows are found.
    My belief is I am having a syntax error. If I run the test on the appmodule, the viewobjects work as expected.
    Question: Where can I find information on how to correctly access the child/grandchild view.
    Tks
    Booker Northington II

    The uix file is being called as follows:
    <ctrl:go name="PageName" redirect="true">
    <ctrl:property name="key" >
    <ctrl:selection name="viewTable" key="key" />
    </ctrl:property>
    </ctrl:go>
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:bc4j="http://xmlns.oracle.com/uix/bc4j"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    xmlns:epicTemplate="http://net.btcg.epic/templates">
    <templates xmlns="http://xmlns.oracle.com/uix/ui">
    <templateImport source="/template/templateLibrary.uit"/>
    </templates>
    <bc4j:registryDef>
    <bc4j:rootAppModuleDef name="EpicAppModule"
    definition="epic_bc4j_package.Epic_bc4j_packageModule"
    releaseMode="stateful">
    <bc4j:viewObjectDef name="ClinFunding_View1" rangeSize="3"/>
    </bc4j:rootAppModuleDef>
    </bc4j:registryDef>
    <content>
    <try xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui">
    <catch>
    <displayException/>
    </catch>
    <contents>
    <document>
    <metaContainer>
    <head title="Clin Funding">
    <contents>
    <epicTemplate:epicScrollBarTemplate/>
    <include ctrl:node="/includes/epicScrollBarInclude"/>
    </contents>
    </head>
    </metaContainer>
    <pageLayout xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    title="ClinToClinFundingLink1 View">
    <corporateBranding xmlns="http://xmlns.oracle.com/uix/ui">
    <epicTemplate:epicCorporateBrandingTemplate/>
    </corporateBranding>
    <globalButtons xmlns="http://xmlns.oracle.com/uix/ui">
    <epicTemplate:epicButtonBarTemplate/>
    </globalButtons>
    <pageHeader xmlns="http://xmlns.oracle.com/uix/ui">
    <epicTemplate:epicClinMenuBarTemplate selectedTab="1"/>
    </pageHeader>
    <start xmlns="http://xmlns.oracle.com/uix/ui">
    <epicTemplate:epicSideNavTemplate/>
    </start>
    <tabs xmlns="http://xmlns.oracle.com/uix/ui">
    <epicTemplate:epicTabBarTemplate selectedTab="2"/>
    </tabs>
    <contents>
    <messageBox automatic="true"/>
    <bc4j:rootAppModuleScope name="EpicAppModule">
    <contents>
    <header text="Search">
    <contents>
    <form name="search" method="POST">
    <contents>
    <inlineMessage prompt="Search" vAlign="middle">
    <contents>
    <bc4j:viewObjectScope name="ClinFunding_View1">
    <contents>
    <flowLayout>
    <contents>
    <choice name="attrName"
    data:selectedValue="attrName@ctrl:page"
    shortDesc="Search Column">
    <contents>
    <bc4j:region automatic="true">
    <bc4j:attrStamp>
    <option>
    <boundAttribute name="text">
    <bc4j:attrDefProperty name="name"/>
    </boundAttribute>
    <boundAttribute name="value">
    <bc4j:attrDefProperty name="name"/>
    </boundAttribute>
    </option>
    </bc4j:attrStamp>
    </bc4j:region>
    </contents>
    </choice>
    <textInput name="attrValue" columns="20"
    data:text="attrValue@ctrl:page"
    shortDesc="Search"/>
    </contents>
    </flowLayout>
    </contents>
    </bc4j:viewObjectScope>
    </contents>
    <end>
    <submitButton text="Go" ctrl:event="search"/>
    </end>
    </inlineMessage>
    </contents>
    </form>
    </contents>
    </header>
    <header text="Results">
    <contents>
    <form name="viewForm" method="POST">
    <contents>
    <bc4j:viewObjectScope name="ClinFunding_View1">
    <contents>
    <bc4j:table name="viewTable" automatic="true"
    width="80%"
    alternateText="No rows found">
    <tableSelection>
    <singleSelection selectedIndex="0"
    shortDesc="Select Row">
    <contents>
    <submitButton text="Update"
    ctrl:event="update"/>
    <submitButton text="Delete"
    ctrl:event="delete"/>
    </contents>
    </singleSelection>
    </tableSelection>
    <bc4j:keyStamp>
    <bc4j:rowKey name="key"/>
    </bc4j:keyStamp>
    <bc4j:columnStamp>
    <bc4j:column>
    <columnHeader>
    <bc4j:sortableHeader/>
    </columnHeader>
    <contents>
    <bc4j:input readOnly="true"/>
    </contents>
    </bc4j:column>
    </bc4j:columnStamp>
    </bc4j:table>
    </contents>
    </bc4j:viewObjectScope>
    </contents>
    </form>
    </contents>
    </header>
    </contents>
    </bc4j:rootAppModuleScope>
    </contents>
    <contentFooter>
    <button text="Create" ctrl:event="create"/>
    </contentFooter>
    </pageLayout>
    </document>
    </contents>
    </try>
    </content>
    <handlers>
    <event name="search">
    <bc4j:findRootAppModule name="EpicAppModule">
    <bc4j:findViewObject name="ClinFunding_View1">
    <bc4j:findByExample>
    <bc4j:exampleRow ignoreCase="true">
    <bc4j:exampleAttribute>
    <bc4j:nameBinding>
    <bc4j:parameter name="attrName"/>
    </bc4j:nameBinding>
    <bc4j:valueBinding>
    <bc4j:parameter name="attrValue"/>
    </bc4j:valueBinding>
    </bc4j:exampleAttribute>
    </bc4j:exampleRow>
    </bc4j:findByExample>
    <bc4j:executeQuery/>
    <bc4j:setPageProperty name="attrName">
    <bc4j:parameter name="attrName"/>
    </bc4j:setPageProperty>
    <bc4j:setPageProperty name="attrValue">
    <bc4j:parameter name="attrValue"/>
    </bc4j:setPageProperty>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    <event name="sort" source="viewTable">
    <bc4j:findRootAppModule name="EpicAppModule">
    <bc4j:findViewObject name="ClinFunding_View1">
    <bc4j:sort/>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    <event name="goto" source="viewTable">
    <bc4j:findRootAppModule name="EpicAppModule">
    <bc4j:findViewObject name="ClinFunding_View1">
    <bc4j:goto/>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    <event name="create">
    <ctrl:go name="PrClinLink1_ClinToClinFundingLink1_Create" redirect="true"/>
    </event>
    <event name="update">
    <ctrl:go name="PrClinLink1_ClinToClinFundingLink1_Update" redirect="true">
    <ctrl:property name="key">
    <ctrl:selection name="viewTable" key="key"/>
    </ctrl:property>
    </ctrl:go>
    </event>
    <event name="delete">
    <bc4j:findRootAppModule name="EpicAppModule">
    <bc4j:findViewObject name="ClinFunding_View1">
    <bc4j:findRowByKey>
    <bc4j:keyBinding>
    <bc4j:selectionKey name="viewTable" key="key"/>
    </bc4j:keyBinding>
    <bc4j:handlers>
    <bc4j:removeRow/>
    <bc4j:executeQuery/>
    </bc4j:handlers>
    </bc4j:findRowByKey>
    </bc4j:findViewObject>
    <bc4j:commit/>
    </bc4j:findRootAppModule>
    </event>
    </handlers>
    </page>

  • Parent/Child/Grandchild ViewObject/ViewLink

    I have a viewobject which is constructed as follows:
    1. ParentViewObject
    2. ChildViewObject via ParentChildViewLink
    3. GrandChildViewObject via ChildGrandChildViewLink
    When going from the parent to the child, the viewobject works as expected.
    When going from the child to the grandchild, no rows are found.
    My belief is I am having a syntax error. If I run the test on the appmodule, the viewobjects work as expected.
    Question: Where can I find information on how to correctly access the child/grandchild view.
    Tks
    Booker Northington II

    We are expecting the same challenge, did you ever receive any feedback or work around to resolving this?

  • Parent Child Relationship in the table to be queried.

    Hi guys,
    I have the below query.
    Table 1:
    Column_name Reference
    Value1 Value1
    Value2 Value1
    Table 2:
    Column_name Attributes(child Elements)
    Value1 Child1
    Value1 Child2
    Now my query is to retrieve records as below using both the tables.
    Value1
    Value1.Child1
    Value1.Child2
    Value2
    Value2.Child1
    Value2.Child2
    How can I get such ?
    Regards,
    SQL Developer.

    Hi,
    As Alex said, you should have tried by joining them.
    With Parent As (
    select 'Value1' p_col1,'Value1' P_col2 from dual union all
    select 'Value2','Value1' from dual),
    child as (
    select 'Value1' c_col1,'Child1' c_col2 from dual union all
    select 'Value1','Child2' from dual)
    -- End of sample data
    select p_col1,null c_col2 from parent
    union
    select p_col1,c_col2 from parent,child
    where p_col2=c_col1
    order by p_col1,c_col2 desc
    PRAZY@11gR1> /
    P_COL1 C_COL2
    Value1
    Value1 Child2
    Value1 Child1
    Value2
    Value2 Child2
    Value2 Child1
    6 rows selected.
    Elapsed: 00:00:00.03Regards,
    Prazy

  • Parent Child Grandchild

    Using the sample located @:
    Spry
    1.5 NestedXMLDataSet Sample
    I've been having trouble getting the second level (grandchild
    level) of nested xml to respond to events on the first nested
    dataset (child level). Below are the 2 sample files which I cant
    get working. Do I need to switch to a different approach? Maybe
    master detail with <child> as master and <grandchild>
    as detail. I'm stumped...
    ~~~~~~ Begin XML ~~~~~~~
    <?xml version="1.0" encoding="UTF-8"?>
    <parents>
    <parent id="1">
    <name>John Doe</name>
    <children>
    <child id="1">
    <name>Ricky Dean</name>
    <grandchildren>
    <grandchild id="1">
    <name>Evaline</name>
    </grandchild>
    </grandchildren>
    </child>
    <child id="2">
    <name>Bill Bob</name>
    <grandchildren>
    <grandchild id="2">
    <name>Billy Bob Jr</name>
    </grandchild>
    <grandchild id="3">
    <name>Sally Sue</name>
    </grandchild>
    </grandchildren>
    </child>
    </children>
    </parent>
    <parent id="2">
    <name>Jane Doe</name>
    <children>
    <child id="3">
    <name>Fuzzy</name>
    <grandchildren>
    <grandchild id="1">
    <name>Mary Dean</name>
    </grandchild>
    </grandchildren>
    </child>
    <child id="4">
    <name>Buster</name>
    <grandchildren>
    <grandchild id="2">
    <name>Buster Jr</name>
    </grandchild>
    <grandchild id="3">
    <name>Mary May</name>
    </grandchild>
    </grandchildren>
    </child>
    </children>
    </parent>
    </parents>
    ~~~~~~ End XML ~~~~~~~~
    ~~~~~~ Begin HTML ~~~~~~~
    <html xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <title>XML</title>
    <script src="SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script src="SpryAssets/SpryNestedXMLDataSet.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var dsParent = new Spry.Data.XMLDataSet("family.xml",
    "parents/parent");
    var dsChild = new Spry.Data.NestedXMLDataSet(dsParent,
    "children/child");
    var dsGrandChild = new Spry.Data.NestedXMLDataSet(dsChild,
    "grandchildren/grandchild");
    //-->
    </script>
    </head>
    <body>
    <div spry:region="dsParent dsChild dsGrandChild">
    <table>
    <tr>
    <th>Parent</th>
    <th>Child</th>
    <th>Grandchild</th>
    </tr>
    <tr>
    <td>
    <ul spry:repeatchildren="dsParent" spry:choose="">
    <li spry:when="{ds_CurrentRowNumber} == {ds_RowNumber}"
    spry:setrow="dsParent" spry:select="select" spry:hover="hover"
    spry:selected="">{dsParent::name}</li>
    <li spry:default="" spry:setrow="dsParent"
    spry:select="select"
    spry:hover="hover">{dsParent::name}</li>
    </ul>
    </td>
    <td >
    <ul spry:repeatchildren="dsChild">
    <li spry:when="{ds_CurrentRowNumber} == {ds_RowNumber}"
    spry:setrow="dsChild" spry:select="select" spry:hover="hover"
    spry:selected="">{dsChild::name}</li>
    <li spry:default="" spry:setrow="dsChild"
    spry:select="select"
    spry:hover="hover">{dsChild::name}</li>
    </ul>
    </td>
    <td>
    <ul spry:repeatchildren="dsGrandChild">
    <li>{dsGrandChild::name}</li>
    </ul>
    </td>
    </tr>
    </table>
    </div>
    </body>
    </html>
    ~~~~~~ End HTML ~~~~~~~~

    Hi Asa B,
    You need to add spry:choose="" to <ul
    spry:repeatchildren="dsChild"> so it looks like
    <ul spry:repeatchildren="dsChild" spry:choose="">
    Cheers,
    nomadcanuck

  • How to view a parent-child relationship on the Command line (cmd)

    Hi
    I'm a newbie. I'm trying to insert some values using a small application into an oracle db table and I got this message:
    "java.sql.SQLException: ORA-02291: integrity constraint (DATA.SYS_C002764) violated - parent key"
    From my point of view(thinking) I'm trying to insert data into a child table which references a parent table.
    My Q is how can I see which table(s) are involve here per command line? What type of querry if any can I give onto the cmd line to see the relationships of tables which references each other? I'll really much appreciate your respond. Thanks in advance!

    Hi,
    Go to application navigator, model node by clicking on the entity, in the structure panel you'll see the list of defined constraints.
    But you better give relevant names to your database constraints. I create them at the database level, example
    for a primary key of table emp: DEPT_PK, foreign key in child table dept: DEPT_EMP_FK
    When you create the entity in jdev, the ide will use those names and it will be easier to identify them.
    Regards
    Frederic

  • How to create a parent-child-grandchild portal form: Help Urgently!

    Hi All,
    I have a master table and a detail table. I also have a detail table based on the first detail table. How do I create a master-detail-detail_detail portal form ? Is this possible? if not, is there any other way to do it ?
    Thanks.

    HI,
    This is not possible with Portal Forms. You can try using jsp to do this.
    Thanks,
    Sharmila

  • Parent Child Dimension Not displaying Name value.

    I have a parent Child attribute in my dimension.  It show the correct ID value in the reports but when I change the value from the NameColumn to be something else it still only shows the ID value. 
    I have an identical case in another dimension and it is working correctly.  However this dimension for some reason does not seem to work and I believe they are built the same way I must be missing something.  I have tried to show the OrgNodeID
    and tried to display the OrgNodename but neither displays all it displays is the intdimParentOrgNodeID.
    My dimension table looks something like this
    intdimOrgNodeID int Key (surreget key)
    intOrgNodeID int (Actual ID)
    intDimParentOrgNodeID
    intOrgNodeName
    In the Propertys I have set
    KeyColumns  = tbldimOrgNode.intDimParentOrgNodeID
    NameColumn = tbldimOrgNode.intOrgNodeID
    Parent-child values
    =NonLeafDataVisible
    =*(Direct)
    =
    =ParentIsBlankSelfOrMissing
    =(none)
    Ken Craig

    I have been pulling my hair out for days to find this and what I finally found that resolved this shocked me and I am still not sure why it would matter.  You can see below my table and then dimension info.  Although I agree my OrgNode ID attribute
    is really not needed in AS and could be removed.   In places where that is used we could instead rename the key column Dim OrgNode ID to OrgNode ID.    However why the key attribute must have the name column set to intOrgNodeID
    instead of just using the Key value of intdimOrgNodeID is what I am lost at. 
    Outside of this parent dimension I have never seen issues with this.  I want to say sometimes in the past I have seen duplicates if I use the surreget key to display the actual ID so I have normally left that as a key and just added another attribute
    to house the actual ID, like I did below. 
    Can someone explain to me this and what is the best suggested practice here.
    My table is like this
    intdimOrgNodeID int Key (surreget key)
    intOrgNodeID int (Actual ID from source and used by customers)
    intDimParentOrgNodeID (ID used for parent child (it is the Parent intOrgNodeID surreget
    key intdimOrgNodeID))
    intOrgNodeName (Source Name)
    My AS dimension is like below
    Dim OrgNode ID
    AttributeHierarchyVisible=False
    KeyColumns = tbldimOrgNode.intDimOrgNodeID (Integer)
    NameColumns= tbldimOrgNode.intDimOrgNodeID (Integer)
    OrgNode ID
    AttributeHierarchyVisible=True
    KeyColumns = tbldimOrgNode.intOrgNodeID (Integer)
    NameColumns= tbldimOrgNode.intOrgNodeID (Integer)
    OrgNode Hierarchy ID
    Usage=Parent
    AttributeHierarchyVisible=True
    KeyColumns = tbldimOrgNode.intDimParentOrgNodeID              
    NameColumns= tbldimOrgNode.intOrgNodeID (WChar)
    Change I had to make was this
    Dim OrgNode ID
    From     NameColumns= tbldimOrgNode.intDimOrgNodeID (Integer)
    to           
    NameColumns= tbldimOrgNode.intOrgNodeID (Integer)
    Ken Craig

  • Parent Child tables to be displayed as nested table

    I want to design a report on External DB tables that have  a parent - child relationship.
    The way I want the report is to show the child entries nested within each parent row and I want to have a
    "collapse/hide" button on each row when clicked to toggle between collapsing/hiding all the child entries on a parent row.

    First U have to crate Extended View Object to your actual View obj.
    Now take Page with Panel  Splitter ,on First facet drag View obj as table and on second Facet Drag Extended View Obj as table.On page loading U have delete all rows from Extended View object.And then u have write bean code on button click to get current select rows from above view objct,and for Filter rows from Second View obj according to selection of rows from first view obj...

  • Parent Child Hierarchy - Display other dimension fields against parent

    Hi,
    I have a Dimension for Customer with a parent child hierarchy.  The problem I have is with additional fields within the dimension.  See data below:
    Row Labels
    Customer Group   Description
    Value
    500116 - OOO "Starline"
    30
       500116 - OOO "Starline"
    A - Dealer
    5
       818781 - OKNO
    Direct / End User
    10
       400464 - OKNO TV
    Other
    15
    500123 - VIDAU SYSTEMS
    300
      500123 - VIDAU SYSTEMS
    A - Dealer
    100
      400396 - VIDAU SYSTEMS
    Other
    200
    Grand   Total
    330
    I want the Customer Group to show "A - Dealer" for the parent of the first row (against "500116 - OOO "Starline"), but its shown blank.  Also, I would like other fields to do the same.  As the parent relates to a row in
    my dimension table, this should be possible?
    Thanks in advance,
    Dominic

    Hi,
    Sorry it took me a while to come back to this.
    My dimension has the following columns:
    ID
    Customer
    Customer Group
    Parent
    1
    500116
    A - Dealer
    NULL
    2
    818781
    Direct / End User
    1
    2
    400464
    Other
    1
    My measure has 3 rows:
    customerKey
    value
    1
    5
    2
    10
    3
    15
    So when this is presented in the cube, the 3 items with values are correctly presented but my problem is that the "Customer Group" doesnt show against record 1 (the parent).  In usual circumstances my users will not expand the hierarchy, i
    just want the associated row value shown.
    Does this make more sense?  I hope so, and i hope somebody can help me resolve it.
    Thanks,
    Dom

  • Default filters which the users can delete (in parent/child setup)?

    Is it possible in Latitude 2.2.2 to have filters (range filters, refinement filters etc.) applied by default (meaning users see these filters when they log-in), but they can also remove them (using Breadcrumbs portlet) if they wanted to? We tried using the data source (JSON) filters (using "baseFunctions" setting) where we have a parent/child setup, but it seems those filters cannot be removed once applied. Note that the filters can be removed if we do not have a parent/child relationship amongst the data sources, but as soon as we introduce a parent/child relationship amongst the data sources (which we need to have), the filters get sticky and cannot be deleted. Any reason why parent/child relationship causes the filters to become sticky? Any (alternate) means to achieve what we want?

    Thanks Dave - that issue is the issue we are facing, and it does have a hotfix - I will contact support and get it for our client. Thanks for your help.
    Mahim.

  • Help needed in retrieving parent child relationship values

    Hi,
    I have a requirement to get parent child relationship values as below.
    Ex: Address table
    cont cont_code state state_code
    C1 10 S1 1
    C1 10 S2 2
    C1 10 S3 3
    C2 20 S4 4
    C2 20 S5 5
    C3 30 S6 6
    C3 30 S7 7
    C3 30 S8 8
    I want a result of country/state and corresponding code like below.
    corresponding states should be displayed under each country with some space appended to it.
    Geography code
    C1 10
    S1 1
    S2 2
    S3 3
    C2 20
    S4 4
    S5 5
    C3 30
    S6 6
    S7 7
    S8 8
    I am using oracle 10g version.
    Thanks in advance.

    Hi,
    When you post formatted text (like your output) on this site, type these 6 characters:
    \(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
    I think you're saying that you want this output:GEOGRAPHY CODE
    C1 10
    S1 1
    S2 2
    S3 3
    C2 20
    S4 4
    S5 5
    C3 30
    S6 6
    S7 7
    S8 8
    If so, UNION, as Hoek suggested, is a good way.
    GROUP BY ROLLUP is more efficient, but harder to understand:SELECT     CASE
              WHEN GROUPING (state) = 1
              THEN cont
              ELSE ' ' || state
         END          AS geography
    ,      CASE
              WHEN GROUPING (state) = 1
              THEN MAX (cont_code)
              ELSE MAX (state_code)
         END          AS code
    FROM     t
    GROUP BY cont
    ,      ROLLUP (state)
    ORDER BY cont
    ,      state          NULLS FIRST
    By the way, this looks like a bad table design.
    In a relational database, the fact that the name 'C1' belongs to cont_code 10 should only be stored in one place.  You have the same information on 3 separate rows.
    Also, if 'C1' and 'S1' are both names, they should probably be in the same column, so that (to give just one example) you can find the information about 'x1' without knowing if it is a cont or a state.
    A better design would be.NAME     CODE     PARENT     DSCR
    ====     ====     ======     ====
    C1     10          CONT
    S1     1     10     STATE
    S2     2     10     STATE
    S3     3     10     STATE
    C2     20          CONT
    S4     4     20     STATE
    S5     5     20     STATE
    C3     30          CONT
    S6     6     30     STATE
    S7     7     30     STATE
    S8     8     30     STATE
    If the data is this simple, then the dscr column isn't needed.  Whether parent is NULL or not tells whether the rows represents a cont or a state.
    To get the results you want from a table like this, you could use CONNECT BY.  Using either UNION or ROLLUP, you have to know, at the time you write the query, how many levels there will be in the parent-child tree, and the length of the code is proportional to that depth, and the table has to be changed if you ever need to add another level.  CONNECT BY can handle any number of levels, and the length and complexity of the code is the same whether you have just 2 levels (countries and strates), or 7 levels (continents, regions, countiries, states, districts, cities and neighborhoods) or 72 levels.  The table doesn't need any more columns, no matter how deep the tree gets.
    Edited by: Frank Kulash on Sep 16, 2010 11:54 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • OBIEE11g - Hierarchy parent-child with a factable measure(poor performance)

    Hi
    I have a star model with a hierarchy parent child, joined to the fact table.
    Creating a new analysis, and adding the hierarchy column with any other field from any dimension (on selected columns or filters) all works fine, and the hierarchy displays every level very fast.
    But adding a measure from the fact table, the hierarchy performance drops dramatically and I have to wait 20-30 seconds to see each new level displayed.
    Taking a look at the SQL launched, seems to be all right:
    The measure is a COUNT(DISTINCT factable.field) and the group by is done by Parent,Child fields in the hierarchy table.
    Is there any other way to set up this hierarchy? Why the measures are reducing the performance?
    Any comment will be helpful.
    Thanks in advance.

    Try these
    Use Oracle Enterprise Manager (EM) URL to monitor end to end OBIEE real time performance: http://<server>:7001/em
    In Oracle Business Intelligence 11g, the perfmon URL is still valid to use i.e. http://<server>:9704/analytics/saw.dll?Perfmon
    Check these
    http://www.rittmanmead.com/files/biforum2012/ranka_performance.pdf
    http://docs.oracle.com/cd/E17904_01/web.1111/e13814/jvm_tuning.htm
    https://blogs.oracle.com/pa/entry/obiee_ibm_jdk_tuning_for
    Support note OBIEE 11g Infrastructure Performance Tuning Guide Doc ID 1333049.1
    If helps mark and update back :)

Maybe you are looking for