Hierarchy display child and parent nodes -- Urgent Please

Sorry wrong forum
Message was edited by:
        Shree Sunder

I like ListAgg :D
with RELATION(PARENT,CHILD) as(
select NULL,'A' from dual union all
select 'A', 'B' from dual union all
select 'A', 'C' from dual union all
select 'B', 'D' from dual union all
select 'B', 'E' from dual union all
select 'D', 'F' from dual union all
select 'C', 'G' from dual union all
select NULL,'H' from dual union all
select 'H', 'I' from dual union all
select 'H', 'J' from dual)
SELECT ListAgg(child,'<-')
       within group(order by Level desc) as revPath
FROM relation
START WITH child = 'F'
CONNECT BY PRIOR parent = child;
revPath
A<-B<-D<-F

Similar Messages

  • How To Display  attributes of Child Node and Parent Node in same view

    Suppose I have two view Carview and CarDetail View...IN Component context I have Parent Node Called Cars and It have its attribute as Price,Warranty,Year and also One Child Node Called as Brand Name Whose attribute are PrimaryBrand and SecondaryBrand..Now If I do Mapping of My First View i.e CarView with Child node of BrandName..and then I Have To Show Whole Detail of Car in CarDetailView.......How Can I Achieve it..

    Hi Vinay,
    You can map the child node and even the paren tnode to the same view if u want to display in the same window..
    If not if ur requirment is to dispaly in the sme view but should not map the child and parent to the Same view then you can take another new view.. and insert 2 view containers and then add the Child view and parent view in that view containers and then Diaplay the newly created view.
    Regards,
    Raju Bonagiri

  • Child and Parent Threads

    I have a parent thread class PThread which
    instantiates some child threads CThread in its run()
    method..
    Now Child threads need to give their status/information
    back to Parent thread periodically.
    Can I child thread callback any function of Parent
    thread

    Actually in my case, 1 parent Thread is running and it instantiates multiple child Threads (the number will be decided based on input from some file)....Now these Child Threads are doing some measurements...Each Child Thread is maintaining a bool variable
    "isActive"...If the measurement is not bein taken, it sets the isActive flag to false, otherwise true...(Different Child threads have their own "isActive" Status)...
    Now, there are Some other classes in System who are interested in knowing which Measurements are Active....(that means they want to know the status of Individual Child threads).....These classes are
    interacting with Parent class only....
    That's why I wanted individual Childs to update their current status
    periodically to Parent , so that when Parent is asked this information
    from Other classes, it can Consolidate and present the data....
    This was the only purpose, why I asked whether we can call from
    inside Child Thread, any functon of Parent Thread..
    What I understood from your comments that if Child Thread has access to Parent Thread's Object....(wich should be passed to it during new),
    it can callback Parent's functions.
    That should solve the purpose.....
    Regarding stopping of threads, Parent thread is itself gets information/interrupt from some other class to stop itself... when it
    gets the information, it will stops the Child threads too...I was thinking of calling some stop()
    function of individual child threads which will call their interrupt()..
    And at the end I will call the interrupt() of Parent class....
    I don't know much about usage of join(), so will have to study more
    about how can I do it better.
    Also one thing more:-
    Both Child and Parent Thread classes are extending Thread.
    They don't have to extend from any other class...I have to
    write specific functionality in run() function of parent and class.
    Should I change it to runnable....Why did you advised against
    extending threads

  • Treeview Add Child to Parent Node Without Creating a New Parent

    I have a treeview setup with a HierarchicalDataTemplate in my XAML as follows:
    <TreeView Grid.Column="1" Grid.Row="0" ItemsSource="{Binding treeViewObsCollection}">
    <TreeView.ItemTemplate>
    <HierarchicalDataTemplate ItemsSource="{Binding mainNodes}">
    <TextBlock Text="{Binding topNodeName}"/>
    <HierarchicalDataTemplate.ItemTemplate>
    <DataTemplate>
    <TextBlock Text="{Binding subItemName}"></TextBlock>
    </DataTemplate>
    </HierarchicalDataTemplate.ItemTemplate>
    </HierarchicalDataTemplate>
    </TreeView.ItemTemplate>
    </TreeView>
    Here is the ViewModel which is set as the Data Context for the XAML File.
    class AdvancedErrorCalculationViewModel : ViewModelBase
    static ObservableCollection<TreeViewClass> _treeViewObsCollection = new ObservableCollection<TreeViewClass>();
    public static ObservableCollection<TreeViewClass> treeViewObsCollection { get { return _treeViewObsCollection; } }
    public class TreeViewClass : ViewModelBase
    public TreeViewClass(string passedTopNodeName)
    topNodeName = passedTopNodeName;
    mainNodes = new ObservableCollection<TreeViewSubItems>();
    public string topNodeName
    get { return this.GetValue<string>(); }
    set { this.SetValue(value); }
    public ObservableCollection<TreeViewSubItems> mainNodes { get; private set; }
    public class TreeViewSubItems : ViewModelBase
    public TreeViewSubItems(string passedSubItemName, string passedSubItemJobStatus)
    subItemName = passedSubItemName;
    subItemJobStatus = passedSubItemJobStatus;
    public string subItemName
    get { return this.GetValue<string>(); }
    set { this.SetValue(value); }
    public string subItemJobStatus
    get { return this.GetValue<string>(); }
    set { this.SetValue(value); }
    public static void AddTreeViewItems(string passedTopNodeName, string passedChildItemName, string passedChildItemJobStatus)
    treeViewObsCollection.Add(new TreeViewClass(passedTopNodeName)
    mainNodes =
    new TreeViewSubItems(passedChildItemName, passedChildItemJobStatus)
    The problem lies with the AddTreeViewItems method
    seen above. Currently, if I call the method by let's say:
    AdvancedErrorCalculationViewModel.AddTreeViewItems("Parent","Child 1", "Completed");
    it creates the parent and child nodes just fine. No issues there.
    However, if I call the method again with the same Parent name but a different Child; for example: 
    AdvancedErrorCalculationViewModel.AddTreeViewItems("Parent","Child 2", "Completed");
    It creates a new Parent node with a child node Child 2 instead. Thus, I have something like this:
    - Parent
    - Child 1
    - Parent
    - Child 2
    I would like to modify this function so that if the parent name is the same, the child node should belong under the previous Parent instead
    of under a new Parent node. Something like this:
    - Parent
    - Child 1
    - Child 2
    Could anyone help me modify my code to detect if the Parent node exists in the observablecollection already and if so, place the child node under the existing parent? The main problem I am facing is trying to add items to a previously created observable collection
    with an existing hierarchy because I don't know how to access the previous observable collection anymore. Help me with this please.
    Thanks in advance. :)

    You need to try and find an existing entry and if it's there add the child to that instead.
    I notice you're  a student and I guess this is probably an assignment.
    By the way.
    I suggest you work on the name of your collections and classes there.
    EG A class should be singular but way more meaningfull than treeviewsubitem.
    Anyhow, finding the top node could be done using linq.  Since you can get none, SingleOrDefault is the method to use.
    Thus something like:
    TreeViewClass tvc = treeViewObsCollection.Where
    (x=>x.Title == passedTopNodeName).SingleOrDefault();
    Will give you tvc null or the qualifying entry.
    If it's null, do what you have now.
    If it's not then add the child item to tvc.
    tvc is a reference to the TreeViewClass you have in that collection.
    Please don't forget to upvote posts which you like and mark those which answer your question.
    My latest Technet article - Dynamic XAML

  • JTree cut and paste multiple child and ancestor nodes not function correct

    Hello i'm creating a filebrowser for multimedia files (SDK 1.22) such as .jpg .gif .au .wav. (using Swing, JTree, DefaultMutableTreeNode)
    The problem is I want to cut and paste single and multiple nodes (from current node til the last child "top-down") which partly functions:
    single nodes and multiple nodes with only one folder per hierarchy level;
    Not function:
    - multiple folders in the same level -> the former order gets lost
    - if there is a file (MMed. document) between folders (or after them) in the same level this file is put inside one of those
    I tried much easier functions to cope with this problem but every time I solve one the "steps" the next problem appears...
    The thing I don't want to do, is something like a LinkedList, Hashtable (to store the nodes)... because the MMed. filebrowser would need to much resources while browsing through a media library with (e.g.) thousands of files!
    If someone has any idea to solve this problem I would be very pleased!
    Thank you anyway by reading this ;)
    // part of the code, if you want more detailed info
    // @mail: [email protected]
    import java.util.Enumeration;
    import javax.swing.*;
    import javax.swing.tree.*;
    // var declaration
    static Enumeration en;
    static DefaultMutableTreeNode jTreeModel, lastCopiedNode, dmt, insert, insertParent, insertSameFolder;
    static String varCut;
    static int index= 0;
    static int counter = 0;
    /* cut function */
    if (actionCommand.equals ("cut"))
         // get the selected node (DefaultMutableTreeNode)
         lastCopiedNode = (DefaultMutableTreeNode)  selPath.getLastPathComponent ();
         // get the nodes in an Enumeration array (in top- down order)
         en = dmt.preorderEnumeration();
         // the way to make sure if it is a cut or a copied node
         varCut = "cut";
    /* paste function */
    if (actionCommand.equals ("paste"))
    // node is cut
    if (varCut == "cut")
    // is necessary for first time same folder case
    insertParent = dmt;
    // getting the nodes out of the array
    while(en.hasMoreElements())
         // cast the Object to DefaultMutableTreeNode
         // and get stored (next) node
         insert = (DefaultMutableTreeNode) en.nextElement();
    // check if the node is a catalogue when getRepresentation()
    // is a function of my node creating class (to know if it is
    // a folder or a file)
    if (insert.getRepresentation().equals("catalogue"))
         // check if a "folder" node is inserted
         if (index == 1)
              counter = 0;
              index = 0;
         System.out.println ("***index and counter reset***");
         // the node is in the same folder
         // check if the folder is in the same hierarchy level
         // -> in this case the insertParent has to remain
         if (insert.getLevel() == insertParent.getLevel())
              // this is necessary to get right parent folder
              insertSameFolder = (Knoten) insert.getParent();
              jTreeModel.insertNodeInto (insert, insertSameFolder, index);
    System.out.println (">>>sameFolderCASE- insert"+counter+"> " + String.valueOf(insert) +
              "\ninsertTest -> " + String.valueOf(insertTest)
              // set insertParent folder to the new createded one
              insertParent = insert;
              index ++;
         else // the node is a subfolder
              // insertNode
              jTreeModel.insertNodeInto (insert, insertParent, index);
              // set insertParent folder to the new createded one
              insertParent = insert;
    System.out.println (">>>subFolderCASE- insertParent"+counter+"> " + String.valueOf(insertParent) +
              "\ninsertParent -> " + String.valueOf(insertParent)
              index ++;
    else // the node is a file
         // insertNode
         jTreeModel.insertNodeInto (insert, insertParent, counter);
         System.out.println (">>>fileCASE insert "+counter+"> " + String.valueOf(insert) +
         "\ninsertParent -> " + String.valueOf(insertParent)
    counter ++;
    // reset index and counter for the next loop
    index = 0;
    counter = 0;
    // reset cut var
    varCut = null;
    // remove the node (automatically deletes subfolders and files)
    dmt.removeNodeFromParent (lastCopiedNode);
    // if node is a copied one
    if varCut == null)
         // insert copied node the same way as for cut one's
         // to make it possible to copy more than one node
    }

    You need to use a recursive copy method to do this. Here's a simple example of the copy. To do a cut you need to do a copy and then delete the source.
    import java.io.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    import java.awt.BorderLayout;
    import java.awt.Container;
    import java.awt.event.*;
    import java.util.*;
    public class CopyTree extends JFrame
         Container cp;
         JTree cTree;
         JScrollPane spTree;
         DefaultTreeModel cModel;
         CNode cRoot;
         JMenuBar menuBar = new JMenuBar();
         JMenu editMenu = new JMenu("Edit");
         JMenuItem copyItem = new JMenuItem("Copy");
         JMenuItem pasteItem = new JMenuItem("Paste");
         TreePath [] sourcePaths;
         TreePath [] destPaths;
         // =====================================================================
         // constructors and public methods
         CopyTree()
              super("Copy Tree Example");
              addWindowListener(new WindowAdapter()
              {public void windowClosing(WindowEvent evt){System.exit(0);}});
              // edit menu
              copyItem.addActionListener(new ActionListener()
              {public void actionPerformed(ActionEvent e){mnuCopy();}});
              editMenu.add(copyItem);
              pasteItem.addActionListener(new ActionListener()
              {public void actionPerformed(ActionEvent e){mnuPaste();}});
              editMenu.add(pasteItem);
              menuBar.add(editMenu);
              setJMenuBar(menuBar);
              buildModel();
              cp = getContentPane();
              cTree = new JTree(cModel);
              spTree = new JScrollPane(cTree);
              cp.add(spTree, BorderLayout.CENTER);
              pack();
         static public void main(String [] args)
              new CopyTree().show();
         // =====================================================================
         // private methods - User Interface
         private void mnuCopy()
              sourcePaths = cTree.getSelectionPaths();
         private void mnuPaste()
              TreePath sp, dp;
              CNode sn,dn;
              int i;
              destPaths = cTree.getSelectionPaths();
              if(1 == destPaths.length)
                   dp = destPaths[0];
                   for(i=0; i< sourcePaths.length;i++)
                        sp = sourcePaths;
                        if(sp.isDescendant(dp) || dp.isDescendant(sp))
                             JOptionPane.showMessageDialog
                                  (null, "source and destinations overlap","Paste", JOptionPane.ERROR_MESSAGE);
                             return;
                   dn = (CNode)dp.getLastPathComponent(); // the node we will append our source to
                   for(i=0; i< sourcePaths.length;i++)
                        sn = (CNode)sourcePaths[i].getLastPathComponent();
                        copyNode(sn,dn);
              else
                   JOptionPane.showMessageDialog
                        (null, "multiple destinations not allowed","Paste", JOptionPane.ERROR_MESSAGE);
         // recursive copy method
         private void copyNode(CNode sn, CNode dn)
              int i;
              CNode scn = new CNode(sn);      // make a copy of the node
              // insert it into the model
              cModel.insertNodeInto(scn,dn,dn.getChildCount());
              // copy its children
              for(i = 0; i<sn.getChildCount();i++)
                   copyNode((CNode)sn.getChildAt(i),scn);
         // ===================================================================
         // private methods - just a sample tree
         private void buildModel()
              int k = 0;
              cRoot = new CNode("root");
              cModel = new DefaultTreeModel(cRoot);
              CNode n1a = new CNode("n1a");
              cModel.insertNodeInto(n1a,cRoot,k++);
              CNode n1b = new CNode("n1b");
              cModel.insertNodeInto(n1b,cRoot,k++);
              CNode n1c = new CNode("n1c");
              cModel.insertNodeInto(n1c,cRoot,k++);
              CNode n1d = new CNode("n1d");
              cModel.insertNodeInto(n1d,cRoot,k++);
              k = 0;
              CNode n1a1 = new CNode("n1a1");
              cModel.insertNodeInto(n1a1,n1a,k++);
              CNode n1a2 = new CNode("n1a2");
              cModel.insertNodeInto(n1a2,n1a,k++);
              CNode n1a3 = new CNode("n1a3");
              cModel.insertNodeInto(n1a3,n1a,k++);
              CNode n1a4 = new CNode("n1a4");
              cModel.insertNodeInto(n1a4,n1a,k++);
              k = 0;
              CNode n1c1 = new CNode("n1c1");
              cModel.insertNodeInto(n1c1,n1c,k++);
              CNode n1c2 = new CNode("n1c2");
              cModel.insertNodeInto(n1c2,n1c,k++);
         // simple tree node with copy constructor
         class CNode extends DefaultMutableTreeNode
              private String name = "";
              // default constructor
              CNode(){this("");}
              // new constructor
              CNode(String n){super(n);}
              // copy constructor
              CNode(CNode c)
                   super(c.getName());
              public String getName(){return (String)getUserObject();}
              public String toString(){return  getName();}

  • Displaying member and parent in same row

    I'm using Hyperion Financial Reports and Web Analysis v9.3.1. How can I display a member parent and child name in the same row? The member selection is dynamically retrieving "Children of...(Inclusive)" and I want to see both parent and child displayed together.
    It does not matter to me whether it is accomplished through member selection or some kind of function/formula. Even if the dynamic member selection does not work and members must be individually selected, I'll take what I can get.
    My desired output is below:
    .......................................Sales
    Arizona.....Phoenix..............$100
    ...............Scottsdale..........$90
    California...Los Angeles........$110
    ...............Sacramento........$75
    (Sorry. This doesn't render well in plain text)
    I will need to create this in both Financial Reports and Web Analysis, so advice for both would be greately appreciated.
    Edited by: user12237686 on Dec 11, 2009 11:31 AM
    Edited by: user12237686 on Dec 11, 2009 1:35 PM

    Insert an other Sales column and make sure that will be the first column.
    Now select the members in the corresponding rows where ever you needed. You can select [None] as a member selection if you don't want to
    select members for some other combinations and you can put a customized 'no heading' for display.
    Not sure if it exactly works for your need, I am just giving my idea!
    --Ram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • XML childs and parent in same DataGrid

    Hi, if I have a XML with this structure:
    <product>
         <description>Cel Motorola 12</description>
         <childS>
              <child>secret data</child>
         </childS>
    </product>
    In my data grid, I put:
    <mx:DataGrid id="dataGridFaixas" dataProvider="{_myXML}" left="0" right="0" top="0" bottom="0" fontSize="9" borderStyle="none">
        <mx:columns>
            <mx:DataGridColumn dataField="product.childS.child" headerText="Cd. Site" width="50"/>
        </mx:columns>
    </mx:DataGrid>
    This is ok, but the data exibth is: "<child>secret data</child>" and no "secret data"...
    help?

    I decided flattern de XML strutcture before set as dataProvider on datagrid, revolve... :|

  • XSD get all node and all leaf of all node URGENT please!

    I am want write a java program that will parse an xml schema and obtain all nodes and all leaf of all nodes
    samebody can help me?

    i use this, but i can only can print this:
    /quotazione
    /quotazione/ORG_ID
    /quotazione/CUSTOMER_ID
    /quotazione/quot
    /quotazione/customer
    but the schema is:
    <xs:schema
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xdb="http://xmlns.oracle.com/xdb"
    xdb:storeVarrayAsTable="true">
         <xs:element name="quotazione" type="quotaioneType" xdb:defaultTable="QUOTAZIONE"/>
         <xs:complexType name="quotaioneType" xdb:SQLType="QUOTAZIONE_T">
              <xs:sequence>
                   <xs:element name="ORG_ID" type="xs:integer" xdb:SQLName="ORG_ID"/>
                   <xs:element name="CUSTOMER_ID" type="xs:integer" xdb:SQLName="CUSTOMER_ID"/>
                   <xs:element name="quot" type="quotType" xdb:SQLName="QUOT"/>
                   <xs:element name="customer" type="customerType" xdb:SQLName="CUTOMER"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="quotType" xdb:SQLType="QUOT_T">
              <xs:sequence>
                   <xs:element name="QUOTATION_ID" type="xs:integer" xdb:SQLName="QUOTATION_ID"/>
                   <xs:element name="STATUS" type="xs:string" xdb:SQLName="STATUS"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="customerType" xdb:SQLType="CUSTOMER_T">
              <xs:sequence>     
                   <xs:element name="TITLE_CODE" type="xs:string" xdb:SQLName="TITLE_CODE"/>
                   <xs:element name="CUSTOMER_NAME" type="xs:string" xdb:SQLName="CUSTOMER_NAME"/>
              </xs:sequence>
         </xs:complexType>
    </xs:schema>
    the java class is:
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              XMLSchema schemadoc=null;;
              XSDBuilder builder;
              URL url;
              int i=0;
              try{
                   builder = new XSDBuilder();          
                   url = new URL("file://c:\\quotazione.xsd");               
                   schemadoc = (XMLSchema)builder.build(url);
              }catch(Exception ex){
                   System.out.println("Errore file xsd--");
              //si prende lo schema
                   String[] NS = schemadoc.getAllTargetNS();
                   XMLSchemaNode Nodo = new XMLSchemaNode();//nodi schema
                   XSDNode[] uno;     
                   XSDNode[] childElements;
                   Nodo = schemadoc.getSchemaByTargetNS(NS[ i ]);
                   uno = Nodo.getElementSet();
                   XSDElement elem = schemadoc.getElement(NS, uno[0].getName());
                   childElements = elem.getChildElements();
                   System.out.println("/"+uno[0].getName());
                   for (i=0;i<childElements.length;i++){
                             System.out.println("/"+uno[0].getName()+"/"+childElements[i].getName());
    can somebody help me abount print the children of /quotazione/quot/ for example?

  • Hierarchy  Query  to  get  parent  nodes?

    Hi Everyone,
    I want to write a hierarchy query which should give me the path starting from given node to its parents(Grand parents). below is the sample data and the output what i am expecting. and also the output what i am getting right now from my query.
    CREATE TABLE RELATION (PARENT VARCHAR2(5),CHILD VARCHAR2(5) PRIMARY KEY);
    --Data for the tree which starts from the root 'A'
    Insert into RELATION (PARENT, CHILD) Values (NULL,'A');
    Insert into RELATION (PARENT, CHILD) Values ('A', 'B');
    Insert into RELATION (PARENT, CHILD) Values ('A', 'C');
    Insert into RELATION (PARENT, CHILD) Values ('B', 'D');
    Insert into RELATION (PARENT, CHILD) Values ('B', 'E');
    Insert into RELATION (PARENT, CHILD) Values ('D', 'F');
    Insert into RELATION (PARENT, CHILD) Values ('C', 'G');
    --Data for the tree which starts from the root 'H'
    Insert into RELATION (PARENT, CHILD) Values (NULL,'H');
    Insert into RELATION (PARENT, CHILD) Values ('H', 'I');
    Insert into RELATION (PARENT, CHILD) Values ('H', 'J');
    Expected Output by passing values as 'F' which gives the path from bottom to up.
    A<-B<-D<-F
    My Query:
    SELECT substr(sys_connect_by_path(child,'<-'),3)
    FROM relation
    WHERE connect_by_isleaf = 1
    START WITH child = 'F'
    CONNECT BY PRIOR parent = child
    ORDER BY child;
    Output of my query:
    F<-D<-B<-A
    I am getting the output in reverse order. i can use the reverse string function to reverse the string but the problem is the node can also contain the values like 'AC' 'BA'.. in future.
    Can anyone please help me in getting the correct output.
    Thank you in advance.

    I like ListAgg :D
    with RELATION(PARENT,CHILD) as(
    select NULL,'A' from dual union all
    select 'A', 'B' from dual union all
    select 'A', 'C' from dual union all
    select 'B', 'D' from dual union all
    select 'B', 'E' from dual union all
    select 'D', 'F' from dual union all
    select 'C', 'G' from dual union all
    select NULL,'H' from dual union all
    select 'H', 'I' from dual union all
    select 'H', 'J' from dual)
    SELECT ListAgg(child,'<-')
           within group(order by Level desc) as revPath
    FROM relation
    START WITH child = 'F'
    CONNECT BY PRIOR parent = child;
    revPath
    A<-B<-D<-F

  • IMessage combining child and parent text messages

    When my child sends a text message it appears that the message comes from me, the adult. When I try to text my child she doesn't receive the message and I text myself.
    I've tried to find ways to untether child/parent but I can't. 
    my iMessage settings show only my Apple ID, email, phone number
    child doesn't have a computer of her own
    I logged into her iCloud but didn't find settings that applied to imessage.
    Please help, I am flooded with tween-aged text messages!

    Thanks Radiation Mac,
    I have a Mac and she only texts from her phone. I think your instructions are for a Windows system maybe?
    Whichever Apple ID is currently logged into "iCloud" (located in Applications>System Preferences>iCloud) will be the Host who's iMessage account is sent from. 
    Anyway, you gave me a great tip.
    iPhone Settings
    Messages
    Send & Receive"You can be reached by iMessage at:" her cell phone number was in this space.
    My life is good once again.
    OMG! ttyl - you saved me from tween ****.

  • Formula flip the sign between child and parent account member

    I have created two accounts as below which is parent to the child (670122) and child (670122.01) account and my account dimension looks as below
    Account    PARENTH1     GROUP          ACCTYPE     RATETYPE
    670122        670120         Profit & Loss            EXP           AVG
    670122.01  670122         Profit & Loss            EXP          AVG     
    PRETAX        INCOME         Profit & Loss            INC          AVG     
    Now I have added the simple formula in the child account 670122.01 in the formulah1 column as [Account].[PRETAX] Which is Income account but when I retrieve the data  using EVDRE(), the Values are shown as below
    670122.01     670122
    3,398,006.86      (3,398,006.86)
    Why do the parent and child has different sign when both accounts are same account type as Expense. Instead of formula if I put hardcoded value, then both parent and child accounts has the same value (not flipping the sign)

    We are using BPC 5.0 and SQL Server 2005
    The hierarchy is like this
    670120 -> 670122 -> 670122.01
    The dimension formula is in 670122.01 as like this ( [Account].[PRETAX]-[Account].[665000] ), 665000 is a expense account and pretax is income account
    When I do the EVDRE on those above accounts
    670120     670122     670122.01
    (13,228,910.18)     (13,228,910.18)     13,228,910.18
    When 670122.01 is rolled up to next immediate level, the value in 670122 has negative value. 670122 is rolled up to 670120, but they both have same value - Is this a known issue in the BPC 5.0?

  • Session and Refresh problem, Urgent, please help

              Hi, Dear Everyone:
              I have two questions to ask. (Environment: OS: Nt4.0, Server: Weblogic5.1)
              (1). When I use session to store an object in servlet (processed results
              from database) then dispatch to a jsp page to display the results, I got the following
              error message.
              Wed May 16 15:54:31 CDT 2001:<I> <ServletContext-General> Generated java file:
              C:\weblogic\myserver\classfiles\jsp_servlet\_ccproject\_subdisplay.java
              java.lang.NullPointerException
              at jsp_servlet._ccproject._subdisplay._jspService(_subdisplay.java, Comp
              iled Code)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:106)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:124)
              at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
              cherImpl.java:154)
              at com.voy.CCPro.DataDumper.doPost(DataDumper.java:69)
              at com.voy.CCPro.DataDumper.doGet(DataDumper.java:85)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:106)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:907)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:851)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:252)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:364)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              Here is my servlet code:
              HttpSession session = req.getSession(true);
              Vector temp = buildData.BuildForDisplay(rst);
              session.setAttribute("PostTitlePool", temp);
              String url = "/ccproject/subdisplay.jsp";
              RequestDispatcher dis = getServletContext().getRequestDispatcher(url);
              dis.forward(req, res);
              Here is my jsp
              <%@ page import="com.voy.CCPro.*" %>
              <%@ page import="java.util.*" %>
              <%
              Vector v = new Vector();
              v = (Vector)session.getAttribute("PostTitlePool");
              Enumeration enum = v.elements();
              SequenceData sq = new SequenceData();
              while(enum.hasMoreElements())
                   sq = (SequenceData)enum.nextElement();
                   if(sq.getIndicator()==0)
                        out.println(sq.getTitle());
                   else
                   out.print(sq.getTitle());
              %>
              Please tell me what I did wrong or What more do I need to do?
              (2). If I changed to use request.setAttribute in servlet, it works. But I got another
              strange
              result from browser. That is, if I keep on clicking refresh (IE5.5), the same result
              appending
              the previous one on the same page.
              Here is my code in servlet:
              req.setAttribute("PostTitlePool",temp);
              String url = "/ccproject/subdisplay.jsp";
              RequestDispatcher dis = getServletContext().getRequestDispatcher(url);
              dis.forward(req, res);
              Here is my jsp:
              <%@ page import="com.onvoy.CCPro.*" %>
              <%@ page import="java.util.*" %>
              <%
              Vector v = new Vector();
              v = (Vector)request.getAttribute("PostTitlePool");
              Enumeration enum = v.elements();
              SequenceData sq = new SequenceData();
              while(enum.hasMoreElements())
                   sq = (SequenceData)enum.nextElement();
                   if(sq.getIndicator()==0)
                        out.println(sq.getTitle());
                   else
                   out.print(sq.getTitle());
              %>
              Please explain it to me why that and how to fix it. I appreciate it very much.
              

    I control this as follows
    --> all JSP's don't create session (<@page session="false">)
    --> my FrontServlet checks
    session=request.getSession(false);
    if(session==null)
    //invoke method from LoginHandler (Helper Class)
    //for check logindata and create session
    else
    //invoke method from ProtectedResource (Helper Class)
    //for check, if user logged on
    --> LoginHandler
    //method UserAllowed returns true or false
    if(!UserAllowed())
    //invoke ServiceDispatcher method who displays
    //the 'AccessDenied'Page
    else
    //set loggedIn into the session
    session.setAttribute("loggedIn","OK");
    //invoke ServiceDispatcher method to display the requested Page
    --> ProtectedResource
    //check if user logged in
    Object o=session.getAttribute("loggedIn");
    if(o==null)
    //User not logged in
    //invoke ServiceDispatcher method to display 'Login' Page
    else
    //User logged in
    //invoke ServiceDispatcher method to display the requested Page
    --> URL of the Application
    Welcome: http://localhost:8000/APP/login.jsp
    submitted FORM sent to FrontServlet
    (FORM ACTION="servlet/FrontServlet")
    When everything is alright (username/password)
    new URL http://localhost:8000/APP/servlet/FrontServlet
    and the 'Main' Page is shown
    when session is timed out and i refresh page
    data is sent again (without asking for username and password)and new
    session is created and the 'Main' Page is shown again.
    How can i fix this problem
    thank you in advance :-)

  • Clustered Servers and Applet (Very URGENT Please)

    Hi,
    I'm using win2k/CF application server 4.5/IPlanet web server/NN4.79/JRE1.4.1/.
    I have an applet in one of my web page which downloads a file from the web server(stored in http://www.abc.net/doc/zip directory on the server).
    Now when I run this code on the development server, everything works fine.
    But in production environment, we have 3 clustered web servers controlled by a controller (Local Cisco Director) machine. The applet code looks like this:-
    strURL = "http://www.abc.net/doc/Zip/"; //the URL from which the zip is to be downloaded. Basically it hits the Controller first
         strZipFileName=getParameter("zipFileName");
         strURL = strURL+strZipFileName;
              //Get Connection to Server and Download the file
              try{
              objUrl = new URL(strURL);
              httpCon = (HttpURLConnection) objUrl.openConnection();
                   //DownLoad the File
                   InputStream fileInputStrm = httpCon.getInputStream();
                   // create a file object which will contain the directory structure to copy in the local machine
                   localZipFile = new File(strLocalFilePath+strZipFileName);
                   FileOutputStream fileOutStrm = new FileOutputStream(localZipFile);
                   int ch;
              while ((ch = fileInputStrm.read()) != -1) {
                        fileOutStrm.write(ch);
                   // Close the InputStream, HTTP connection , File stream
              fileInputStrm.close();
              httpCon.disconnect();
              fileOutStrm.close();
    Now when the home page of the site is loaded it makes the connection and controller redirects this request to one of the web servers (say 1) which is least loaded.
    Now when the applet is loaded, the new connection is established to the controller and it may redirect the request to any one of the 3 web servers (not necessarily to 1 which is required). Now sometimes it hits the right web server on which the required zip file is stored, and sometimes it doesn't hit the correct server.
    Any clue what we can do in this scenario so that the applet downloads the correct file from the right server?
    Please help it is very urgent....
    Thanks

    Did you ever get a response to this or figure out how to run in a clustered environment? I am now running into the same issue and would be interested in whatever you learned.

  • Re: Hierarchy  Query  to  get  parent  nodes?

    Guys i need a help here please....
    i want to query using any single value for example in where clause for  "E" , i want to retrieve whole bunch from "A" to "G" which are all interlinked. is there any way for  this?..
    im lookking like
    A
    B
    C
    D
    E
    F
    G
    when i query for "E"
    Thanks in advance..

    sorry,,, i couldn't explain properly...
    here is the example...
    CREATE TABLE RELATION (PARENT VARCHAR2(5),CHILD VARCHAR2(5) PRIMARY KEY);
    ---this is group 1
    Insert into RELATION (PARENT, CHILD) Values ('A', 'B');
    Insert into RELATION (PARENT, CHILD) Values ('A', 'C');
    Insert into RELATION (PARENT, CHILD) Values ('B', 'D');
    Insert into RELATION (PARENT, CHILD) Values ('B', 'E');
    Insert into RELATION (PARENT, CHILD) Values ('D', 'F');
    Insert into RELATION (PARENT, CHILD) Values ('C', 'G');
    --This is group 2
    Insert into RELATION (PARENT, CHILD) Values ('H', 'I');
    Insert into RELATION (PARENT, CHILD) Values ('H', 'J');
    Insert into RELATION (PARENT, CHILD) Values ('J', 'K');
    Insert into RELATION (PARENT, CHILD) Values ('K', 'M');
    I WILL TAKE  group 1 ..
    i want from relation table single  column all related falling in one group . like..
    when i look for E i should get all the below..
    A
    B
    C
    D
    E
    F
    G
    even though E is not directly linked to A it is linked through B. basically all in one group but the link is not direct. i dont have any group key in my table..
    the query column (where clause) can be either parent or child..
    hope u will gettit..   thanks for ur patience...

  • 1510 Child and Parent don't talk

    I have a 1510 network set up like this:
    http://www.cisco.com/en/US/i/100001-200000/150001-160000/153001-154000/153656.jpg
    The Controller 4404 in the headquarter (Site 1). From the headquarter we use 1400 bridge to connect to a 1510(RAP or Site 2) via a switch. Then over the 5.8 backhaul, we connect to another 1510 (Map or Site 3), which is a child for Site 2.
    From the headquarter, we can talk to either Site 2 and/or Site 3. However, when information requested from Site 3 to Site 2, we are having problems. It seem to me like Site 3 and Site 2 don't talk to each other directly. Can someone help me please? Thank you

    In a wireless mesh deployment multiple AP1510s are deployed as part of the same network. One or more AP1510s have a wired connection to the controller and are designated as root access points (RAPs). Other AP1510s that relay their wireless connections to connect to the controller are called mesh access points (MAPs). The MAPs use the AWPP protocol to determine the best path through the other AP1510s to the controller. The possible paths between the MAPs and RAPs form the wireless mesh that is used to carry traffic from wireless LAN clients connected to MAPs and to carry traffic from devices connected to MAP Ethernet ports.
    For the controlling the AP following configuration guide may help you :
    http://www.cisco.com/en/US/docs/wireless/controller/4.2/configuration/guide/c42lwap.html#wp1112844

Maybe you are looking for

  • In Acrobat Pro X I no longer have option to alter thickness of underline. Does not show up .

    In Acrobat Pro X I no longer have option to alter thickness of underline. No longer shows up -- though it is available in pdfs I previously used it in. How do I restore this option?

  • Change iPod's name itunes 11

    Hello everyone, I'm having troubles to change the name of my iPod Video in version , I restored it and the iTunes automatically gives the iPod my user's name, thing I want to change and can't find the way, if anybody could help me.

  • Oracle BI Administration Tool Unix

    Hi , Does anyone have an idea how to launch 'Oracle BI Administration Tool' on UNIX. Under Winows it is "Start > Programs > Oracle Business Intelligence > BI Administration" , but in the official doc, launching it on UNIX env is not mentionned ... Th

  • Learning Path for a Developer

    Hi all, I work for a university as the only  abap develoepr in our SCLM team. ABAP and Web Dynpro are both easy for me to learn. However, I often get frustrated when writing reports and wd application. One problem is that it is time consuming to find

  • IPad 3 + 4G - Rogers - No Service

    I received my new iPad 3 64GB + 4G today however, after inserting the Rogers SIM card I received with it - I just get a NO SERVICE notification.  Is there some sort of delay before the iPad will have access to the Rogers Network? I have no option to