Track open nodes in AdvancedDataGrid?

I'm not sure if this is the right place for this question,
but I didn't find anywhere more suitable ...
In beta 1 the AdvancedDataGrid had an openItems attribute
that one could reset after a change to keep the tree in the same
state. Now that attribute is gone and I don't see any other way to
accomplish the same effect.
My use case is that I have an XML document as a hierarchical
data source. I add nodes to it at run-time and need to refresh the
ADG so that the new nodes show up. However on resetting the
datasource the tree closes.
Since the datasource is really the same one (just with new
data) I was previously able to use openItems to reset the tree to
the "open" state it was in before.
Is there a better method for doing this? Or some way to get
the tree to recognize new data without closing?
Many thanks ...
Paul

You can use the openNodes property in
IHierachicalCollectionView.
openItems and openNodes are same. The difference being that
the openNodes property is in IHierarchicalCollectionView instead of
AdvancedDataGrid.
And it was redundant to keep two properties to do the same
thing.
To reset openNodes use -
IHierarchicalCollectionView(adg.dataProvider).openNodes =

Similar Messages

  • How to add an item object as a child for a specified parent node in AdvancedDataGrid in Flex?

    Hi all,
              This is the code, to add a object as a child into a specified parent node in AdvancedDataGrid in flex.
    <?xml version="1.0" encoding="utf-8"?><mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="onCreationComplete()" width="100%" height="100%">
    <mx:Script><![CDATA[
    importmx.controls.Alert; 
    importmx.collections.IHierarchicalCollectionViewCursor; 
    importmx.collections.IHierarchicalCollectionView;  
    importmx.collections.ArrayCollection; [
    Bindable]private var objectAC:ArrayCollection = newArrayCollection(); 
    //This method is used to construct the ArrayCollection 'flatData' 
    private function onCreationComplete():void{
    var objOne:Object = newObject(); objOne.name =
    "Rani"; objOne.city =
    "Chennai";objectAC.addItem(objOne);
    var objTwo:Object = newObject(); objTwo.name =
    "Rani"objTwo.city =
    "Bangalore";objectAC.addItem(objTwo);
    var objThree:Object = newObject(); objThree.name =
    "Raja"; objThree.city =
    "Mumbai";objectAC.addItem(objThree);
    //This method is used to add one object as a child item for the parent node 'Rani' 
    private function addChildItem():void{
    var dp:IHierarchicalCollectionView = groupedADG.dataProvider asIHierarchicalCollectionView;  
    varcurent:IHierarchicalCollectionViewCursor = groupedADG.dataProvider.createCursor();  
    var dummyParentNode:Object = {name:"Rani", city:"New Delhi"};  
    var obj:Object = null; 
    while(curent.current){
    // To get the current node objectobj = curent.current;
    // Add Child item, when depth = 1 and Node name should be "Rani" 
    if (curent.currentDepth == 1 && obj["GroupLabel"] == "Rani"){
    dp.addChild(curent.current, dummyParentNode);
    curent.moveNext();
    groupedADG.dataProvider = dp;
    groupedADG.validateNow();
    groupedADG.dataProvider.refresh();
    ]]>
    </mx:Script> 
    <mx:AdvancedDataGrid id="groupedADG" x="10" y="15" designViewDataType="tree" defaultLeafIcon="{null}" sortExpertMode="true" width="305" > 
    <mx:dataProvider> 
    <mx:GroupingCollection id="gc" source="{objectAC}"> 
    <mx:grouping> 
    <mx:Grouping> 
    <mx:GroupingField name="name"/> 
    </mx:Grouping> 
    </mx:grouping> 
    </mx:GroupingCollection> 
    </mx:dataProvider> 
    <mx:columns> 
    <mx:AdvancedDataGridColumn headerText="Name" dataField="name"/> 
    <mx:AdvancedDataGridColumn headerText="City" dataField="city"/> 
    </mx:columns> 
    </mx:AdvancedDataGrid> 
    <mx:Button x="10" y="179" label="Open the folder 'Rani'. Then Click this Button" width="305" click="addChildItem()" /> 
    </mx:Application> 

    Hi,
    It's not possible to 'append' a StringItem or a TextField (or any other lcdui.Item object) to a Canvas or GameCanvas. You can only draw lines, draw images, draw text, etc etc, on a Canvas screen. So, you can only 'simulate' the look and feel of a TextField (on a Canvas) by painting it and adding source code for command handling (like key presses). However, this will be quite some work!!
    lcdui.Item objects can only be 'appended' to a Form-like Displayable.
    Cheers for now,
    Jasper

  • Its near impossible to get a Advanced datagrid to remember its opened nodes when it has fresh data

    Theres a post in
    http://www.mail-archive.com/[email protected]/msg85521.html//www.mail-archive.com/[email protected]/msg85521.html
    which is basically saying its near impossible to get a Advanced datagrid to remember its opened nodes when it has fresh data
    I'm having pretty much the same problem (exept I'm not filtering just getting the latest data from the server)as this guy and have been searching for a solution, heres what he said:
    Sun, 02 Mar 2008 08:07:46 -0800
    Hello guys,
    I'm trying to filter my ADG without success :
    I created a GroupingCollection from a flat ArrayCollection.
    ADG's dataProvider is GroupingCollection.
    First issue : refresh
    if I filter the underlaying ArrayCollection, the related
    groupingCollection doesn't refresh automatically (bug? feature?)
    Actually I menaged to force gc.refresh() with some event( it is
    impossible to listen on CollectionEventKind.REFRESH because of
    infinite loop ac.refresh => gc.refresh )
    Second issue (more important) : openNodes
    Ok now that my gc is refreshed, the Tree in the ADG collapses itself
    (ok let say that is normal), and I need it to expand all nodes that
    were opened before.
    I tried to do something like this :
    var openNodes : Object = IHierarchicalCollectionView(
    myADG.dataProvider ).openNodes;
    gc.refresh();
    myADG.dataProvider.openNodes = openNodes;
    and it doesn't works.
    next I tried this :
    var openNodes : Object = IHierarchicalCollectionView(
    myADG.dataProvider ).openNodes;
    for each( var node : Object in openNodes )
    IHierarchicalCollectionView( myADG.dataProvider.openNode( node )
    guess what, doesn't work
    I'm calling myADG.invalidateList() each time too.
    I don't know what to do to achieve this simple task, I'm a bit
    disappointed because I expected lot more from the brand new
    AdvancedDataGrid and this basic functionality actually seems too hard
    to implement.
    I still hope I'm wrong and someone can show me the correct solution
    Thank you all,
    Adnan

    Hi,
    I remember the days when Oracle would practically give Oracle Financial s away just for the implementation consulting fees.
    Yeah, IBM used to give-away DB2 also . . . .
    Oracle Financial s away just for the implementation consulting fees. Yeah, but any ERP requires massive set-up costs. I once worked on an SAP effort that cost over $20,000,000.
    complete with Microsoft head to headIn what? Oracle is far-and-away the world's most robust and flexible database, hundreds of times more powerful that SQL Server.
    IMHO, it's like apples-to-oranges . . . .
    Everyone is running SQL server Here, DICE shows over a hundred Oracle openings in the Boston area, that might help you:
    http://seeker.dice.com/jobsearch/servlet/JobSearch?op=300&rel_code=1102&N=0&Hf=0&NUM_PER_PAGE=30&Ntk=JobSearchRanking&Ntx=mode+matchall&AREA_CODES=&AC_COUNTRY=1525&QUICK=1&ZIPCODE=&RADIUS=64.37376&ZC_COUNTRY=0&COUNTRY=1525&STAT_PROV=0&METRO_AREA=33.78715899%2C-84.39164034&TRAVEL=0&TAXTERM=0&SORTSPEC=0&FRMT=0&DAYSBACK=30&LOCATION_OPTION=2&FREE_TEXT=oracle&WHERE=Boston+MA&WHEREList=Boston+MA&SEARCH.x=0&SEARCH.y=0
    Excel is the tool of choice for accountants and its integration withcubes is nothing short of stunning
    Sorry, I must disagree! Yes, CPA's will download Oracle data into spreadsheets for analysis, but Excel is wanting, especially for hypothesis testing, correlational analysis and data mining. Oracle's ODM, however, is truly stunning, light-years ahead of PC-based tools:
    http://www.rampant-books.com/book_2006_1_oracle_data_mining.htm
    Larry make Oracle great again be cutting the costI cannot speak for Oracle Corporation, but Oracle XE is FREE, totally and completely free. Add-in Apex for free, and it's very competitive.
    Hope this helps. . .
    Don Burleson
    Oracle Press author
    Author of “Oracle Tuning: The Definitive Reference”
    http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm

  • When creating new track in stereo... track opens in mono in arrange window

    Since upgrading to 8.0.2...weird things are happening to previously saved projects. Stereo tracks are opening up mono and affecting following track. When creating new tracks in stereo.... tracks open mono. I don't know if this is due to 8.0.2 but all these freaky things have happening since. Also, when previewing Apple Loops, I can only hear it on one side, but Loops sounds fine once dragged to arrange window. Is this common or is my computer haunted ? Should I call Ghost Busters ? HELP !!! lol

    Hi there,
    I'm having the same problem as well: creating new tracks results in a mono software instrument, not the usual stereo software instrument. BUT... "Universal Track Mode" is already checked in my Audio prefs. I unchecked & rechecked it, but to no avail... I'm still only getting mono software instruments.
    Any other ideas? No changes have been made to my system, and I'm running the latest version of Logic Pro.
    Kirby

  • Audio track opens in QT, not specified editor

    Hmm... Why would an audio track open in QT, not the specified audio editor, when control-clicked and “Open in Editor” is selected?
    Thanks!
    dc

    This happens when the audio track is part of a video clip. You could set the video editor to the audio application to force it to open whatever application it is is you're trying to open.

  • How to get label of Parent level nodes, when itemOpen() event of any node in AdvancedDataGrid in Flex?

    Hi all,
              This is the code, to get the label of every one parent level nodes, when we open the parent node item in AdvancedDataGrid in Flex.
    <?xml version="1.0"?><!-- dpcontrols/adg/SimpleGroupADGMXML.mxml --><mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert; 
    import mx.events.AdvancedDataGridEvent; 
    import mx.collections.ArrayCollection; [
    Bindable] 
    private var groupData:ArrayCollection = new ArrayCollection([{Computer:
    "HardWare Devices", Device:"Keyboard", Company:
    "Logitech", PriceInRupees:"500"}, {Computer:
    "HardWare Devices", Device:"Keyboard", Company:
    "Microsoft", PriceInRupees:"500"},{Computer:
    "HardWare Devices", Device:"Mouse", Company:
    "Logitech", PriceInRupees:"300"},{Computer:
    "HardWare Devices", Device:"Mouse", Company:
    "Microsoft", PriceInRupees:"300"},{Computer:
    "HardWare Devices", Device:"Monitor", Company:
    "LG", PriceInRupees:"5000"},{Computer:
    "HardWare Devices", Device:"Monitor", Company:
    "Microsoft", PriceInRupees:"5000"}]);
    //This method is used to get label of every parent lavel nodes, when we open any item 
    private function getLabel(e:AdvancedDataGridEvent):void{
    Alert.show(e.item[
    "GroupLabel"]);}
    ]]>
    </mx:Script>
    <mx:Label text="NOTE : Open the every parent level nodes here. We can get the label of every one parent level nodes."color="
    blue" fontWeight="bold"/>
    <mx:AdvancedDataGrid id="groupADG" width="
    100%" height="437" initialize="gc.refresh();" itemOpen="getLabel(event)"
    >  
    <mx:dataProvider>
    <mx:GroupingCollection id="gc" source="{groupData}">
    <mx:grouping>
    <mx:Grouping>
    <mx:GroupingField name="Computer"/>
    <mx:GroupingField name="Device"/>
    </mx:Grouping>
    </mx:grouping>
    </mx:GroupingCollection>
    </mx:dataProvider>  
    <mx:columns>  
    <mx:AdvancedDataGridColumn headerText="
    Computer"/>
    <mx:AdvancedDataGridColumn dataField="Company"headerText="
    Company"/>
    <mx:AdvancedDataGridColumn dataField="PriceInRupees" headerText="PriceInRupees"/>
    </mx:columns>
    </mx:AdvancedDataGrid>

    Dialog\ResponseTime 6585
    "The dialog response time consists of the period of time from the request of the dialog to the dispatcher through the processing, to the ending of the dialog in the dispatcher and the transfer of the data to the presentation layer"
    This is not buffered as far as I know is measured on demand
    Read,
    http://help.sap.com/saphelp_nw70/helpdata/en/31/d7843b43c8e937e10000000a11402f/content.htm
    Regards
    Juan

  • Can I track opens and clicks on links in my emails?

    I sometimes send emails which contain a number of web links.
    Am I able to track:
    who opens their email?
    which links they click on?
    (like I do in Mailchimp)

    Thunderbird works to enhance user privacy, not invade it. So no those privacy invading techniques use by web marketers are not supported and where possible actively thwarted.

  • Tracking opened files and applications as you work

    Which log or process on Leopard is tracking when an App or File is opened? I want to be able to monitor when files are opened for certains apps and record the name of files and time opened/closed.
    To automate timesheets for people.

    It's probably fseventsd, but I don't know of any easy way of tying into it without coding up something or using something designed for that purpose. I have to imagine there's something out there (in the audit space) that will do close to what you want. Maybe something like:
    http://www.fernlightning.com/doku.php?id=software:fseventer:start

  • Tree initial state - open node (WD for Java)

    Hello,
    I have a WebDynpro tree, which I am populating with all the data upfront before displaying it. However, for some reason, when the tree comes up, it is always open, selecting the first leaf (node without children) of the tree.
    When navigating away from this view and back, the all nodes are closed.
    Anyone know why this is the case, or what settings I must change? I am setting the expanded property correctly on all nodes.
    Thanks,
    Martin

    Martin,
    Tree is always follows lead selection of corresponding node. So first part of your problem can be resolved via setting initializeLeadSelection=false for nodes involved.
    Next thing that affects behavior is "expanded" property of Tree UI controls. If bound to boolean attrubte, expand/collapse state of Tree can be controlled programatically. Try this if removing lead selection does not solve your second problem.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • Assignees don't appear in Issue Tracker Open Issues list?

    Hi -
    I've assigned names to open issues in the Application Express canned Issue Tracker application, and they appear everywhere - except in the Open Issues list.
    Home -> Projects -> (Click on a project) -> Open Issues -> ("Assignee" fields say "Unassigned")
    Home -> Issues -> (Click on an issue) (Issues have a name in the "Assigned To" field)
    Am I doing something wrong?
    Is there a problem in the code such that the "Assignee" field is an orphan and this should be the "Assigned To" field?
       Dan Nygren

    Hi Dan,
    This sounds like a bug in the issue tracker, you might want to report it as such. Also this post belongs in the packaged application section really:
    https://forums.oracle.com/community/developer/english/oracle_database/application_express/packaged-applications
    Regards,
    Joni

  • Open Node in HTML CFTREE?

    I've been searching everywhere and have not found an answer
    to this question :-[
    I'm using cflayout area "left" to display an html cftree that
    contains a heiarchial structure of a website and a cflayoutarea
    "center" that displays the childeren of a selected tree node. When
    clicking on the childeren in the center layout, how might I "open"
    the tree node in the left layout area.
    Any help would really be appreciated!

    I have solved it myself !!!!!!!!!!!!!!!!!!!
    "flashcrazy" <[email protected]> wrote in message
    news:f5thk6$sok$[email protected]..
    >I want to go to select a particular node of the tree
    component when i click
    >a button.
    > The tree is having dataProvider XML with 3 levels of
    nodes .that is node
    > inside node inside node type structure
    > <node>
    > <node1 attribute="................." >
    > <node11>
    > <node111>
    > <node1111></node1111>
    > </node111>
    > </node11>
    > </node1>
    > <node2 attribute="................." />
    > <node3>
    > <node31>
    > <node311></node311>
    > </node31>
    > </node3>
    > </node>
    > The problem is that the node dosent get selected in one
    go if its parent
    > nodes are not open.
    > I am using myTree.setIsOpen and myTree.selected but the
    node doesnt get
    > open if parebt nodes arenot visible.Someting to do with
    getDisplayIndex
    > and index of nodes.
    >
    > Can anyone suggets.
    >

  • Open Node in Treee componenet

    I want to go to select a particular node of the tree
    component when i click
    a button.
    The tree is having dataProvider XML with 3 levels of nodes
    .that is node
    inside node inside node type structure
    <node>
    <node1 attribute="................." >
    <node11>
    <node111>
    <node1111></node1111>
    </node111>
    </node11>
    </node1>
    <node2 attribute="................." />
    <node3>
    <node31>
    <node311></node311>
    </node31>
    </node3>
    </node>
    The problem is that the node dosent get selected in one go if
    its parent
    nodes are not open.
    I am using myTree.setIsOpen and myTree.selected but the node
    doesnt get open
    if parebt nodes arenot visible.Someting to do with
    getDisplayIndex and index
    of nodes.
    Can anyone suggets.

    I have solved it myself !!!!!!!!!!!!!!!!!!!
    "flashcrazy" <[email protected]> wrote in message
    news:f5thk6$sok$[email protected]..
    >I want to go to select a particular node of the tree
    component when i click
    >a button.
    > The tree is having dataProvider XML with 3 levels of
    nodes .that is node
    > inside node inside node type structure
    > <node>
    > <node1 attribute="................." >
    > <node11>
    > <node111>
    > <node1111></node1111>
    > </node111>
    > </node11>
    > </node1>
    > <node2 attribute="................." />
    > <node3>
    > <node31>
    > <node311></node311>
    > </node31>
    > </node3>
    > </node>
    > The problem is that the node dosent get selected in one
    go if its parent
    > nodes are not open.
    > I am using myTree.setIsOpen and myTree.selected but the
    node doesnt get
    > open if parebt nodes arenot visible.Someting to do with
    getDisplayIndex
    > and index of nodes.
    >
    > Can anyone suggets.
    >

  • How to re-open tree nodes after a refresh to AdvancedDataGrid's GroupingCollection?

    Hello,
    I have an AdvancedDataGrid, which has as it's dataProvider a
    GroupingCollection. The GroupingCollection's source is bound to an
    ArrayCollection. Items in the ArrayCollection can be edited.
    After a change to the ArrayCollection, I refresh() the
    GroupingCollection so it displays properly. Unfortunately, this
    collapses the tree of the AdvancedDataGrid, that is, the previously
    open nodes are no longer open. I would like to re-open the nodes
    after a refresh.
    In the code provided, I have attempted to save the nodes
    which were open before the refresh, perform the refresh, then
    re-expand the nodes with AdvancedDataGrid.expandItem(). But it
    didn't work, and I am stumped.
    Any ideas on how to expand nodes in the AdvancedDataGrid?
    or
    Any ideas on how to allow the user to modify a data item,
    including fields used as GroupingFields, in an AdvancedDataGrid?

    Yes, I try saving the nodes like this:
    //save the currently opened items
    openArray = new Array();
    for each(var obj:Object in advancedDataGrid.openItems)
    openArray = openArray.concat(obj);
    and then restoring them with the expand function:
    //expands the nodes which are passed in as the argument
    private var expand:Function = function(array:Array):void
    for each(var obj:Object in array)
    advancedDataGrid.expandItem(obj, true);
    Unfortunately, expandItem just seems to return without doing
    anything!

  • One track doesn't open when opening a frozen session ?

    Hi all!
    I did a proper and thourough search first, before giong to this question. Didn't find anything about it. And wonder if anyone else has these problems.
    Well it opens, but there's no audio track in it... read on.
    All of a sudden, apparently out of the blue, when I open a session again, one track seems to be missing and I have to do an Insert audio track again, and freeze it a second time. It's just a trio recording of bass, guitar, drums, so it's no more than a 5 channel session and track lasts less than 10 minutes. It's even the "low" resolution at 16 bit and 44,1 Khz so it can't be a memory issue. Virtually no effects are applied until mastering out, where there's a little limiter on.However, EQ is used individually on each track and it has been frozen.
    Having saved and edited a couple of times, and most certainly not have deleted ANY tracks, which you can't do when once frozen.
    When I am opening the session again, just ONE track have lost its inserted audio track, and I can't open the "frozen one" again, I have to open the original once more and insert it. It's always the drums overhead left mike which is at channel/track 4. I've been scrutinizing of what I've been doing and most certainly not have undeliberately pushed some hidden delete keys to make it go away.
    It's actually quite annoying. Before you ask, yes, I have the latest drivers, the latest upgrades, and a 3,4 ghz CPU Intel, 4gb RAM. Windows XP SP3. It occurs now and then say 3-4 times out of 10. I have just tested it to see if it had anything to do with frozen tracks, so I closed down the whole session with all tracks open - so to speak - and not frozen and then this error/bug hasn't occured at all. At least not in the 10 times I tried it with "unfrozen" tracks. So, a fair guess would be that it occurs while only I have frozen all tracks.
    Anyone else experienced this?
    /Henke

    As I said, read my post "Send me both ses files (no media) via my aatranslator dot com dot au web site".  I made no mention of saving "frozen track SES files without any media".
    I understand your frustration but I only made an offer to assist.
    Now if you want me to have a look at your ses file to see if I can work out what is going on then send it to me without sending any of the media associated with it. 
    If not I'm happy either way.
    BTW
    The idea of sending 2 ses files is to compare the one which can't find the frozen track with one that has just been saved and apparently includes the frozen track.

  • How to make bookmark tree open dynamically when moving in the content?

    Intro: When viewing a PDF-file with a bookmark tree, I can unfold(open) nodes in the bookmark tree and make the view window jump to the corresponding destination.
    If the bookmark tree is open (unfolded) I can observe a selection mark moving downwards in the bookmark tree as I move down in the content.
    Question: Is it possible to make the folded bookmark (outline) tree open dynamically as I move down in the content? I would like to see the bookmark tree unfold automatically and move the highlight to the bookmark (outline) node for the bookmark position nearest to (above) the view point in the content window.

    Dave,
    thank you for quick and precise answer.
    Magne

Maybe you are looking for

  • Service Team in Service Request

    Hi All,   I need to find out Service team in service request.There is a field Service team.In this field with F4 help,those organisations are also coming which are not marked as Service Team.I only want those org which are assigned as Service Team. H

  • Nike Amp: stops connecting half way through workout

    I've been using the Nike Amp with my ipod for the past two months. It's a great piece of kit, and I've come to depend on it to change music, pause a workout when I need to wait for traffic etc. Now it loses it's connection to the ipod mid workout whi

  • USB ports not working in safe mode

    I am trying to back up my computer before i take it to the apple store and i cant back up in safe mode using time machine, becuase im guess the USB ports arent working. Are there any solutions to this problem?

  • JAR running error...please help

    I have created a JAR file, which operates on a database platform program. This is located in a different directory to the main java and class files. Directory of the Testing Program to run the DBP program: C:\CRT in which I've stored my test.jar whic

  • Bought ipod but cant get past it says connect to itunes disabled help me i made an account for me on computer but stuck help

    help me got and ipod but says disembled connect to itunes. plugged into computer made acct. for me but nothing,help need for new job. thanks