Tree Select BUG?

Came across a little problem, don't know if I'm doing something wrong or if it is a genuine bug.
Here's what I'm seeing:
1) I run a program that at the beginning deletes all tags in a tree using the Delete Items Invoke Node with an empty string constant and a True constant for the Delete Children part.
2) I select all the items in the tree, and display all the tags from the tree using the All Tags Property Node, and display the selected tags directly from the output of the tree icon.
3) I rerun the program, which deletes all the tags as mentioned before, use a different data set, select all those items, and when it displays All Tags it only has the tags from that run, BUT the Selected Tags has all the selected tags from the current run AND all the tags from the previous run.
The solution of course is to simply create a local variable of the tree and at startupwire an empty string arrary to it. This shouldn't be necessary if the Delete Items deletes all the tags.
Attached is a VI showing the BUG
Michael
Additional NOTE: If you continue running the VI, the selected tags will pile up UNTIL you manually right click on the tree and hit "Delete All Items"
Message Edited by miguelc on 03-02-2007 10:46 AM
Attachments:
TreeSelectBUG.vi ‏23 KB

No problem
>>What is a CAR?
CAR stands for Corrective Action Request - it's a formal bug report to R&D.
>>Can anyone search these CARs before posting a supposed bug like I just did? Can you find them online, if so where?
We post the CAR IDs online so that customers can follow up with them if they'd like, and easily refer to them.  The LabVIEW Champions maintain a monthly bug thread where you'll find pretty much everything BUG that's been posted online - if you search the forum for "monthly bug" (quotes not necessary) you'll see a slew of monthly bug threads returned.  You can also search the forum in general for keywords related to your bug, to see if anyone else has reported it.  Of course there is also a bug list/database which is maintained internally at NI, but the public doesn't have access to that.
I hope this helps!
Best Regards,
JLS
Message Edited by JLS on 03-08-2007 11:35 AM
Best,
JLS
Sixclear

Similar Messages

  • Tree selection bug?

    Hi,
    I don't know if this is a bug or not. When using XML as the
    data provider for the Tree component and multiple nodes have the
    same label, selecting anyone of the nodes will cause all of them to
    be selected. The problem stems from the fact that XML comparison is
    done by value. The comparison is dibe at line 6345 of ListBase. Is
    this a bug? If not, is there a known workaround?
    I attached code that reproduces the problem. Selecting the
    first node, selects the first, second and last node because, by
    value, they are all the same.
    Thanks!
    JPB

    Switch to using a strongly typed object that implements IUID,
    or just make
    sure your XML has other identifying information to it. It's
    not really that
    helpful to have 19 "foos" in your list unless there is
    something else
    different about them.
    So, something like
    <mx:XMLList id="treeData">
    <node label="Test entry 1" id="1"/>
    <node label="Test entry 1" id="2"/>
    <node label="Test entry 2" id="3"/>
    <node label="Test entry 1" id="4"/>
    </mx:XMLList>
    HTH;
    Amy
    "jpbouchard" <[email protected]> wrote in
    message
    news:g941f3$1u8$[email protected]..
    > Hi,
    >
    > I don't know if this is a bug or not. When using XML as
    the data provider
    > for
    > the Tree component and multiple nodes have the same
    label, selecting
    > anyone of
    > the nodes will cause all of them to be selected. The
    problem stems from
    > the
    > fact that XML comparison is done by value. The
    comparison is dibe at line
    > 6345
    > of ListBase. Is this a bug? If not, is there a known
    workaround?
    >
    > I attached code that reproduces the problem. Selecting
    the first node,
    > selects
    > the first, second and last node because, by value, they
    are all the same.
    >
    > Thanks!
    > JPB
    >
    > <?xml version="1.0" encoding="utf-8"?>
    > <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="100%"
    > height="100%">
    > <mx:Script>
    > <![CDATA[
    > import mx.controls.Tree;
    >
    > private function selectFirst(): void {
    > myTree.selectedItem = treeData[0];
    > }
    >
    > ]]>
    > </mx:Script>
    >
    > <mx:XMLList id="treeData">
    > <node label="Test entry 1"/>
    > <node label="Test entry 1"/>
    > <node label="Test entry 2"/>
    > <node label="Test entry 1"/>
    > </mx:XMLList>
    >
    > <mx:Panel title="Tree Selection Bug" height="100%"
    width="100%"
    > paddingTop="10" paddingLeft="10" paddingRight="10"
    paddingBottom="10">
    > <mx:Button label="Select First"
    click="selectFirst()"/>
    > <mx:Tree id="myTree" width="100%" height="100%"
    labelField="@label"
    > showRoot="true" dataProvider="{treeData}"/>
    > </mx:Panel>
    >
    > </mx:VBox>
    >

  • A function for generate a actual tree select

    hi,
    i tried to write a function that generate a actual tree select and i think this is very helpful
    Create Or Replace Function Generate_Tree_Fun(p_Path Varchar2,
    p_Delimiter Varchar2,
    p_Level Integer,
    p_Tbl_Name Varchar2,
    p_Parent_Field Varchar2,
    p_Child_Filed Varchar2)
    Return Varchar2 Is
    v_Txt Varchar2(5000) := '';
    v_Row_Num Number;
    v_Max_Count Number;
    v_Child Varchar2(100);
    v_Parent Varchar2(100);
    v_Level Number := p_Level;
    Begin
    If (v_Level = 1) Then
    Return '';
    End If;
    If (v_Level > 1) Then
    v_Txt := '|' || Lpad('_', 6, '_');
    End If;
    If (v_Level > 2) Then
    For i In 1 .. p_Level - 2 Loop
    v_Level := v_Level - 1;
    v_Child := Ltrim(Regexp_Replace(p_Path,
    Ltrim(Replace(p_Path,
    p_Delimiter,
    ')(' || p_Delimiter) || ')',
    '\' || v_Level),
    p_Delimiter);
    Execute Immediate 'Select t.' || p_Parent_Field || '
    From ' || p_Tbl_Name || ' t
    Where t.' || p_Child_Filed || ' = :1'
    Into v_Parent
    Using v_Child;
    Execute Immediate 'Select a, b From (Select Row_Number() Over(Order By t.' ||
    p_Child_Filed ||
    ') a,Count(1) Over(Partition By t.' ||
    p_Parent_Field || ') b,t.' || p_Child_Filed ||
    ',t.' || p_Parent_Field || ' From ' || p_Tbl_Name ||
    ' t Where t.' || p_Parent_Field ||
    ' = :1 Order By t.' || p_Child_Filed || ') Where ' ||
    p_Child_Filed || ' = :2 '
    Into v_Row_Num, v_Max_Count
    Using v_Parent, v_Child;
    If (v_Row_Num <> v_Max_Count) Then
    v_Txt := Rpad('|', 20, ' ') || v_Txt;
    Else
    v_Txt := Rpad(' ', 20, ' ') || v_Txt;
    End If;
    End Loop;
    End If;
    Return v_Txt;
    End;
    select Generate_Tree_Fun(sys_connect_by_path(e.empno,','),',',level,'emp','mgr','empno') || e.ename
    from emp e
    start with mgr is null
    connect by e.mgr=prior e.empno
    enjoy it

    Arash wrote:
    hi,
    i tried to write a function that generate a actual tree select and i think this is very helpful
    We are so proud of you!

  • Tree control bug for vertical scrollbar

    Dear all:
    I meet a problem with  tree control  vertical scrollbar.Pls check the picture
    If set the rows of the properties of the Tree control is a number, also set the vertical scroll bar is visible.
    Then if i set the height  of Tree is unchangeable, then set the Tree childs rows are  much more than the height, The problem is that  the vertical scroll bar doesn't work. The height is increase than what i have set ,Maybe it is a bug? or not.
    Anybody find this?
    Attachments:
    Image000011.jpg ‏66 KB

    Hello,
    I works fine with me.
    But I added my test as attachment, so you can see if you maybe doing something else.
    Kind regards,
    André
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)
    Attachments:
    Tree control bug question.vi ‏20 KB

  • Tree selection event in jtree

    hi
    i'm using a jtree in my gui but im facing a problem
    jTree1.addTreeSelectionListener(new TreeSelectionListener() {
                   public void valueChanged(TreeSelectionEvent e)
                        jTree1_valueChange(e);
    as you can see that whenever i click on a particular node in the tree the tree selection event occurs which calls the valuechanged method and it does as required but if i click again on the same selection as before the tree selection event does not occur and it does not call the method so say that the node i'm selecting is supposed to be dynamic and has to be refreshed if i click on it again it will not update itself through the value changed method. can somebody please tell me a way to be able to get the valuechanged method even if i click on the same selection.
    im a bot new to java swing programing so please if you could be a little more explanatory it could help
    thanks

    You problem is talked about (and a solution proposed) in the JavaDoc.
    See the code sample in the doc header from http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JTree.html

  • [svn:fx-trunk] 13362: List mouse click selection bug fix

    Revision: 13362
    Revision: 13362
    Author:   [email protected]
    Date:     2010-01-07 17:22:41 -0800 (Thu, 07 Jan 2010)
    Log Message:
    List mouse click selection bug fix
    SDK-24963 - Mouse click is ignored by List if  allowMultipleSelection="true" in some cases
    Updated setSelectedIndices to perform the single index equality check if selectedIndices has only one index.
    QE notes: None
    Doc notes: None
    Bugs: SDK-24963
    Reviewer: Ryan
    Tests run: checkintests, List
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24963
        http://bugs.adobe.com/jira/browse/SDK-24963
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as

  • Tree selection by user or programmatically

    Hallow All!
    How can I know if tree selection mode by user or programmatically?
    I want to listen - tree selection and do some operation only if the selection made by user (mouse or keyboard) and do nothing if the selection made programmtically!
    I tried to use isFocusOwner methos:
    addTreeSelectionListener(new TreeSelectionListener() {
                   public void valueChanged(TreeSelectionEvent e) {
                        if(!TopologyTree.this.isFocusOwner()){
                             return;
    }but is doesn't work, if some text field in another panel has the focus then the tree gain the focus only after the tree selection event performed
    any help will be most appreciated!
    Eran.

    Create a substitution rule in which user name from the header is substituted to any of the fields in vendor line item. (assignment, text etc). After this you can use this for APP.
    Tarun

  • Switching between Acrobat DC / XI window and another application - cursor selection bug (video and test files attached)

    Hi,
    When I have Acrobat XI or DC open along side InDesign (or other programs like Acrobat or Word), I run into a bug where upon switching from InDesign to Acrobat, the mouse cursor automatically selects a bunch of text in the Acrobat PDF with a spinning beach ball, and I have to click around multiple times to release it from whatever text it has selected. It is annoyance I noticed in a few versions of Acrobat now, and I had hoped the bug would be fixed in DC. The only way to prevent this from happening is to click anywhere else on the Acrobat window (eg the menu bar or the side tools panel, but not the PDF itself).
    Video describing the problem: https://imgur.com/dXurXcB
    Note that no clicking is taking place when switching windows from InDesign to Acrobat - the text in the Acrobat window is being selected automatically by the bug.
    If you watch the video carefully, you will also notice that the Acrobat window does not look like it is taking focus during the selection bug - it only takes the focus after clicking around multiple times.
    Test documents used to record the video:
    http://s000.tinyupload.com/?file_id=14619964329420357364
    InDesign CC File
    http://s000.tinyupload.com/?file_id=18294837115907237178
    PDF File
    Computer:
    Model Name: MacBook Air 2013
      Model Identifier: MacBookAir6,2
      Processor Name: Intel Core i7
      Processor Speed: 1.7 GHz
      Number of Processors: 1
      Total Number of Cores: 2
      L2 Cache (per Core): 256 KB
      L3 Cache: 4 MB
      Memory: 8 GB
    OS: Yosemite 10.10.1

    Thanks for the reply. I think the issue is just confined to Mac machines + Adobe products (this issue doesn't occur when I switch from Word Preview 2016, or Office 2011). I can confirm this issue occurs on more than one Mac as well.
    Here is a slightly larger GIF if the first was too hard to make out
    https://i.imgur.com/CNKnkC0.gif
    It's almost as if the text manipulation / selection from InDesign is carrying over to the Acrobat window, interrupting the normal focus it should get on first click...
    Edit: It just occurred with Spotify - Switched from Spotify to Acrobat, with a scanned image PDF. The rectangular selection tool tries to grab a region of the image several times before focus returns to the Acrobat window. It also just happened after manipulating images and text in Word 2016 Preview and Word 2011.

  • Bug report: Invalid tree select statement

    Hi,
    there seem to be two issues with tree regions.
    1) The SQL statement of the tree region isn't validated as it is done for example for LOV statements when the user apply the changes in the builder.
    2) If a tree SQL statement is invalid and you run the page, it doesn't show the SQL error, instead the error
    Warning: Tree root ID "1" not found
    is displayed, which is very misleading where the actual problem is! It would be better if the SQL error is displayed.
    Thanks
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

    Bug filed, thanks.
    Scott

  • Manual operator selection BUG!!!

    I have an N73 phone. When i am abroad roaming and i use the manual operator selection the phone reverts to automatic operator selection within a minute and overrides my previous manual selection. I find this bug very irritating and i think nokia should post a solution ASAP. Anybody any ideas?
    Nik

    I did few test with different SIM card from different operator and at least for me seems that only TRE (Italy) and THREE (uk and ireland) are blocking the manual operator selection.
    When instead i used TIM (Italy) , or VODAFONE (italy or ireland) the operator selection was stick to MANUAL.
    I have a N95 unbranded latest firmware. but the same BUG is with my N73ME.
    Using a Samsung i600 with Microsoft WM6 the operator selection di work with all my SIM card .
    Does anybody have any idea why the Symbian s60v3 have this bug?

  • Tree, select leaf

    I use a xml-file in a Tree-component. The xml-files has
    nodes, and each node has some properties (type, id, label). I can
    use the code below to read the selected item in the tree.
    var xmlStr:String = myTree.selectedItem.toString();
    var xmlDoc:XMLDocument = new XMLDocument(xmlStr);
    var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true);
    var resultObj:Object = decoder.decodeXML(xmlDoc);
    id = resultObj.node.id;
    This works unless I am selecting an item at the end of the
    tree (the leaf). Then the object is empty.

    Please create a test case using local XML data and file a bug
    at bugs.adobe.com/jira in the Flex project

  • Issue with creation of ADF Table from ADF Tree selection

    Hi,
    Following is the usecase.
    I've created ParentVO & ChildVO from a single table with view criteria to filter the nodes.And then created two View links ParentToChild & ChildToChild.
    Added VOs & corresponding ViewLinks to ApplicationModule. It's got created hierarchy as Parent1->Child1->Chiled2 in Data model section of AM.So Iam done with tree creation process in Model.
    As VC can't be applied for sub levels. In order to set the VCs for sublevels, followed the below approach.
    Created a bind variable for tree. I've set the VC for both parent & child VOs in managed bean before setting the tree variable in setTree method. So now Iam able to display the required tree in UI with applying VCs.
    Now , I can select the required nodes from tree and then click on command button to display the selection list as a table.
    In order to achieve this, I tried below two options.
    1) Created separate Child VO instance (Child3) from Child VO and applied same view which applied initially. and the dragged the Child3 from Datacontrol to UI(jsff) as a table. When I run the application,it's displaying all the records from the DB table without applying VCs.
    2) Dragged the Child2 as a table on UI. When I run the application, it's displaying first record from the table without applying VC.
    But no luck in getting the required functionality.
    I've Following queries.
    a) If we update any transient attribute value for an VO instance, will it effect at VO level or only for that particular instance?
    Why because, I've created new instance of same VO. But the changes are not effecting for transient attributes in the new instance of VO.
    b) Can some one suggest on my usecase to display the selected nodes from a tree in table format?
    I tried my level best to explain the usecase. But let me know,if you have any queries on my usecase.
    Thanks in advance,
    Samba.

    This is my code:
    <af:column id="c1" headerText="Sponsor Status">
    <af:selectOneChoice label="Label 2" id="soc1" value="#{row1.sponsorStatusDesc}"
    validator="#{backingBeanScope.EditSponsorDetails.OnSponsorStatusChange}"
    valuePassThru="true">
    <f:selectItems value="#{pageFlowScope.confLists.spStatus}"
    id="si1"/>
    </af:selectOneChoice>
    </af:column>
    and this i what HTML code says..
    <select id="confSponsor:r2:0:tbIEEEsp:0:soc1::content" class="x2h" name="confSponsor:r2:0:tbIEEEsp:0:soc1">
    <option _adftmpopt="t" value="" title=""></option>
    <option value="4" title="Approved">Approved</option>
    <option value="3" title="Declined">Declined</option>
    <option value="6" title="New">New</option>
    <option value="2" title="Not Valid">Not Valid</option>
    <option value="5" title="On Hold">On Hold</option>
    <option value="1" title="Pending Approval">Pending Approval</option>
    <option value="7" title="Unidentified">Unidentified</option>
    </select>
    Stll i cannot see any value populated in SelectOneChoice

  • Workaround for JSFL shape selection bug?

    There seems to be a bug in the document selection reporting in JSFL in  CS4 (haven't tested earlier versions).  I submitted it as a bug to Adobe  but I'd really like to find a workaround for it.  I've included my bug  report below.  Has anyone else encountered this?  If so, have you  figured out a workaround?  It's pretty annoying, making the tool I'm  working on really difficult to manage.
    ******BUG******
    After performing a publish preview, fl.getDocumentDOM().selection  reports an incorrect selection of raw shapes.
    Steps to reproduce bug:
    1. Create a JSFL command with the following contents:
    doc = fl.getDocumentDOM();
    fl.trace("there are " + doc.selection.length + " items selected");
    2. Start the authoring environment fresh, with a new document.
    3. Draw several shapes on the stage, not touching each other, all in  the same frame and layer.
    4. Select one of those shapes but leave the others unselected.
    5. Run the previously created JSFL command.  It will send the following  text to the output panel, as one would expect:
    "there are 1 items selected"
    6. Do a publish preview (either Flash or HTML).
    7. When it comes up, close the preview window.
    8. Deselect all and then select one of the shapes (again, keeping the  others unselected).
    9. Run the JSFL command again.  This time, it will say that there are n  items selected (where n is the number of shapes you drew in step 3).   So if you drew three shapes, it will print out the following:
    there are 3 items selected
    Note that this result will be the same even if you go to a different  document, do a publish preview on that document, then return to the  original.  It seems that simply doing a publish preview alters Flash's  state to report the selection incorrectly.
    Results: The JSFL command reports that all the shapes are selected,  despite the fact that only one of them is.  The only way I've found to  get Flash back to its normal behavior is to restart the authoring  environment.
    Expected results: In the steps above, the JSFL command should always  print out that there is one element selected.  There's no reason that  doing a publish preview should change that.

    When selected all shapes in selection are treated as one. You can see it if you run this script with selected multiple shapes:
    fl.trace( fl.getDocumentDOM().selection[0].contours.length );
    It will output you twise bigger number then selected shapes (because each Shape has two contours - one clockwise, other counterclockwise).
    Of course this. implementation is strange for me too. Thats how i found your post

  • Navigate from tree selection to parameterized report on same page

    I have a simple tree showing the departments and roles within our organization.
    I have a simple report showing the skills required for each node in the tree, sometimes general skills that apply to whole department, sometimes specialized skills for the roles within a department.
    I've created a page that has two regions. I managed to get the tree on the left and report on the right by including the two regions in the same display point and changing the column of the report to "2".
    When I click a node in the tree, I want the ID behind the selection to be passed to the simple report. The report will show the skills mapped to the selected node in the tree.
    But since the report is on the same page, I imagine this might be a bit tricky. When the user clicks a node, the whole page would have to be refreshed, preserving the tree expanded to the point where the user clicked, and running the report with the now filled ID.
    In order to do this, I guessed I'd need an application item that preserved state. I created item F1000_OU_ID.
    The SQL for the tree is :
    select "OU_ID" id,
    "PARENT_OU_ID" pid,
    "OU_NM" name,
    'f?p=&APP_ID.:1:&SESSION.::NO::F1000_OU_ID:'||"OU_ID" link,
    null a1,
    null a2
    from "#OWNER#"."TR_OU"
    order by seq_num
    The SQL for the report is:
    SELECT s.skill_type,
    s.skill_nm
    FROM tr_skill s,
    tr_ou_skill os
    WHERE s.skill_id = os.skill_id
    AND os.ou_id = :F1000_OU_ID
    Under the report region, I gave it a conditional display directive to not display until F1000_OU_ID was not null.
    That's as far as I've gotten. The page runs. The regions display where I want them. But when I click nodes in the tree, the page blinks and nothing happens to the report. What am I missing Aces?
    bc

    200 views and 1 reply? Come, come, Aces, you can do better than that!
    Leo, thanks for taking the time to look at it. As I understand it, the "bind" or "host variable" syntax of preceding colon, e.g. ":F1000_OU_ID" is used when referring to application or page items from a SQL Query. The "substitution" syntax of preceding ampersand and following period, e.g. "&F1000_OU_ID." is used when referring to application or page items from things like HTML text.
    To verify this, I used one of the blank pages in my app, page 5. I created two regions, one HTML text, one a report based on a SQL Query.
    For the HTML text, I typed in
    Here is the application item value &F1000_OU_ID..
    For the report's SQL query, I typed in
    SELECT 'OU_ID selected is ['||:F1000_OU_ID||']' text
    FROM dual
    These both work as expected. After I have clicked on a node in Page 1's tree, the F1000_OU_ID is set to a value and that value then appears on page 5 in the two test regions mentioned above.
    So I have no trouble passing stateful values between different pages. My problem, perhaps poorly worded in the original post, is how to "pass" the selected value to the same page, since clicking a link in the tree refreshes the page it is on, in order to pass the value to the report region on the same page.
    If anyone has done this before, please chip in or point me to the thread. Various searches in the forum were just coming up with too many non-relevant results, so I thought I'd ask the experts. Thanks in advance!
    bc

  • Tree component bug (?) and some questions

    Hi! I have some problems and questions about tree component.
    Problems:
    1. I have an expanded tree with ~300 items. Each item label
    displayed in 2-3 strings. After QUICK tree scrolling using mouse
    wheel (I make 3-5 scrolls) for most of items displayed only last
    string and one empty string :(
    Bug of tree renderer? Is it fixable?
    Questions:
    1. Can I have font color X for tree item 1 and font color Y
    for tree item 2?
    2. I have a tree with ~300 items. Expand/Collapse tree
    operations takes 5 to 10 seconds on Core2Duo. Is it possible to
    speed up this operations?
    Code:

    Hello.
    About problem 1.
    I faced this problem several times, cann't understand the
    problem. May be it's a bug.
    Questions.
    1. Of course you can. Write itemRenderer for this.
    2. Tree has effects for expanding and collapse events, you
    can reduce times for them.

Maybe you are looking for