[TreeNodeType] Keeping expended items (children) when tree reload

Hi all,
My page with context is:
-TREE (node)
---TREENODE (node; data is load by Supply Function)
CHILDNODE (node; data is load by Supply Function)
name (attribute)
value (attribute)
I mapped this context into TREE as below:
-TREE (element type: TREE; dataSource : TREE)
---TNT_NODE (element type: TreeNodeType; dataSource: TREENODE; hasChildren: TRUE )
---TNT_CHILDNODE (element type: TreeNodeType; dataSource: CHILDNODE; hasChildren: FALSE)
It runs ok, but my request is:
Keep items (children) of TNT_NODE expand (open) when tree reload or Load and expand current node automatically when tree is reloaded.
Please give me your advice.
Regards,
Ken

Hi,
I am not sure wether you have binded the prperties like 'Is child', 'Expanded', "Parent Key ', 'Key',  or not . If you have binded these values then when the child elements are loaded then when u are loading the child elements then you can append the value as expanded 'abap_true' or as  ' X' that means when u try to upload the child elements then the the child elements will be expanded defaultly.
Hope this may help you.
Have A Good Day.
Regards,
Sana.

Similar Messages

  • Keeping expended leaf node when reloading page for TreeNodeType

    Hi all,
    My page with context is:
    -TREE (node)
      ---TREENODE (node)
    CHILDNODE (node)
    name (attribute)
    value (attribute)
    I map this context into TREE as below:
    -TREE (element type: TREE; dataSource : TREE)
    ---TNT_NODE (element type: TreeNodeType; dataSource: TREENODE; hasChildren: TRUE )
    ---TNT_CHILDNODE (element type: TreeNodeType; dataSource: CHILDNODE; hasChildren: FALSE)
    Everything is ok, but my issue is:
    How TNT_NODE keep expanded (show child node as TNT_CHILDNODE) when page is reloaded? Now TNT_NODE collapse its leaf node when page reload. I tried using EXPANDED but it expands all nodes that is not my desire.
    Please give me your advice.
    Regards,
    Ken

    my issue is resolved

  • Tree item when-tree-node-selected fires differently from 6i to 10g.

    In forms 6i, when you keyboard navigate between tree nodes, the wtns trigger will fire. In 10g it does not. In 10g, it will fire if you press the tab key or mouse click on a node.
    Anyone know if this was done on purpose?
    I ran into this after finally trying my props.fmb in 10g. It works fine in 6i, but not in 10g
    copy of my form is here:
    http://www.tailboom.com/oracle.php
    Forms [32 Bit] Version 6.0.8.18.3 (Production) cleint server
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    I wrote most of the tree handling code for oracle apps APPTREE. This is the code that most if not all tree's in apps uses to build standard tree. So I have a pretty good understanding of the forms tree item. And know the wtns fired for web forms 6i on every node like 6i client server. This is very strange IMO.
    Thanks.
    --pat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Oleg,
    thanks for the reference. Although the bug you identify deals with when-tree-node-activated, it is possible they fixed the when-tree-node-selected issue at the same time. With my test tree, i can currently duplicate both issues. I tried to download the patch, but it is only available for linux and unix. No windows patch. I don't have my linux env up and running to where I can test yet. So I can not confirm.
    --pat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Change listener not notified when tree item is deselected

    I'm attaching a listener to the selected index property of the tree view selection model to detect when a user selects or deselects on or more nodes in a tree, but it appears that the listener is not notified when a user deselects a node. So if a user selects two nodes and then while holding down the Ctrl key deselects one of the selected nodes the tree view control deselects the node, but the change listener is not notified. Is this is a bug or am I doing something wrong?
    I’m using the GA version of JavaFX 2.1 on Windows 7.
    Thanks.
    Stefan
    import javafx.application.Application;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.SelectionMode;
    import javafx.scene.control.TreeItem;
    import javafx.scene.control.TreeView;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    public class TreeViewSample extends Application {
    private final Node rootIcon = new ImageView(
    new Image(getClass().getResourceAsStream("Folder.gif"))
    public static void main(String[] args) {
    launch(args);
    @Override
    public void start(Stage primaryStage)
    primaryStage.setTitle("Tree View Sample");
    TreeItem<String> rootItem = new TreeItem<String> ("Inbox", rootIcon);
    rootItem.setExpanded(true);
    for (int i = 1; i < 6; i++)
    TreeItem<String> item = new TreeItem<String> ("Message" + i);
    rootItem.getChildren().add(item);
    TreeView<String> tree = new TreeView<String> (rootItem);
    tree.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);
    tree.getSelectionModel().selectedIndexProperty().addListener(new ChangeListener<Number>()
                   @Override
                   public void changed(ObservableValue<? extends Number> ov, Number oldIndex, Number newIndex)
         System.out.println("selection changed");
    StackPane root = new StackPane();
    root.getChildren().add(tree);
    primaryStage.setScene(new Scene(root, 300, 250));
    primaryStage.show();
    }

    The selected index value does not change in those cases as it reflects the last selected index (useful for single selection). It does act wierd at is possible to have a selected index that is not actually selected (you can report a bug for that I think).
    However, if you want to track the full selection, try adding a ListChangeListener to the selectedIndices of the selection model. This one does fire a change every time.

  • DO YOU KEEP Getting a error page when you reload

    I keep getting a error, server may be down when I reload the forum page, or post.  I hope this isn't a preview of what is to come on my end.

    walterkarroll wrote:
    I keep getting a error, server may be down when I reload the forum page, or post.  I hope this isn't a preview of what is to come on my end.
    its the forum software.  its terrible.
    close your browser, (entire thing not just the tab) and reopen.

  • "Cancel and Keep Work Item in Inbox" Not working ??

    Hi Experts,
    We need your help in resolving a workflow issue. Issue is, When user gets an Invoice to approve (Non PO), she opens the invoice, do some changes, and park it. Then she gets Option button to either u201CApproveu201D, u201CRejectu201D, u201CCancel and Keep Work Item in Inboxu201D. When she clicks u201CCancel and keep work itemu2026u201D, ideally the work item should remain in her SAP Inbox, however it is getting executed and gone from her workflow. I found that work item in her SAP Outbox xecuted state.
    Same thing happens when they try to forward the work item. She gets an option( a checkbox) to Keep a copy of the work item in her SAP Inbox as well, but that option is also not working and the work item gets transferred without leaving a copy into her SAP Inbox.
    SAP System ECC 6.0
    Please advice.
    Thanks,
    Sid

    Hello,
    Is this in SBWP or UWL? Does it only happen to one user? Does it only happen with one workflow?
    Check in the workflow log if there is anything unusual.
    regards
    Rick Bakker
    hanabi technology

  • I replaced my hard drive and I backed up my files on an external hard drive but when I reloaded my iweb to my imac none of my files were on it so I can't make changes to my Published web site have I lost my files what can I do

    I replaced my hard drive and I backed up my files on an external hard drive but when I reloaded my iweb to my imac none of my files were on it so I can't make changes to my Published web site have I lost my files what can I do

    By default iWeb keeps its data in (user)/Library/Application Support/iWeb in a file named Domain. Without this file you cannot proceed (other than by recreating the site from scratch using the published version as a reference) so you need to locate it on the original disk.
    To confuse matters, Apple have hidden the user’s Library folder in Lion and Mountain Lion to casual viewers, in an attempt to stop new Mac users messing their machines up. To access it, in the Finder go to the ‘Go’ menu and hold down the Option (Alt) key; the Library folder will appear as a choice.

  • Delivery & Billing block at item level when I create order with config mat

    HI All,
    I am getting delivery & Billing block at item level when I create an order with config material.
    And I am unable to remove the blocks manually since they appear in display mode even in change mode of sales order.
    but I could see a biiling document for this order in document flow with 0 value.
    Note:
    1. The item does not have any reason for rejection
    2. Ther is no block set at schedule line category too.
    Please give me your valid suggestion as soon as possible since it is production issue.
    Thanks & Regards

    Dear chandrashekar,
    Goto  VOV8 , select your order type - Billing - Billing block - keep this field as blank .
    Second one , take the default billing type in order type (VOV8) , and Goto OVV4 and click on selection criteria and select billing type , enter your billing type and choose , you will now get the listing of that biling type and check your settings are correct.
    saravanan

  • Hierarchical Tree: When-Tree-Node-Activated is not working

    I'm working Forms 10G rel.2.1 and also using application server 10G 2.
    my problem is in Hierarchical Tree [When-Tree-Node-Activated] is not working in Enter this is working in Enter+Tab
    I want to this trigger is working in only Enter.
    I'm waiting quick response

    node_value is only item which have transfer the form or report name
    Trigger Name : WHEN-TREE-NODE-ACTIVATED
    Declare      
         htree                Item ;
    Begin
         --clear_values;
    --           htree := Find_Item('tree.htree');
    -- Find the value of the node clicked on.
    :node_value := ftree.Get_Tree_Node_Property(htree, :SYSTEM.trigger_NODE, Ftree.NODE_VALUE);
    ----Above node value transfer the procedure and call the form with node_value(Form Name)
         Execute_CMD_PROC;
    Exception
         When Others Then Null;
    End ;
    when i enter then no value but when i enter+tab then show the form

  • WHEN-TREE-NODE-SELECTED

    Hello alllll
    i have a master-detail block besides a tree block
    All i wanna do Simply and logically is to select a tree node then a Master-Detail records related to this tree node is to be retrieved...
    _i have the following code in the WHEN-TREE-NODE-SELECTED Trigger as follow:_
    DECLARE
      htree ITEM;
       node_value VARCHAR2(100);
    BEGIN
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
    -- Find the tree itself.
    htree := FIND_ITEM ('BL_TREE.IT_TREE');
    -- Find the value of the node clicked on.
    NODE_VALUE := FTREE.GET_TREE_NODE_PROPERTY( htree, :SYSTEM.TRIGGER_NODE ,  Ftree.NODE_LABEL );
       GO_BLOCK ('STP_COMPANIES');  
    EXECUTE_QUERY;
        END IF;
    END;The above code retrieved data as a whole
    but i want 2 filter the data selected from the tree node as i said 2 be displayed as filtered by the tree selection.
    so i used the following code as follow:
    GO_BLOCK ('GL_COST_CENTERS');  
       set_block_property('GL_COST_CENTERS', DEFAULT_WHERE, 'COMPANY_ID ='||
       ftree.get_tree_node_property('BL_TREE.IT_TREE', :SYSTEM.TRIGGER_NODE, FTREE.NODE_VALUE));
    EXECUTE_QUERY;Any help will be appreciated...
    Thanks in Advance..
    Regards,
    Abdetu...

    Hello thanks for reply,
    STP_COMPANIES your detail block? no it's the master
    gets the "Label" of the tree node not the value of the selected nodei tried both but nothing retrieved...!
    i thought that the value is the serial of the node and the lable is the text displayed on the tree node no ?
    Is this code in the same When-Tree-Node-Selected trigger or a different trigger?yes WHEN-TREE-NODE-SELECTED as my post titled...
    is GL_COST_CENTERS the master block? no it's the detail ; every company --- has many <- cost centers
    are the tables related? yes
    just query the master table and the detail table will automatically be filter through the relationship?i did and it works filtering through the company_id, But what i wanna do is 2 filter the data displayed in the two block Master-Detail according 2 the selection of the tree
    Say i selected the ....
                               + Assets node
                               |
                               |------ - Furnitures    's node is selected so alll the related details of the furniture is displayed in the Master-BLock
                               |         |
                               |         +----chairs
                               |         |
                               |         +----tables
                               |        
                               +----- LAnds
                               |So the Tree is used 2 Query or retrieved the selected node's data accordingly...
    hope i well explained my issue ..!
    is it possible 2 do that ?!
    Thanks Again..
    Regards,
    Abdetu...

  • WHEN-TREE-NODE-SELECTED Action required..!

    Hello all,
    i am using a tree for the first time, i want to reflect the value of the node's id and desc in it's database item where they r inserted.
    The problem is the desc is not displayed NOT.
    But the node id is working just fine..Why ?
    Can anyone help me pls..?
    i am using the following code:
    WHEN-TREE-NODE-SELECTED Trigger:
    :EQUIPMENT_TYPE_D := :SYSTEM.TRIGGER_NODE;
    --The above returns the item_id of the node.
    BEGIN
           SELECT EQUIPMENT_TYPE
           INTO :EQUIPMENT_TYPE
           FROM INSP_EQUIPMENT_TYPE
           WHERE EQUIPMENT_TYPE_D = :EQUIPMENT_TYPE_D ;
    Exception
    When No_Data_Found THEN NULL;
    When Others THEN
                                     Message ('OTHERS' || SQLCODE || ' And ' || SQLERRM);
                                     Message ('OTHERS' || SQLCODE || ' And ' || SQLERRM);                          
    END;Regards,
    Abdetu..

    The WHEN-TREE-NODE-SELECTED trigger fires twice, it fires when selecting the node and when deselcting the node.
    First make sure that you SQL works in SQL*Plus, Handle your EXCEPTION correctly, remove the NULL from your exception and put a message, maybe your SQL is not returning any rows.
    add the below if condition in your trigger. This will make your code to be executed only when you select the node and not when you deselect it.
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
      ...    --Your execution code
    END IF; If your item name is the node's label itself you can easily do this:
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
      :your_block.your_item  := FTREE.GET_TREE_NODE_PROPERTY(HTREE$, :SYSTEM.TRIGGER_NODE, FTREE.NODE_LABEL);
    END IF; Tony
    Edited by: Tony Garabedian on Sep 11, 2008 12:29 PM

  • Issue with child items of flex tree using QTP

    Hi,
    We are trying to automate Flex web application using QTP10.
    We are facing below issue with Flex tree when we try to automate a scenario of selecting a child item displayed in flex tree.
    Issue:
    On recording the step of selecting an item from Flex tree using QTP, the script displayed is .Select Index1. But when we replay it back no action is being performed.
    Also on object spy we are able to navigate only till flex tree and we are not able to spy child items of flex tree.On the web page the child items are displayed as radio buttons/checkboxes.
    Please provide a solution for me to this problem.
    Thanks

    Hi,
    You could perform a HTTP trace (using HTTP watch) and compare the OCI data in POST method for both users (the correct and incorrect ones).
    Perhaps there is some additional/missing information being passed from catalog to SRM.
    Kind regards,
    Ricardo

  • WHEN-TREE-NODE-SELECTED need 2 Execute-Query on Master-Detail data block

    I optimize tree using this link
    http://andreas.weiden.orcl.over-blog.de/article-29307730.html_+
    For huge amount of data (Accountings)
    All i need for now is
    WHEN-TREE-NODE-SELECTED need 2 Execute-Query on the data block
    DECLARE
    htree ITEM;
    node_value VARCHAR2(100);
    BEGIN
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
    -- Find the tree itself.
    htree := FIND_ITEM ('BL_TREE.IT_TREE');
    node_value := FTREE.GET_TREE_NODE_PROPERTY( htree, :SYSTEM.TRIGGER_NODE ,  ftree.node_value  );
       GO_BLOCK ('GL_ACCOUNTS');
       set_block_property('GL_ACCOUNTS', DEFAULT_WHERE , 'ACCOUNT_ID ='|| node_value  );
    EXECUTE_QUERY;
    END IF;
    END;The above code is working fine 4 the detail block which is *'GL_ACCOUNTS'*
    when i substitute is Master block which is 'GL_ACCOUNTS_TYPES' it doesn't display all data
    Help is Appriciated pls.
    Regards,
    Abdetu...

    Hello
    In WHEN-TREE-NODE-SELECTED i modified the following code :_
    DECLARE
            htree ITEM;
           node_value VARCHAR2(100);
           parent_node FTREE.NODE;
    BEGIN
      IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
      -- Find the tree itself.
      htree := FIND_ITEM ('BL_TREE.IT_TREE');
      -- Get the parent of the node clicked on. 
                  parent_node := FTREE.GET_TREE_NODE_PARENT ( htree, :SYSTEM.TRIGGER_NODE );
           GO_BLOCK('GL_TYPES');
                set_block_property('GL_TYPES', DEFAULT_WHERE , 'TYPE_ID ='|| parent_node  );
                  EXECUTE_QUERY;
      -- Get the detail of the parent node
          node_value := FTREE.GET_TREE_NODE_PROPERTY( htree, :SYSTEM.TRIGGER_NODE ,  ftree.node_value  );
               GO_BLOCK('GL_ACCOUNTS');
               set_block_property('GL_ACCOUNTS', DEFAULT_WHERE , 'ACCOUNT_ID ='|| node_value  );     
                   EXECUTE_QUERY;
          END IF;
    END;
    FRM-40350 : Query caused no records to be retrieved but i have records in the data base ...!
    Well, Do u think that's because in ur package i retrieve only the detail block ?
    Regards,
    Abdetu...

  • Safari dosn't open any webpage , when it reload page stuck and nver open, safari dosn't open any webpage , when it reload page stuck and nver open

    safari dosn't open any webpage , when it reload page stuck and nver open, safari dosn't open any webpage , when it reload page stuck and nver open

    I was fed up getting messages such as:
    Safari can't open the page...
    Safari can't connect to the server.. etc
    I tried everything to get my Safari 3.1.1 to work on my Mac Pro computer (OS X 10.5.2) - then I found the solution for my Mac accidentally - it was due to Intego Net Barrier X4 that I had installed on my computer.
    What I did was to upgrade to NetBarrier X5 and, after installation, I deleted the old intruder Stop List under NetBarroer's 'Antivandal' Stop List button. Now I can visit all the sites that previously did not open in Safari 3.1.1. However, I am not sure whether it was the upgrade or just deleting the intruder stop lists that did the trick.
    So, before you upgrade to Intego NetBarrier X5, try and delete the stop lists under the antivandal button first in your existing NetBarrier X4. Highlight the intruder list (click on the first intruder at the top of the list and, while holding down the shift key, click on the last intruder on the list, thus selecting all of them), and then press the 'minus' button below the list. This will remove all the intruder items in the stop list. Restart your computer, open up Safari and now check if you can access sites previously inaccessible by Safari. If not, upgrade to NetBarrier X5 and it should work. Well at least in my case.

  • How to highlight all child items in a tree control?

    I have a tree control and a boolean button. I want to use the button to select all (highlight) the child items in the tree control. I've seen CVI functions where you can set the active items, but such a function/method does not appear in LabVIEW.
    Any clues?

    Hi settles,
    Once you have all the children, you just need to set the value of the tree control to be an array of all the child tags.  Here's a screenshot of a VI that does this:
    First I get all the tags, then I get the parent of each tag.  If the parent is a non-empty string, I add it to an array.  Then I write that array value to a local variable of the tree control.  Let me know if you have any questions on this method.  I believe the "All Tags" property I'm using was added in LabVIEW 8.0.
    -D
    Message Edited by Darren on 08-20-2008 10:58 AM
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    select_all_children_in_tree.PNG ‏34 KB

Maybe you are looking for