How to select objects in af:tree or af:treeTable

Hello! I have af:treeTable :
+<af:treeTable id="cadTree" value="#{tree_dc.tree}" var="node"+
+binding="#{workarea_vb.treeCadastralTable}"+
+emptyText="no data" rowSelection="single"+
+selectionListener="#{workarea_vb.select_cadastralTree}">+
+<f:facet name="nodeStamp">+
+<af:column id="firstDepCol" rowHeader="unstyled"+
+headerText="kn" sortable="false"+
+noWrap="false" styleClass="treeTable">+
+<af:outputText value="#{node.fullName}" id="defMenuItem"/>+
+</af:column>+
+</f:facet>+
+</af:treeTable>+
how can i select and expand node, which contain some object?
it should be method like this:
+public void selectNode(UIXTree tree, TreeModel model, Object obj) {+
+RowKeySet rks = tree.getSelectedRowKeys();+
+rks.removeAll(); // clear old selection+
+//+
+// here we should find node with object "obj" and select it ...+
+//+
+}+

Hi,
if you define a method reference for the af:tree selection listener then you get access to the selected rowKeySet, which gives you information about where the user clicked on
Frank

Similar Messages

  • How to select objects marked in the layer panel?

    Hello,
    this may be simple and trivial, but somehow I fail to express it nicely so that the search engines would find the answer for me...
    so here is my question.
    Imagine that you have several objects marked in the layers panel. (by "marked" I mean, I simply clicked on the objects name in the panel)
    Unfortunately, when they are marked there, it does not make them yet selected in the main viewport.
    So - how do I make the marked objects selected without Shift+clicking every single circle on the right-end side of the object name?
    (using CS5 version of the Illustrator)
    Many thanks!

    Well, I was thinking your second-born child, Scott, but the cursor will work too.
    P-Dan: hold your option (alt) key down and drag your cursor over the NAMES of the objects (or groups or layers) in the layers panel. If you want to skip over an object or two (or 10), hold both shift and option keys down and click on the noncontiguous object you want to add to the selection. From there, with the option key still down, you can continue selecting contiguous objects. Or hold the shift and option keys down and hop-scotch through your layers panel selecting discontiguous objects at will.
    If all of this is too much for you, a viable alternative is to go into dentistry.
    May I remind you all also that Monika suggested this very technique way up high in this thread.

  • How to select more than one node in tree

    Hi
    plz any one know how to select multi nodes in tree components ??
    i wana select two employees or more from tree in order to know their informations how can i do that
    10nx for help

    i can select them from different parents that depends on what i want to select Like:
    Admin-Sam
    -Dinda
    Users-David
    -Marylinn
    -Sandra
    for ex: i wana choose Sam , Sandra & David to view thier times and OT on selecting them

  • How to get selected items from a tree in backing bean without adfbc

    Hi ADF Experts,
    Below is my code for af:tree. My question is how can I get selected Items from the selectionListener (without adf bc) this uses formation of tree from backing bean.
    Using Jdev 11.1.1.7.0
    <af:tree var="node" value="#{pageFlowScope.MerchandizeBean.model}"
                      binding="#{pageFlowScope.MerchandizeBean.treeModel}"     id="tree" immediate="true" autoHeightRows="0"
                           styleClass="AFStretchWidth" rowSelection="multiple"
                           selectionListener="#{pageFlowScope.MerchandizeBean.treeNodeSelection}">
                    <f:facet name="nodeStamp">
                      <af:commandLink text="#{node.classDescription}"
                           actionListener="#{pageFlowScope.MerchandizeBean.createListManyItemForMerchandise}"           id="displayTable" partialSubmit="true">
                      </af:commandLink>
                    </f:facet>
                  </af:tree>
        public void treeNodeSelection(SelectionEvent selectionEvent) {
            // Add event code here...
            RichTree tree = (RichTree)selectionEvent.getSource();
                    TreeModel model = (TreeModel)tree.getValue();
                    //get selected value
    Thanks
    Roy

    Hi,
    in a multi select case, try
    RowKeySet rks = tree.getSelectedRowKeys();
    Iterator iter = rks.iterator();
    while(iterator.hasNext()){
    Object aKey = iterator.next();
    tree. setRowKey(aKey);
    Object rowData ? tree.getRowData();
      .... do something with the data here ...
    Frank

  • How to select the all object at a time while installing business content

    Hi All,
    how to select the all object at a time while installing business content Please let me know if nay document is there
    Thanks Ahmed Pasha

    Hi,
    Please check out the below links
    [Business content Installation|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/102906a4-f13d-2e10-7199-ce316ff254b8?QuickLink=index&overridelayout=true ]
    [BI Content|http://wiki.sdn.sap.com/wiki/display/BI/InstallingBusinessContent]
    Hope it helps.
    Regards,
    AL

  • How to select multiple records from a TREE in the table

    HI,
    I have a tree structure which is in the table.When I open the node of the tree,all the subnodes are coming as one-one records in the table.I want to slect multiple record from this table.I applied onLeadSelect for this table,I can select only 1 record from the table.
    Can any one plz suggest me how to select multiple records from the table so that I can get all the data of those selected record.
    Regards
    -Sandip

    Rashmi/Kukku,
    First of all, Thanks for your help!
    Is there any other way in which we can access tables other than using BAPIs or RFCs?
    In my case, there is a table structure which has to be updated with values after validating a key. i don't think there is any RFC available now. do i need to create bapi/rfc for that?
    Krishna Murthy

  • Indesign CS3: How to get the UID of the selected object?

    Hello,
    How can I get the UID of the selected object in an document?
    Thanks,
    Alois Blaimer

    Hello!
    I do not get it. Please give me some more hints.
    I only want to know if the selected object is a square and then the UID of the selected square.
    Thanks,
    Alois Blaimer

  • How can we show selected values of a tree in a selectmanylistbox

    how can we show selected values of a tree in a selectmanylistbox??

    Hi,
    you can use a reference to a RichTree component instance and call  getSelectedRowKeys on it. The selected rowKey then allow you to look-uo the nodes in the tree. You can use a custom selection listener on the tree to be notified about each selection. There also is an API for the de-selected row keys, which you need to remove nodes from the select many list. The select many list will get its data from a managed bean in view scope (so the values survive subsequent requests)
    Frank

  • Tree Bean - how to select a node?

    Can someone help how to select a node of the Tree based on the key programmatically?

    Hi there..
    I use a code like this..
    [Bindable] public var selectedNode:XML;
    [Bindable] public var mynewVar:String;
    public function treeChanged(event:ListEvent) : void   {  
    selectedNode = Tree(event.target).selectedItem as XML;
    mynewVar = selectedNode.@nameofNode;
    Cheers!

  • How to select and move objects on multiple layers

    Coming from Photoshop...  how do I move the contents of multiple layers across the page at one time?
    In photoshop, i would click on one or more layesr in the Layers panel, and then use the move tool to move them all on the page. How do I do that in Fireworks? It seems to be too basic to be documented anywhere I have seen but the interaction is very different. I tried  ctrl-clicking on multiple layers and sometimes is seems to work. the objects are selected and I can move them. Other times, it just refused to select anything or it only select the object within one of the selected layers.
    It sort of looks like selecting a layer selects objects in that layer unless the layer has a child layer. Is that true? Seems a strange limitation if it is.
    I saw a comment somewhere that suggrested grouping and ungrouping which seems a little complicated for a basic editing action. Also, if it won't select the objects on all of the selected layers.
    I'm guessing that I'm missing a basic concept in Fireworks here.

    I found that It worked if I selected a layer, if there is a child layer
    then shift>select and ctr+click other layers or objects. You could also
    lock layers/objects you don't want to move and use Select>Select All, if
    you are moving most items.

  • How to select needed objects [CS6-JSX]

    i try to move all particular objects to new layer
    so first i try to select items by strokeWidth.
    var mDoc = app.activeDocument;
    var allObject = mDoc.pathItems;
    for(i=0; i<allObject.length; i++){
        if (allObject[i].strokeWidth==0.17599999904633) allObject[i].selected=true;
    but receive nothing selected.
    i assign stroke to needede objects as 0.176 pt. OK. Then try to see this parameter of one, being selected, through script
    $.writeln(mDoc.selection[0].strokeWidth);
    and receive this long number 0.1759999....
    but when i use this number in codeline (see above), nothing is being selected. Why?
    After this i tried to select by color
    $.writeln(mDoc.selection[0].strokeColor);
    but can't get color, exept "CMYK model". So how can i select objects by stroke color?
    thanks!

    I dont't know if something like app.runMenuItem is possible in CS6+ (I doesn't work with CS6/CC)
    But you can create an action and call this action with
    Application.doScript (action: string , from: string , dialogs: Boolean )
    This is definitly possible in CS6+
    Have fun

  • How do I get the tag of a selected line in a tree control ?

    I am running LabVIEW 7.1.
    I want to be able to add a parent or sibling to a tree to a selected item in a tree.

    The tag of the selected item is actually the output of the tree control itself. If you create an indicator from the tree control, you will get a duplicate tree control (indicator), but if you wire the output into a string indicator, the tag of the selected item will show up. You can an item to the tree by wiring the tree reference into an invoke node, calling the method "Edit Tree Items: Add Item", and wiring the output of the tree control (which will be the tag of the selected item) into the "Parent Tag" terminal. This method will only let you add a child to an item, you cannot add a parent or sibling. Items cannot have multiple parents, so it wouldn't make sense to add a parent; and to add a sibling for the selected item, you could call the method "Navigate Tree: Get Parent" and pass the tag of the parent into the "Edit Tree Items: Add Item" method.
    Robert Mortensen
    Software Engineer
    National Instruments

  • How to bind an object to JNDI tree in iAS?

    Hi all,
    When I try to bind a string object to jndi tree, the following exception
    occurs:
    javax.naming.NamingException: Unable to get object instance from reference.
    Roo
    t exception is javax.naming.NamingException: Can't bind instance of class
    java.lang.String
    at com.netscape.server.jndi.RootContext.bindCtx(Unknown Source)
    at com.netscape.server.jndi.RootContext.rebind(Unknown Source)
    at com.netscape.server.jndi.RootContext.rebind(Unknown Source)
    at javax.naming.InitialContext.rebind(InitialContext.java:385)
    at jsp.APPS.bmx.test2._jspService(test2.java:76)
    at jsp.APPS.bmx.test2.service(test2.java:42)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at
    com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    The code fragment is:
    Context ctx = new InitialContext();
    String str = "hell,every one!";
    ctx.rebind("abc", str);
    Can anyone give some help? Thanks in advance.
    Johnson

    To bind an object into the JNDI tree check the documentation here:
    http://e-docs.bea.com/wls/docs81/jndi/jndi.html#475702
    If this is to be used by all your applications that you deploy on the server check out the startup/shutdown class documentation here:
    http://edocs.bea.com/wls/docs81/ConsoleHelp/startup_shutdown.html
    Cheers
    IV

  • Yikes!  set selection in an explorer tree is hard!

    Okay,
    So I wrote an explorer-style tree (aren't you happy I'm not asking how to write one?) However- coming back in to this tree and re-selecting a directory, say from a history list, is hard!!!
    This tree uses a custom node that basically wraps a java.io.File object. The problem is mostly on Windows since the Linux root concept is more of a programmers friend. Say I build a tree with getRoots(), so I show "C:\", "D:\", etc.
    Now say later I need to tokenize a path and try to rebuild a tree path. Well it is hard to reconsuct an array of java.io.File-backed objects! The reason is that 'new File("A:")' doesn't equal 'new File("A:\\")' however some paths can be equal even if the path delimiter is different.
    So since I don't know (and shouldn't count on) how a File object was initially created when I call listRoots()- it is very hard to know how to properly re-create a new File object to stick in a TreePath that will be equal enough for setSelectionPath() to work.
    Any ideas on this??? Thanks

    Well the fix was ugly but I see no way around it. I have to force 'A:' to be 'A:\' wherever I see it or else the file objects created off of that string won't be equal to one another.
    I don't understand it- new File("A:") should .equal new File("A:\") but it doesn't.

  • Unable to remove a host from VMM - Error (2606) Unable to perform the job because one or more of the selected objects are locked by another job.

    I am unable to remove a host from my Virtual Machine Manager 2012 R2. I receive the following error:
    Error (2606)
    Unable to perform the job because one or more of the selected objects are locked by another job.
    Recommended Action
    To find out which job is locking the object, in the Jobs view, group by Status, and find the running or canceling job for the object. When the job is complete, try again.
    I have already tried running the following command in SQL Server Management Studio
    SELECT * FROM [VirtualManagerDB].[dbo].[tbl_VMM_Lock] where TaskID='Task_GUID'
    I received this error back:
    Msg 8169, Level 16, State 2, Line 1
    Conversion failed when converting from a character string to uniqueidentifier.
    I have also tried rebooting both the host and the Virtual Machine Manager Server.  After rebooting them both, I still receive the same error when trying to remove the host.
    Here are my server details
    VMM Server OS = Windows 2012 Standard
    VMM Version = 2012 R2 3.2.7510.0
    Host OS = Windows 2012 R2 Datacenter
    Host Agent Version = 3.2.75.10.0
    SQL Server OS = Windows 2012 Datacenter
    SQL Version = 2012 SP 1 (11.0.3000.0)

    Hi there,
    How many hosts are you managing with your VMM server?
    The locking job might be the background host refresher job. Did you see any jobs in the jobs view, when the host removal job failed?
    If there is no active jobs in the jobs view when this host removal job fails, can you please turn on the VMM tracing, retry the host removal, and paste back the traces for the failed job (search for exception and paste the whole stack)?
    Thanks!
    Cheng

Maybe you are looking for

  • Audio Drivers for an XP install of a dv7t-1200?

    I had to reformat my laptop and since Vista is still a mediocre at best OS, I decided to switch back to XP. Unfortunately, it seems as though HP has no audio drivers for this operating system. Is there any known way to get audio working on a dv7t-120

  • Add Page n of nn, date, current user name to aReport Footer on PDF Report

    Hello, I am very new to using Apex. I have a SQL Report which I can output to a PDF and works. I have a header and the contents of the report all appearing in the PDF OK. I would like to have a footer for each page which has the date & timestamp, cur

  • How to delete object in Integration Repository SAP PI 7.0

    how to delete object in Integration Repository SAP PI 7.0

  • Remove SelectionBackColor from a RichTextBox

    I have a richtextbox with a highlighting feature. However, it seems impossible to revert the selectionbackcolor of the selected text when removing the highlight color. I cannot just hard-code the color as transparent or the richtextbox backcolor beca

  • How to use query in sap tm?

    I have tried to call the query method using service manager instance as shown below CALL METHOD lr_srv_mgr->query      EXPORTING        iv_query_key            = zif_viv_trq_c=>sc_query-root-test_query *     it_filter_key           = lt_filter