Tree nodes are duplicated

Hello
I want to create a relationship of the master / detail between a tree (master) and a table (detail) reading. Tree consists of three levels, Status (parent), FormType (child), FormNumber (grandchild). The SQL in the t for each query is as follows,
Parent - status-> SELECT DISTINCT CREATED_BY, STATE of LCS_NAVIGATION_TREE_V WHERE CREATED_BY =: pCREATED_BY
Child - FornType--> SELECT DISTINCT FORM_NAME, $form_id, CREATED_BY, LCS_NAVIGATION_TREE_V STATUS
A grandchild - FormNumber-> SELECT $form_id, FORM_NAME, TRACKING_NUMBER, CREATED_BY, CREATED_DATE, LAST_UPDATE_DATE, SUBMITTED_DATE, STATUS, FINILIZED_DATE OF LCS_NAVIGATION_TREE_V

When I run my page, the tree shows as many child nodes because child nodes.
For example, I,
project
> Form9
123 >
> 456
> 789
> Form9
123 >
> 456
> 789
> Form9
123 >
> 456
> 789

Why the child node displays three times when it should only appear once. Any help will be greatly appreciated.
I use Jdev 11.1.1.3.

Oh and the keys are such...
Status of parent - CreatedBy,
Child - CreatedBy, status, FormName
A grandchild - CreatedBy, status, FormName, FormId

Hello

Oh and the keys are such...

Status of parent - CreatedBy,
Child - CreatedBy, status, FormName
A grandchild - CreatedBy, status, FormName FormId >

I guess that your master / detail ViewLinks are based on the following attributes:
Parent/child: CreatedBy, status
Child/Grantchild: FormName CreatedBy, status,

As the FormId is no attribute not part of the key to the child, you should include it in the motion of the child because it is SEPARATE from Basic. By inlcuding you get "Form9" tripled in the request of the child (because of 3 different FormId values corresponding to the "Form9").

Open the query of the child as well, and try again:
SELECT FORM_NAME, CREATED_BY, STATUS OF LCS_NAVIGATION_TREE_V

Dimitar

Tags: Java

Similar Questions

  • FRM-47323: no nodes are selected in the tree.

    Hi all

    I'm currently upgrading my forms 6i in 11g. 6i form is currently using the element of the hierarchy tree.
    After the form conversion, 11 g and the execution of the form I get the error FRM-47323 following "no nodes are selected in the tree.
    The same shape work very well in the environment of 6i.

    This error is not documented anywhere and am not sure why only after upgrading to 11g it gives this error.

    After debugging the code, I noticed that the following code will fail with this error:

    Declare
    .....
    current_node FTREE. NŒUD;
    htree;
    .....
    Begin
    ...... At this point, it fails with the error FRM-47323.
    current_node: = Ftree.Get_Tree_Selection (htree, Ftree.Get_Tree_Property (htree, Ftree.SELECTION_COUNT));
    .....
    End;


    Any help will be appreciated. Let me know if you need more information on this issue.

    current_node: = Ftree.Get_Tree_Selection (htree, Ftree.Get_Tree_Property (htree, Ftree.SELECTION_COUNT));

    The problem is the reference "Ftree.SELECTION_COUNT". The Get_Tree_Selection function returns the reference of the selection tree node NŒUD. The SELECTION_COUNT variable stores a number that represents the number of nodes that are selected. Its been more than a table that a NUMBER because it contains the reference of the index for each node selected in the tree. ;-)

    If you need to know which node is the current selected node, try to use: SYSTEM. Trigger_Node instead.

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

    Published by: Silvere on February 3, 2011 10:27

  • make the tree nodes that are engaged in "BOLD"

    Hi friends,

    I'm putting a few settings of 'style' as the bold or italics
    for tree nodes that are clicked. For example in the sub tree if you click node a31 , this node is parent node ( a3 ) and the parent node ( a ) A3 will be displayed in bold
    *a*..|-a1
       |- a2
       |- *a3*...|- *a31*
       |- a4      |-a32
       |- a5      |-a33
       |- a6
       |- a7
    Any input will be appreciated.

    Kind regards
    Jyothi

    Published by: Jyothi on January 9, 2011 03:43

    Jyothi,
    You have not used the ID of node item in the code. The element that stores the tree node in your case is P19_EXMPLE and if you need to change the code that is provided in an appropriate way.

    You must change the * $v ('') * to * $v(P19_EXMPLE') * If you use my code
    or * $v ('P19_EXAMPLE') * to * $v(P19_EXMPLE') * If you use Andy.

  • Why all the results are duplicated when searching in my bookmarks library?

    If I search for "Shell", for example, and then click on the 'name' column, most of the 'results' are duplicated. For example, "Perdido | On Shell"in the"shell"folder Parent is shown twice... same URL and al. I see that the or after the 01/02/2013 added bookmarks are NOT duplicated.

    In my case, the bookmarks ARE actually duplicated. I checked by exporting and by analyzing the HTML code.
    The whole "All bookmarks" hierarchy had somehow been copied into a random location of my favorite tree. This is why all bookmarks except most recent lie twice.
    It looked like this:

    - All Bookmarks
      + Bookmarks Toolbar
      + Bookmarks Menu
         + MY_FOLDER_A
         + MY_FOLDER_B
         - MY_FOLDER_C
           MY_NESTED_FOLDER_A
             - All Bookmarks
                .... older state fully duplicated!!!
    

    I deleted the nested copy of "All bookmarks" and it seems OK now.
    I made this copy by mistake (which I highly doubt) or a bug caused.

    Good to hear that you are not using Firefox Sync (I use it). It would have been a Prime Minister candidate for causing a problem like this. (My bad favorites have been replicated to all of the computers connected with synchronization).

    The copy of "All bookmarks" should have been made over the past months, but I couldn't determine exactly when. The copies have the same ADD_DATE and LAST_MODIFIED timestamp in the HTML file.

  • make the tree nodes "BOLD"

    Hello

    I have a created a structure tree
    -one
    -aa
    -aaa
    -aaa
    b
    -bb
    -bbb
    -cc
    -ccc
    I followed the steps given in the message
    make the tree nodes that are engaged in "BOLD"
    (a)
    Now if I expand the root node, then all of the child nodes automatically become "BOLD", that is if I select 'a '.
    all nodes below becomes "BOLD".
    -a
    -aa *.
    -aaa
    -aaa
    b
    -bb
    -bbb
    -cc
    -ccc

    How can I avoid this problem what I want is the selection if 'a' only 'a' should be bold not her children
    now when I select 'aa' or 'bb' only her parents must be "BOLD" not his children.

    (b)
    My second problem is that while the page loads for the first time his having the whole tree is in bold how prevent this from happening.

    If the node selected for that tree is P100_SELECTED_NODE_ITEM

    Add the following code to the onload code ("run when the page loads" article on page or dynamic action shot page load)

      selected_node= $('#'+$v('P100_SELECTED_NODE_ITEM')).children('a:first');
      selected_node.parents('li').each( function(){
       $(this).children('a:first').css('font-weight','bold');
       });
    
  • The values are duplicated in Proportion?

    Hi guys,.

    Could you please help me understand this issue?
    The following rule is included in the definition of void

    If UDEmpresa = "Dol_Comp" then
    HS. TRANS ' is #Pos_Net_Comp1.C2 #. Dolar_comp C3 #conv.» "I #[ICP no] ', ' has #Pos_Net.C2 #Base.C3 #Conv.I #[ICP no]", "a TCC_Adj #", "
    HS. TRANS ' is #Pos_Net_Comp2.C2 #. Dolar_comp C3 #conv.» «I #[ICP no] ', ' a #Pos_Net_neg.» C2 #base. C3 #conv. «I #[ICP no] "," a TCPComp2 # ", «»
    On the other
    HS. Claire "was #Pos_Net_Comp1.C2 #Cost_Adjs.
    HS. TRANS "has #Pos_Net_Comp1.C2 #Cost_Adjs.C3 #Conv.I #[ICP no] ', ' has #Pos_Net.C2 #Base.C3 #Conv.I #[ICP no]", "a TCC_Adj #", "
    HS. Claire "was #Pos_Net_Comp2.C2 #Cost_Adjs.
    HS. TRANS "was #Pos_Net_Comp2.C2 #Cost_Adjs.C3 #Conv.I #[ICP None] ', ' a #Pos_Net_neg.» C2 #base. C3 #conv. «I #[ICP no] "," a TCPComp2 # ", «»
    End If

    What I've noticed, is that all the values of Pos_Net_Comp # are duplicated in Proportion, even in basic entities. This rule runs twice (in node parent and proportion currency) and this is the reason for all the duplicate values?
    Please, advice!
    Thank you!

    Void translate runs only once, taking the values of and writes the results translated to the . As long as your data is correct in there is no need to consider further the definition of void.

    Void Consolidate, on the other hand, takes data from [Total Parent] and by default writes in [percentage]. Eliminations, by default, are written in the [removal] node.

    Sub calculation can run in [disposal] and [percentage] after running Sub consolidate.

    If I had to guess what is originally given double [percentage], I would say that the hard look on your consolidation rules. Keep in mind that HS. Con accumulates the values, then maybe you have this function performed twice on the same data.

    -Chris

  • Tree nodes a white/contour

    Hello

    I use the ADF located inside of a panelGroupLayout tree.
    The panelGroupLayout has blue background ' clear '.
    At run time, each node of the tree is displayed with a white outline around and will not appear when you have a background color other than white (in my case the panelGroupLayout is 'blue').

    Anyone know how to remove this plan? or to change its color?

    Thank you
    Alain.

    Here is the seletors of the skin

    tr:tree Component
    Icon Selectors
    Name      Description
    af|tree::expanded-icon      This icon is displayed before the expanded tree node.
    af|tree::collapsed-icon      This icon is displayed before the collapsed tree node.
    af|tree::no-children-icon      This icon is displayed instead of the expanded/collapsed icon, when the node has no children
    af|tree::line-icon      This icon is used as a vertical line between the nodes.
    af|tree::line-middle-icon      This icon is used as the horizontal line in the background of the expand/collapse icon of the node, in the case the node is not the last sibling of its parent node.
    af|tree::line-last-icon      This icon is used as the horizontal line in the background of the expand/collapse icon of the node, in the case the node is the last sibling of its parent node.
    af|tree::node-icon      This icon selector is used in the case the Node class has a getNodeType() method that returns the node type as string. The nodetype gets added to this selector, separated by a ':'. If the node is a container (has children) the following suffixes get added depending on the expanded/collapsed state: '-expanded' / '-collapsed'. e.g. "af|tree::node-icon:container-collapsed", "af|tree::node-icon:container-expanded", "af|tree::node-icon:noncontainer".
    Trinidad properties
    Name      Description
    -tr-show-lines      Valid values are true or false (default true). Determines whether the tree lines are displayed or not. e.g., af|tree {-tr-show-lines:false} will not show the lines of the tree.
    

    Timo

  • Tree nodes will not collapse.

    I have a tree that shows what to expect, but will not collapse the subnodes.

    The root is a customer number.
    Below that is the lines of products that the customer has purchased.
    The product lines here are the items in these product lines. These are the nodes.

    The node root, customer number will be very well expand/collapse.
    Product line nodes will not collapse. When the root node is expanded product line nodes appear expanded, but they will not collapse.

    The maximum levels is equal to 3. When I set the Max levels to 2 then the prod line nodes are reduced, but they don't develop.

    I see the tree at the http://htmldb.oracle.com/pls/otn/f?p=33642:12 factory where I expect mine to work.

    Any ideas on how to get my nodes collapse?

    Thank you
    Gregory

    Hi Gregory,

    I discovered the reason for the problem. It's the + symbols in your credentials. When adding in a URL, they are dealt with, in many cases, as spaces (the same that if you put a + between the two words in a search engine). So when you click the collapse icon, the used value ends in a space rather than a + and, as it does not match any ID on your table, no collapse does actually take place.

    I created a second page: http://htmldb.oracle.com/pls/otn/f?p=55041:4

    This includes SQL according to the definition of the tree:

    select REPLACE(ID, '+', '_') id,
           REPLACE(PID, '+', '_') pid,
           NAME name,
           null link,
           null a1,
           null a2
    from "#OWNER#"."GREGORY"
    

    Collapse now works because all the +'s were converted to of _

    Andy

  • reinstalled itunes on new pc and all the songs are duplicated

    r

    I reinstalled iTunes on new pc and all the songs are duplicated. How can I delete everyone else?

    iTunes can create duplicates if the same content is added several times from outside the media folder when it is about to make copies of everything that is added to the library, or is added from an external drive that hosts the press kit that was disconnected during the launch of iTunes.

    Official notice of Apple on the duplicates is here: find and remove duplicates in your iTunes library. This is a manual process and article fails to explain some of the potential pitfalls such as the lost coast and membership of playlist, or sometimes the same file can be represented by multiple entries in the library as well as a removal and recycling the file will break all the others.

    Use MAJ > display > show items to reproduce exactly to display the duplicates because it is normally a selection more useful. You must manually select all but one of each group to remove. Sort the list by Date added can make easier select appropriate tracks, but it works better when executed immediately after the dupes were created.  If you have several entries in iTunes connected to a same file on the disk hard then don't not send to trash.

    Use my DeDuper script (Windows only) If you are not sure, do not want to do it by hand, or want to maintain ratings, play counts and playlist membership. See this background thread , this post for detailed instructions and Please take note of the warning to back up your library before deduping.

    (If you don't see the menu bar press ALT to temporarily view or CTRL + B to keep displayed.)

    The latest version of the script can put away the dead links as long as there is at least a double live to merge his stats and membership of the playlist and must deal wisely when the same file has been added through multiple paths.

    TT2

  • BlackBerry smartphones certain paragraphs, words or phrases that I send, sometimes, are duplicated in the same email...

    Hello once again, II have a BB 9790. Another problem is the following: some paragraphs, words or phrases that I send, sometimes, are duplicated in the same email. For example, I can write: "Hey Emma, throughout the week, I thought that we can go to the movies. There's an interesting movie... it's a surprise. What do you think?... "My friend Emma receives the following message:""Hi Emma, throughout the week, I thought that we can go to the movies. There's an interesting movie... it's a surprise. What do you think? What do you think? Sent from my BlackBerry® from Vodafone sent from my BlackBerry® from Vodafone "she has a different SmallPhone (Nokia, Samsung, (Emma is my platonic love.)" Its full name is Emma Thomson, where was Emma Thomson Emma Thomson)

    yellowsubmarine wrote:
    I thought a lot about it. It is probably a mistake to factory setting.

    What you have said, I am not ready to agree with that...

    yellowsubmarine wrote:
    and BB/RIM is not a platform for technical support by e-mail and phone

    It of okay and is entirely consistent with the support model to which all parties (including the end user) are contractually committed. All housing starts service and assistance with carriers, dealers approved, or authorized service centers (it may vary depending on the region and the specific question), all those who have the ability to climb up to BlackBerry cases requiring the attention. Only your support provider can answer as to why they have not taken this step for you.

    yellowsubmarine wrote:

  • Default name for a tree node

    JDeveloper version - 11.1.1.7.0


    I have a tree on my page and using a context Menu component --> Insert option (the Action property is set to )

    #{bindings. CreateInsert.execute}) I add a tree node. The node that is created is empty and I want to add a name by default when it is created. Kindly help.

    Fig 1 - insert option of choice to create the new node

    1.jpg


    Fig. 2 - created node without any default name

    2.jpg


    Default value in the class EntityObject or viewObject (in the attribute property) which will be fixed in each createWithParameters line or newly created call and passes the value of the attribute he

    Ashish

  • Actions and Variables are duplicated when I create the new model project

    My organization uses a standard model for our courses.  In this model, I added a few variables and advanced actions to enable to the learner to customize the course a bit and support our "test-out" option

    What I found however, is that when I create a new project of this model that all stocks advanced and variable are... reproduce some several times.

    And ideas on how to make this stop?

    Jay

    Unfortunately, this is a known issue.  I pointed out about it here:

    Problems of duplication in Adobe Captivate Cp7 Cp8 Templates | Infosemantics Pty Ltd

    As far as I know, the problem persists even in Captivate 9 If you create a template that has advanced Actions, and these actions are used by no slides in this model.  When you create a file CPTX of this model, Variables and advanced Actions are duplicated by about the same number of times that the advanced initial Action is used.

    You can test this by creating a simple project with two blades, a variable and a Standard Action that affects this variable with values. Define the event on slide enter on the second slide to run the Standard Action. Save the project as a model CPTL and then use this model to start another project CPTX file.  When you check the list of Variables and advanced Actions you will find that there is a duplicate of each.

  • Get the value of the tree node


    Hello

    I use the hierarchy tree to build a menu (in oracle 11 gform).

    I need to retrieve the value of the selected node (child_id), and when I write what follows, I get an error: frm-47307: could not get the properties of the tree root node .

    the statement is:

    l_node_value: = Ftree.Get_Tree_Node_Property (htree,: SYSTEM.) TRIGGER_NODE, Ftree.NODE_VALUE);

    I use this query to populate the tree (and it works fine...):

    Select the case sensitive option

    When connect_by_isleaf = 1 then

    0

    When level = 1 then

    1

    on the other

    -1

    end as status

    level

    name as title

    null as an icon

    CHAILD_ID as value

    Of

    (

    SELECT TO_CHAR (CUO. OBJECT_ID) CHAILD_ID,.

    PARENT_ID TO_CHAR (NULL).

    CUO. OBJECT_PROMPT NAME,

    OBJECT_TYPE 'G '.

    OF CRDX_USER_OBJECT COU

    WHERE GROUP_ID = - 1

    UNION

    SELECT TO_CHAR (CGO. OBJECT_ID) CHAILD_ID,.

    TO_CHAR (CGO. PARENT_ID FOLDER_ID),

    CGO. OBJECT_PROMPT NAME,

    OBJECT_TYPE

    OF OGS CRDX_GROUP_OBJECT

    )

    Start by parent_id is null

    connect by parent_id = prior CASE OBJECT_TYPE WHEN 'G' THEN CHAILD_ID END

    Can someone help me?

    Thanks in advance,

    Elad

    : SYSTEM. TRIGGER_NODE is valid for one of the WHEN-TREE-NODE-xxx-triggers.

    If you want to get the value of the node selected in any other place, you need the integrated Ftree.GET_TREE_SELECTION

  • How to raise an event during the double click on a tree node

    I have this code that creates the new tab in a remote Java class.

    treeView.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<TreeItem<String>>()
       {
       @Override
       public void changed(ObservableValue<? extends TreeItem<String>> observable, TreeItem<String> oldValue, TreeItem<String> newValue)
       {
       System.out.println("Selected Text : " + newValue.getValue());
       // Create New Tab
       Tab tabdata = new Tab();
       Label tabALabel = new Label("Test");
      tabdata.setGraphic(tabALabel);
    
       DataStage.addNewTab(tabdata);
       }
       });
    

    Can you tell me how I can change the code to open a new tab when I double click a tree node. In my code, the tab opens when I click once. What event handler do I need?

    import java.util.Arrays;
    
    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.StackPane;
    import javafx.scene.control.TreeCell;
    import javafx.scene.control.TreeView;
    import javafx.scene.control.TreeItem;
    import javafx.scene.control.SelectionMode;
    import javafx.util.Callback;
    
    public class TreeTest extends Application {
    
      public static void main(String[] args) {
        launch(args);
      }
    
      @Override
      public void start(Stage primaryStage) throws Exception {
        primaryStage.setTitle("TreeView Test");
        primaryStage.setScene(createScene());
        primaryStage.show();
      }
    
      private Scene createScene() {
        final StackPane stackPane = new StackPane();
        final TreeView treeView = new TreeView();
        treeView.setRoot(createModel());
        treeView.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
    
        treeView.setCellFactory(new Callback, TreeCell>() {
          @Override
          public TreeCell call(TreeView treeView) {
            return new ClickableTreeCell();
          }
        });
        stackPane.getChildren().add(treeView);
        return new Scene(stackPane);
      }
    
      private TreeItem createModel() {
        TreeItem root = new TreeItem("RootNode");
        TreeItem packageA = new TreeItem("package A");
        packageA.getChildren().addAll(
            Arrays.asList(new TreeItem("A1"), new TreeItem("A2"), new TreeItem("A3"))
        );
        TreeItem packageB = new TreeItem("package B");
        packageB.getChildren().addAll(
            Arrays.asList(new TreeItem("B1"), new TreeItem("B2"), new TreeItem("B3"))
        );
        root.getChildren().addAll(Arrays.asList(packageA, packageB));
        return root;
      }
    
      private class ClickableTreeCell extends TreeCell {
        ClickableTreeCell() {
          setOnMouseClicked(new EventHandler() {
            @Override
            public void handle(MouseEvent event) {
              // Handle double-clicks on non-empty cells:
              if (event.getClickCount()==2 && ! isEmpty()) {
                System.out.println("Mouse double-clicked on: " + getItem());
              }
            }
          });
        }
    
        @Override
        protected void updateItem(String item, boolean empty) {
          super.updateItem(item, empty);
          if (empty) {
            setText(null);
          } else {
            setText(item);
          }
        }
      }
    }
    
  • How to get the value of the tree node without reloading the Page. !

    Hello
    I worked with apex 4.2 and I've created trees and as a table to retrieve the date according to the value of the tree node select the code tree something like that

    {
    Select case when connect_by_isleaf = 1 then 0
    When level = 1 then 1
    of another-1
    end the status,
    level,
    'ENAME' as the title,
    NULL as an icon,
    'EMPNO' as value,
    NULL as ToolTip,
    ' f ? p = 36648:34:5234984107903:P40_SELECTED_NODE :'|| EmpNo as link
    "Dept". "" EMP ".
    Start by "MGR" is nothing
    connect prior "EMPNO" = "MGR".
    siblings arrested by 'ENAME '.
    }
    and I put the Page selected node element: P40_SELECTED_NODE. the tree worked well and recover the data in tabular form according to the value of tree node

    My Question:
    1. I want to recover the data without submitting the page where whenever I select the value of the tree make page reload to update the tabular presentation with the new value, there is a way to convey the value of the tree node to point P40_SELECTED_NODE and in the form of refreshment without page reload.

    2-i want when selected in the page tree run process according to the value of the on-set tree node to create dynamic action with (jquery selector: div.tree li > a) but the value of the incorrect node.

    Concerning
    Ahmed;

    Take a look at my sample tree application.
    When you select a node, a details report is updated. That should help you implement for your situation.
    However, one thing to note is the link on each node that you have. Click on a node to redirect to the same page and set the value of P40_SELECTED_NODE. You can keep the element, but the link should go, as it's him "reload" the page whenever you click on a node. Implementation of the action of "onselect" tree and setting the page element to the value of the node that will be in place. Be sure to add the page element in the elements present in the form of tables.
    The reason why your selector didn't return the correct value is that you have a click event bound to the anchor tag in each element of the list. The anchor tag does not hold the real value (usually and id), but holds that the display value. The items list item containing the real value in their attribute "id". Therefore, to get this value you should always inspect the first parent of the clicked anchor tag. (which is another way to solve it, of course)

Maybe you are looking for

  • How can I find out which of my pictures have not been put in albums?

    I just put all the photos from my iphone into my iphoto macbook. They're not going in the new import location that they are all in "all photos". I would like to know which photos are not in albums already so I can organize them into albums easily. Pl

  • Reproducing an event - minimum required files

    What is the set of the file Final Cut to the minimum that I would need to reproduce an editing session (event) made by someone else on another Mac? Editior1 and Editor2 both have the same video raw images... stored in folders with the same named.  Bo

  • laptop temperature

    my laptop temperature lights instantly high about 60 to 75 and also consume battery very fast... I'm not use of heavy work as portable games.my is 1 year old... Please tell me what I can do.about 2 or three weeks ago this happan... Please help me as

  • Smartphones blackBerry 'not found search location.

    Is anyone know why this dialog box. Search location not found"continues to appear every time I have to travel on my 9670 flip phone? BTW, I know that my phone is old, it is even more figure on the list of the devices on this site; However, I like the

  • Incorrect aggregate results with a total of 11.1.1.7.140527 report-oriented

    We are moving to OBIEE from version 11.1.1.6.0 to version 11.1.1.7.140527.  We noticed that some of the aggregated results are incorrect in the new version.  If we edit the columns of measure in the analysis to disable the State of total aggregation