My code to "select" an element in the Tree UI element is not consistently working

Hi,
I created a Web Dynpro component that does many things.  One feature is do display information in a Tree UI element.  I use the TreeNodeType and recursive context node to build a nice tree representing what the customer wants.  Since this tree could get very large, I implemented a search feature to help users locate items in the tree.  When found, I expand the tree, and call call set_lead_selection passing in the element where found.  This seems to generally work fine (and highlights the highlights the desired TreeNodeType), but only when going farther down in the tree. If I change the search so that it should find something "higher up" in the tree, the search still works, and it finds the data, but calling the set_lead_selection does not seem to unhighlight a previously located TreeNodeType.  I have added code to loop through all elements in the tree and call set_selected( ABAP_FALSE).  This didn't seem to help.  If I use the mouse and manually click on the root of the tree, it seems deselect previously highlight TreeNodeTypes, and the highlighting works again (but still just going forward).
I implemented a Find Next feature that starts where the last search left off, and looks farther down the tree.  This works more consistent, but still occassionaly seems to "forget" to unhighlight a previously located TreeNodeType/element.
What am I doing wrong?
I am attaching a screen shot.

Hi Perry,
Before setting the lead selection of found result, try to clear all the selected elements from context node.
Sample:
               data lo_node type ref to if_wd_context_node.
               lo_node = wd_context->get_child_node ( name = 'MY_NODE' ).
               "Clear the current selection
               lo_node->clear_selection( ).
               " now, set the lead selection
                lo_node->set_lead_selection( .... )
Hope this helps you.
Regards,
Rama

Similar Messages

  • Delete an Element in the Tree

    Hi,
    I would like to delete an element in the tree.
    but I was able to delete only the rootNode
    Could you help me. thanks
    IPrivateTreeView.ITreeNodeNode rootNode =
         wdContext.nodeTreeNode();
    IPrivateTreeView.ITreeNodeElement level2Delete = null;
    level2Delete = rootNode.currentTreeNodeElement( );
    // I would like to do somethink like that
    level2Delete.REMOVE_ELEMENT

    Hi Philippe,
    it's sooooo easy This is a snipped from the IWDNode API
       * Removes an element from the node collection. If an ICMIObservableList is
       * bound to the node, this list is modified!
       * @param element The element to be removed
       * @return <code>true</code> if the element was in.
      boolean removeElement(IWDNodeElement element);
    so you simply have to call
    wdContext.nodeTreeNode().removeElement(level2Delete);
    Hope that helps.
    Regards
    Stefan

  • Cannot install itunes 7 because os 10.6.8 is needed. I select software update and the 10.6.8 is not available to be downloaded. I'm trying to load itunes to the iphone5

    cannot install itunes 7 because os 10.6.8 is needed. I select software update and the 10.6.8 is not available to be downloaded. I'm trying to load itunes to the iphone5

    If you're using a PowerPC Mac, you can't.
    If you're using an Intel Mac, phone the online Apple Store and order a Mac OS X 10.6 DVD.
    If you don't know, choose About this Mac from the Apple menu.
    (70291)

  • I have a slide with 4 smart shapes that I am using as buttons. If I select include in quiz, the On Success branch does not execute. If I deselect include in quiz, the On Success branch executes. What am I missing?

    I have a slide with 6 smart shapes that I am using as buttons. If I select include in quiz, the On Success branch does not execute. If I deselect include in quiz, the On Success branch executes. What am I missing?

    What setting do you have in Quiz > Settings > Required?  If it's not set to Optional, do that.

  • My iphone 4s voice dictation for text messages is not consistently working. Sometimes it works, other times after the dictation it just gives me a blank space. Anyone else having this problem?

    My iphone 4s voice dictiation for text messages is not consistently working. I've had the phone since Thanksgiving and it always worked perfectly, but the last few weeks it's been hit or miss. Sometimes it works, sometimes it doesn't. Anyone else having this problem? I tried the hard reset but that hasn't fixed it.

    I have the same problem since updating to IOS 8.3. Any app to which I want to send a new link via IMessage does not allow me to select a contact to send the IMessage to. Using a pre-existing thread does not have same problem.

  • Active version of the BDoc type PRODUCT_MAT is not consistent

    Hello,
    We are using CRM 7.0. We tried to release change request but got an error message:
    Active version of the BDoc type PRODUCT_MAT is not consistent in the table SEGM
    Do you know what should we perform to resolve this problem?
    Thanks in advance,
    Sergey Kozyrev

    Hi Sergey,
    Please check the entry in table SMOG_TRANS for TR_NAME = PRODUCT_MAT.
    Current active version i.e SMOACTV = X ,in SAP standard system is for,
    SMOVERS = 00015      .
    Also,you can try re-generating the BDoc PRODUCT_MAT once again.
    Hope this helps!
    Best Regards,
    Shanthala Kudva.

  • My ipad does not wanna work i bought a new keyboard magnets can it be the problem the magnets, my ipad does not wanna work i bought a new keyboard magnets can it be the problem the magnets

    my ipad does not wanna work i bought a new keyboard magnets can it be the problem the magnets, my ipad does not wanna work i bought a new keyboard magnets can it be the problem the magnets.  it was still working just before i test the magnet case
    i allready try restart and nothing and in try to connect to itunes it does not pick up my ipad what can i do

    How are you resetting the device? I presume you're doing something like this?
    Press and hold the Sleep/Wake button (on the top of the ipad) and Home button together for at least ten seconds until the Apple logo appears.
    What happens after the device resets? Does the Apple logo appear to be replaced by the home screen? Does the iPad respond to any of the buttons or the screen at all?
    tt2

  • Yoga 13: the Realtek RTL8723A new driver not yet working properly

    After having faced lots of stability issues with my bluetooth mouse (Microsoft Sculpt Touch) I installed the new driver for the wifi/bluetooth chip RTL8723A (v1.04.0213 - 6th June 2013) and after having used it for several weeks, I have noted the following:
    Bluetooth issue:
    - Still several disconnection of my mouse (but slighty less than before)
    - There is a general trend that my mouse connection is worser everyday (used to work better) - and not a problem of batteries
    Wifi issue:
    - If I activate the "plane mode" from windows 8 wifi bar, it's impossible to reactivate the wifi! I have to run the windows'internal utility to sort out the problem (right clic on the wifi bar from the desktop and "resolve problems")
    - Sometime the wifi just doesn't connect properly (its connected on the router but there is no network) and I have to turn on the plane mode and do what I wrote above to make the wifi work again. But some time it doesn't work and I have to reboot
    - Despite the "wifi hotspot mode" is implemented (the "netsh wlan start hostednetwork" command) and work it's so instable that it always end in crashing the computer and followed by a reboot (perfectly managed by Windows 8 at least). Anyway I managed to cope with that during my holidays (I used it to create another wifi network which was a network share of another wifi network to which I could only log in for one device (my Yoga 13) - so I used my "hostednetwork" to connect iDevices at the same time). But after several crashes and reboot, the wifi was so instable that I had to reinstal the driver
    I have never faced so much bugs in a so basic but vital component of a laptop which is the network card. This card is already far beyond what we could expect of a laptop of this range (the wifi n is single band, no 300 nor 450 mbits speed! It's worse than any modern smartphone!) and has not a good sensitivity but in top the driver seems to have been written by beginners.
    So Lenovo, please, do something and pressurise your provider (Realtek) so as they release a driver working correctly - or just don't use their cards and invest in better providers (like Intel which is doing great network cards with professional class software). 

    Sorry to hear about all your wifi issues.  Unfortunately a lot of Yoga 13 owners are having problems, especially due to Realtek compatibility with specific router hardware.  Just to see if things improve you might try some of the other driver versions discussed here:
    The "Beta" wifi driver from diecast17 is a little older than the official June 6th driver but first improved wireless for many users: http://forum.notebookreview.com/ideapad-essential/640537-ideapad-yoga-109.html#post9180970
    There is a slightly newer Bluetooth driver for another Lenovo product that also works for the Yoga 13 (per this forum thread, installs version 05/22/2013-1.3.744.3 vs. 09/06/2012-1.3.644.3): http://support.lenovo.com/en_US/downloads/detail.page?DocID=DS034706

  • Need java code to select a folder from the Host server System

    Hi All,
    In my application For a button click i want to select a folder from host server .And copy an image into that selected path. Iam using tomcat 5.0. Can any one tell me how can i do this? Can any one provide sample code for this...
    Thanks in Advance!!!

    Dblr, welcome to the forum.
    When requesting help, you should always include the make/model of the computer and/or monitor. This information is necessary for us to review the specifications of them.  We need to know Windows version you have installed.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • Safari's font selection is available but the actual font file is not in Mac

    I am having problem with view the correct font rendering on safari for mac for some of the Chinese text. I used to be able to fix it under 3.0.4 but for some reason, the same thing is happening again and I could not get rid of it.
    The situation is that under Safari 3.1, if I go to preferences->appearance->select (for standard font); I will see a font name "MingLiU" available. However, the actual file for that font is actually nowhere to be found on the computer. The reason why I need to find this file is that it is causing problem in letting safari to correctly display Chinese traditional text. I used to be able to go to font book and disable or remove the font but I went through font book and could not find such font file. I have also searched the entire hd and still could not find the font file.
    If you have some ideas about locating that file, I would really appreciate it. Thanks in advance.

    I think I found something interesting. Safari 3.1 actually downloads the font web pages uses and save it somewhere NOT in the font book. I found out about this by using firefox, which relies on the font in font book, and by uninstalling safari 3.1 and, before visiting any cite, I checked the kind of fonts available and then after I visit the problem site and voila, the problematic font now appears in one of the selections for safari.
    I guess I will just have to stop using safari until I am allowed to control the kind of the fonts I can download.
    Thanks,

  • My six year old set up the restrictions code on my iPad and he doesn't remember the code he used. How can I find out the code. I already tried reseting the iPad and it did not work.

    How can I retrive the passcode for Restrictions? I already tried reseting my iPad to factory settings but did not work.

    I believe there is a way to reset the settings only, but I'm not sure if that applies to restrictions. Maybe there is a way on the computer?

  • In a popup the tree table data is not getting displayed properly

    Hi,
    I have a taskflow which contains a tree table within a panelStetchLayout. Following is the taskflow code :
    <af:panelStretchLayout id="SecurityAdminManageRoles" bottomHeight="0" topHeight="auto" inlineStyle="width:725px;height:400px;">
    <f:facet name="center">
    <af:treeTable value="#{bindings.WebCenterSecurityDCPermission.treeModel}" var="node" expandAllEnabled="true" fetchSize="150" verticalGridVisible="false" horizontalGridVisible="true" columnSelection="none" rowBandingInterval="0" columnStretching="last" contentDelivery="immediate" summary="#{uib_o_w_w_r_WebCenter.SECURITY_PERMISSIONS}" disclosedRowKeys="#{webcenterAdminSecurityBean.disclosedRowKeySet}" inlineStyle="border:none" binding="#{webcenterAdminSecurityBean.rolesTable}" id="tt2" styleClass="AFStretchWidth" autoHeightRows="150">
    <f:facet name="nodeStamp">
    <af:column width="260"
    selected="false" noWrap="false" id="c3">
    <f:facet name="header">
    <af:outputText value="#{uib_o_w_w_r_WebCenter.LABEL_PERMISSIONS}"
    id="ot5"/>
    </f:facet>
    <af:panelGroupLayout id="pgl26">
    <af:forEach items="#{bindings.getRoleHeaders.result}" var="role">
    <af:outputText value="#{role.value}" visible="false" id="ot1"/>
    <af:selectBooleanCheckbox selected="#{node.dataProvider.serviceActions[role.value]}"
    rendered="#{!node.dataProvider.serviceHeader}"
    label="#{null}"
    disabled="#{(node.dataProvider.readOnly and role.seededRole) or node.dataProvider.actionDisabledMap[role.value] == true}"
    simple="true" id="sbc2">
    <f:attribute name="permission" value="#{node}"/>
    </af:selectBooleanCheckbox>
    </af:forEach>
    <af:spacer width="5" id="s2"/>
    <af:outputText value="#{node.name}" noWrap="false" id="ot2"
    inlineStyle="#{node.dataProvider.serviceHeader? 'font-weight:bolder;': ''}"/>
    </af:panelGroupLayout>
    </af:column>
    </f:facet>
    <af:column headerText="#{uib_o_w_w_r_WebCenter.LABEL_DESCRIPTION}" rowHeader="unstyled" noWrap="false" id="c1">
    <af:outputText value="#{node.description}" noWrap="false"
    inlineStyle="color:grey;" id="ot3"/>
    </af:column>
    </af:treeTable>
    </f:facet>
    </af:panelStretchLayout>
    </jsp:root>
    This taskflow is included as a region within another page :
    <af:commandToolbarButton id="cb3"
    shortDesc="#{uib_o_w_w_r_WebCenter.LABEL_EDIT_PERMISSION_HINT}"
    icon="/adf/webcenter/edit_sm_ena.png"
    text="#{uib_o_w_w_r_WebCenter.LABEL_EDIT_PERMISSION}"
    inlineStyle="align:left">
    <af:showPopupBehavior popupId="managePopup"/>
    </af:commandToolbarButton>
    <af:popup id="managePopup" contentDelivery="lazyUncached">
    <af:dialog modal="true" type="cancel"
    title="#{requestContext.formatter[uib_o_w_s_r_Spaces.EDIT_ROLE][pageFlowScope.o_w_wa_spacesRoleBacker1.selectedRole.value == webcenterAdminSecurityBean.spacesUsersRole ? uib_o_w_s_r_Spaces.LABEL_AUTH_USER : pageFlowScope.o_w_wa_spacesRoleBacker1.selectedRole.value]}"
    titleIconSource="/adf/webcenter/empty.png" id="d4">
    <af:region value="#{bindings.editroletaskflow.regionModel}"
    id="r2"/>
    <f:facet name="buttonBar">
    <af:commandButton partialSubmit="true"
    text="#{uib_o_w_w_r_WebCenter.LABEL_SAVE}"
    actionListener="#{o_w_w_i_v_b_webCenterViewUtilsBean.saveChangesAndCloseWCLinksPopup}"
    id="cb4">
    <f:attribute value="#{bindings.editroletaskflow.regionModel}"
    name="wcRegionModel"/>
    <f:attribute value="bindings.saveRoles.execute"
    name="wcMethodToExecute"/>
    </af:commandButton>
    </f:facet>
    </af:dialog>
    </af:popup>
    In the main page, there is a table, I select one row and then click on this commandButton, which launches the popup.
    The problem here is that when I launch the popup, there are many rows in the table and hence a scroll bar appears. Scroll down the popup and close the popup.
    Again I launch the popup, I see that the popup displays in the same state as it was closed before, i.e the scrollbar is at the bottom and the first row is not displayed.

    ...also do not forget to:
    1. adjust the Active property for the task flow binding (in the pageDef).
    Set property value to the true on popupFetchListener, and to the false when closing popup
    2. for the af:popup containing region, set childCreation to deffered

  • Upgrading to 8.1.7.2 causes the most basic XML Usages not to work anymore

    Any ideas?
    I try the following and get:
    declare
    queryCtx DBMS_XMLquery.ctxType;
    result clob;
    begin
    DBMS_JAVA.SET_OUTPUT (1000000);
    queryCtx := DBMS_XMLQuery.newContext('select * from dual');
    result := DBMS_XMLQuery.getXML(queryCtx);
    DBMS_XMLQuery.closeContext(queryCtx);
    exception when others then
    dbms_output.put_line(substr(sqlerrm,1,255));
    end;
    java.lang.NullPointerException
    at oracle.xml.sql.query.OracleXMLStaticQuery.getXML(OracleXMLStaticQuery.java:628)
    ORA-29532: Java call terminated by uncaught Java exception: java.lang.NullPointerException
    This used to work!! Any suggestions would be great. I have also made sure to run all the followup scripts against the database that are documented in the install instructions and on metalink for the additional scripts that need running.
    All help is appreciated.
    Thanks,
    Brad

    I did a manual uninstall of the XDK, and reinstalled it. Works fine now. Just have to deal with the other issue I have with nested cursors and BLOB/LONG data types.
    Hope this helps someone.
    Brad

  • . I play POGO and have not been able to access rooms for four days. Have contacted their help desk = not much help. I get the message that the firewall or Firefox may not be working. Is there anything you can do to help me. Thank you very much

    Can you help me

    go to tools and options to clear the history, cache, and cookies. This has helped me in the past to get POGO going again.

  • I have to use a wireless mouse with my MacBook Pro because the touchpad does not consistently work.  Now, the wireless mouse is not consistently staying connected.  Any ideas??

    Why doesn't my Apple wireless remote remain connected?  It is frequently giving me a "lost connection" signal and since the touch pad works intermittently it has become frustrating.

    Hi at eeze,
    If you are having issues with your wireless mouse, you may find the following article helpful:
    Apple Support: Troubleshooting wireless mouse and keyboard issues
    http://support.apple.com/kb/ts3048
    Regards,
    - Brenden

Maybe you are looking for