Htmlb:tree differentiate between nodeclick and tree node expander click

Hi,
how can i differentiate between nodeclick and tree node expander (to get to its children) click in my event processing in htmlb:tree element.
<u><b>What i am trying to achieve?</b></u>
Onload just load root node and its immediate children.
On node expand get the children of the current node and modify htmlb:tree table2 with additional node inofs.
on node click  call some client function.
But my issue is that i am not able to differentiate between node expander click and node click in my event handling. Any help on this is appreciated.
(I am not using MVC)
Thanks in advance.
Regards
Raja
Message was edited by: Durairaj Athavan Raja

After reading your weblog I think I understand better. I did some testing with my example.  I am using the toggle = "true", so that the page returns to the server each time an expander is selected.
<htmlb:tree id          = "myTree1"
              height      = "75%"
              toggle      = "true"
              title       = "<b><otr>EQI Reporting Tree</otr></b>"
              width       = "90%"
              onTreeClick = "myTreeClick"
              table       = "<%= application->selection_model->itview                             %>" >
  </htmlb:tree>
However I have not added any coding in my event handler to respond to the expander event.  I only respond to myTreeClick (which loads some data for the given selection).  The BSP tree element itself must be doing the hard work for me. 
  if event_id cs 'tr_myTree1'.
    data: tree_event type ref to cl_htmlb_event_tree.
    tree_event ?= htmlb_event.
    if tree_event->server_event = 'myTreeClick'.
      clear appl->message1.
      appl->selection_model->get_chart_data( appl = appl
                                             node = tree_event->node ).
    endif.
  endif.
I pass my entire tree defintion to the element.  It appears that it only sends visible nodes to be rendered. When the expander is selected, I don't have to do anything, the tree re-renders with only the newly visible rows. 
I tested and turned off the toggle (toggle = "false") and my page took forever to load because it was sending all the nodes to the frontend on the first load.

Similar Messages

  • Differentiate between mapping and optimization.

    Hi
    tell me some thing about this.
    Differentiate between mapping and optimization.
    please
    urgent. imran

    user571615 wrote:
    Hi
    tell me some thing about this.
    Differentiate between mapping and optimization.
    please
    urgent. imranThis is a forum of volunteers. There is no urgent here. For urgent, buy yourself a support contract and open an SR on MetaLink.

  • Servlet filter that can differentiate between Filter and Servlet Writers

    Hey,
    I'm trying to build a Filter and HttpServletResponseWrapper that, when applied to a generic servlet, can differentiate between the output stream from the Servlet and the one from the Filters.
    So, say I have a servlet:
    PrintWriter pw = response.Writer();
    pw.write( "Output from servlet" );
    pw.close();And a filter that is applied to the servlet:
    PrintWriter pw = response.Writer();
    pw.write( "Output from filter" );
    pw.close();I want to be able to do this in my filter that is able to differentiate between the servlet and filter response:
    System.out.println( "Response from servlet: " + responseWrapper.servlet.toString() );
    System.out.println( "Response from filter: " + responseWrapper.filter.toString() );The responseWrapper.servlet and responseWrapper.filter can contain all filter responses from all the servlet(s) and filter(s), respectively.
    Can anyone give me guidance as to how to start with this - really I just need to know if I can differentiate between servlet and filter responses in a generic way (without having to modify the response specially in the filter or servlet files that write output)
    Thanks for your time.

    first thing's first..if the OutputStream if not closed Either a Filter or a ServletChain can write on to the stream.
    There could be cases where the servletoutputstream would be closed at servlet end itself.Therefore,its a valiant effort by acomplishing a responseheader in the response to indicate that.
    Now once the response/outputstream is not closed or flushed out there is not direct way by which you do this unless we indicate using response Headers as flags when we are implementing FilterChaning.
    Hope that might help :)
    REGARDS,
    RaHuL

  • Differentiate between Items and Customer Items

    Differentiate between Items and Customer Items
    pls try to give information about this
    thanx

    Hi Joel,
    Funny you mentioned it, because just today I was thinking about that, and I thought that if it will happen, I will rant you on your forum dereliction of duties. So it seems you’re off the hook now :)
    Anyway, judging from the last 3.0/3.0.1 versions it seems like you are doing your other duties very well so I really don’t mind you keeping the lead.
    Best regards,
    Arie.

  • Issue with Drag&Drop between table and tree component

    I want to drag table rows and drop it on the tree node. I use following code to achieve this:
    <af:table value="#{bindings.pricingObjects.collectionModel}"
    var="row"
    rows="#{bindings.pricingObjects.rangeSize}"
    emptyText="#{bindings.pricingObjects.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.pricingObjects.rangeSize}"
    selectionListener="#{workspaceBean.onTableSelect}"
    rowBandingInterval="0" id="poTable"
    partialTriggers=":::csTree :::cbRefresh"
    columnStretching="column:c4"
    displayRow="selected"
    contentDelivery="immediate"
    clientComponent="true"
    binding="#{workspaceBean.table}"
    rowSelection="multiple">
    <af:dragSource actions="MOVE" defaultAction="MOVE" discriminant="rowmove"/>
    </af:table>
    <af:tree value="#{bindings.privateChangeSets.treeModel}"
    var="node" displayRow="selected"
    selectionListener="#{workspaceBean.onTreeSelect}"
    rowSelection="single" id="csTree"
    expandAllEnabled="false"
    binding="#{workspaceBean.tree}">
    <af:dropTarget dropListener="#{workspaceBean.dropListener}" actions="MOVE">
    <af:dataFlavor flavorClass="org.apache.myfaces.trinidad.model.RowKeySet"
    discriminant="rowmove"/>
    </af:dropTarget>
    </af:tree>
    With this code I am getting the data of dragged rows but I am not able to get the tree node where rows are dropped. Dropevent.getDropSite() always returns NULL.
    Strangely, I tried to use deprecated tags <af:collectionDragSource> and <af:collectionDropTarget> and everything works fine. Dropevent.getDropSite() returns me the correct rowkey of tree node.
    Any idea why am I not getting desired result with <af:dropTarget>?

    Hi,
    +" Please note that dropSite==null is a legal value for collection components. dropSite=null and DropOrientation==ON indicates that the drop has happened outside the data portion of the collection component and should be treated as a drop on the entire component Also note that dropSite==null and DropOrientation==AFTER indicates that the drop has happened on an empty collection component and the user intends to append the data."+
    http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e10684/oracle/adf/view/rich/event/DropEvent.html#getDropSite__
    List dropRowKey = (List) dropEvent.getDropSite();
            //if no dropsite then drop area was not a data area
            if(dropRowKey == null){
                return DnDAction.NONE;
            }Frank
    Edited by: Frank Nimphius on Feb 18, 2011 11:18 PM

  • Does namcap differentiate between depends and makedepends ?

    In my mesa-r600-git AUR package i have the following dependency lines :
    depends=('libxt' 'libxxf86vm' 'libxdamage' 'xorg-server' 'libxv' 'libffi')
    makedepends=('pkgconfig' 'python2' 'talloc' 'libxml2' 'imake' 'git' 'glproto' 'dri2proto>=2.6' 'llvm>=3.0' 'xorg-server-devel' 'libxvmc' 'libvdpau')
    When i run namcap on the pkg, it reports :
    mesa-r600g-git W: Dependency libffi included but already satisfied
    it is true that python2 and llvm both require libffi to be installed, but these are makedepends, while libffi needs to be present at runtime.
    The man page for namcap doesn't make clear if namcap does make  a difference between depends and makedepends, does somebody know if it DOES ?

    libffi is in your dependency tree...
    |--libxt
    |--libsm
    +--util-linux provides util-linux-ng
    |--udev
    |--glib2
    |--libffi
    but there is nothing wrong with specifying it anyway.  Hence it is just a warning.

  • How to differentiate between Parent and Child in IBASE?

    Hi. I am working on enhancing a BAPI :BAPI_GOODSMVT_CREATE by calling the following function module IBPP_CREATE_IBASE at its exit.
    The BAPI is being called from an SAP ME system and will be passing MATNR and Serial Number of Parent and Child materials to create the IBASE in ECC system. I am confused as to how to differentiate between whether a object is Parent or a Child when the BAPI: BAPI_GOODSMVT_CREATE is called.

    if you have NULL valued fields. If
    you do a compare and one or both are NULL, then the result is always NULL,
    never true or false. Even comparing two fields which are both NULL will
    give NULL as result, not true! Or if you have something like "select
    sum(field) from ..." and one or more are NULL, then the result will be
    NULL. Use always "if field is NULL ..." for NULL checking and for safety
    maybe something like "select sum( IsNull(field,0) ) from ...". Check the
    function ISNULL() in the manual.

  • Differentiate between invoice and clearing document

    the table BSID and BSAD contains the details of both invoice and clearing documents.
    How to differentiate betwee invoice and clearing document.
    i thought that all debit documents are invoices and credits are clearing documents.
    But its not working because there are invoices which are credit and clearing documents which are debit.
    Please let me know if there is any indicator or field which

    Hi,
    No difference between invoice and billing document.
    But If we want to inform the payable to the customer we use the terminalogy invoice.
    Example Credit meomo, debit memo. etc ...
    As there is no difference , both have the same document types.
    thanks
    Kuntla

  • Differentiate between report and generated scheduled report - report list

    How do I differentiate between a (.rpt) report and a (scheduled generated report) from this report (.rpt with data) when I list all the reports on the server.
    I need this information because when I view the scheduled report, I do not need to set the parameters via the crystal viewer.
    Thanks in advance.
    JM

    Ted.
    I am not sure why the scheduled report is saying si_instance=false.
    So I scheduled the sample report - Drilldown and named the scheduled instance as "DrilldownInstance",
    it created two info objects. One has SI_INSTANCE = true and the other has SI_INSTANCE = false!!!!!
    select * from CI_INFOOBJECTS
    where
    SI_PROGID = 'CrystalEnterprise.Report'
    and SI_KIND = 'CrystalReport'
    and si_name LIKE '%DrilldownInstance%'
    I presume it should have only created one object, and set si_instance=true
    Thanks,
    JM
    P.S
    Sorry to be a bother! but this is driving me nuts!
    Edited by: jam mend on Jan 20, 2009 9:07 PM

  • Unable to differentiate between RFC and BAPI

    Hi guys,
        Nowadays I am studying the above concepts:BAPI and RFC.  But I am confused by the two.
    So far I learnt that the two are both techniques used to realize communication between SAP and external
    systems,and frequently via Remote-enabled Function.  
       My confusion is the distinctions between the two. Would you please do me a favor? Tks

    Hi   Alex,
    Just check it out these answers.
    Remote Function Call :
    RFC is an SAP interface protocol. Based on CPI-C, it considerably simplifies the programming of communication processes between systems.
    RFCs enable you to call and execute predefined functions in a remote system - or even in the same system.
    RFCs manage the communication process, parameter transfer and error handling.
    http://help.sap.com/saphelp_47x200/helpdata/en/22/042860488911d189490000e829fbbd/frameset.htm.
    BAPI
    BAPI stands for Business API(Application Program Interface).
    A BAPI is remotely enabled function module
    ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
    You can make your function module remotely enabled in attributes of Function module but
    A BAPI are standard SAP function modules provided by SAP for remote access.
    Also they are part of Businees Objest Repository(BOR).
    BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects.
    You create business objects and those are then registered in your BOR (Business Object Repository)
    which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA.
    In this case u only specify the business object and its method from external system
    in BAPI there is no direct system call. while RFC are direct system call.
    Some BAPIs provide basic functions and can be used for most SAP business object types.
    These BAPIs should be implemented the same for all business object types.
    Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs.
    Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
    another points,
    BAPI is object oriented. It is placed under Business objects as methods.
    RFC is just a Function module or a call.
    RFC: is just a FM that can be called from remote system too(destination defined in transaction SM59).
    BAPI: Business Application Programming Interface
    A BAPI is a method of a business object defined in the Business Object Repository (BOR). For example, in the BOR, you can find a business object called SalesOrder, which conceptually represents a sales order in the system. A business object typically has several methods that can be used to read, create, modify a particular instance of the business object, or list instances of the business object matching certain selection criteria. These methods are BAPIs.
    Technically, a BAPI is implemented using a RFM. But, unlike the non-BAPI RFMs, a BAPI is usually well documented, has nicer parameter names, and is supported by SAP for several SAP software releases. You can browse Business objects and BAPIs in the SAP system using transaction BAPI.
    Thanks
    Eshwar
    *Rewards if useful*

  • JSF tree view GUI component and tree node actions

    Hi,
    I am new in using JSF and have a problem with my simple test application.
    The application contains a tree view control with one static tree node and a separate text area. Clicking on the tree node shall fill the text area with the string 'hello'. Seems to be very simple, but it doesn't work.
    What did I do?
    First of all I use the Sun Java Studio Creator 2.
    By double clicking on the tree node in the design window of the IDE a method called treeNode1_action() was created. I also added the String text to the session bean. treeNode1_Action() does not more than setting text='hello' ( getSessionBean().setText('hello'); ).
    The jsp file contains the line
    <ui:textArea binding="#{Page1.textArea}" id="textArea" style="height: 192px; left: 360px; top: 48px; position: absolute; width: 456px" text="#{SessionBean1.text}"/>, so the text of the text area is bound to the session property 'text'.
    Running the application and clicking on the tree node does nothing except reloading the page (no 'hello' inside the text area).
    Using the debugger showed me that the bean property text is set correctly to 'hello', also after reloading the page.
    What did I do wrong?
    What do I have to do to display 'hello' in the text area?
    I would be glad for some good advice to solve my problem and looking forward for an answer.
    Regards from germany
    Matthias

    want to remove the green patch from the jsf tree componentas u said ,, it is COMPONENET so this is a pre-made creator component that u cant chnage its attributes ,,
    instead u can extract Theam.jar file and change the icons ,, u i didnt do it before ,, but u may be find what u want there,
    hope this will help
    good luck
    Mohammed

  • Communicating between forms and tree

    i had created a form in adf with the table fin_periods
    and i had created a table with the tables gl_jrnl_hd and gl_jrnl_ln
    if i change the attribute periods in the form
    the tree table should also be changed
    but my tree table remains static it doesnt change
    can u pls guide me

    Hi,
    not enough information about the implementation. Is there are master/detail relationship between the tables (VO) and how do you change the attribute periods ? Here's some help for what is the best approachasking questions on the forum
    https://forums.oracle.com/forums/ann.jspa?annID=56
    Frank

  • How can I differentiate between iPad and iPhone iMessages for the same contact?

    I have my sister in law's email and phone number all in the same contact. She iMessages me from both her iPad and her phone. They come up as two different iMessage conversations, but they both are under her name. When I go to text her I don't know if I'm sending it to her iPhone or iPad. Anyone know if there's anyway to differentiate? Sometimes looking at what was previously said in the conversation helps but I can't always remember (nor do I know which device he was messaging me from in the previous convo). Thanks all

    Try scrolling to the top of the conversation and tapping Contact.  You will then see the originating address highlighted in blue on the contact.  If the iPad and iPhone are creating two different conversations, chances are if the email address is highlighted it's coming from the iPad; if the phone number is highlighted it's coming from the iPhone (although not necessarily).  To know for sure you would have to ask her to check Settings>Messages>Send & Receive and tell you which is checked under "Start new conversations from" on both devices to know for sure.

  • Differentiate between DC and ADC

    Hi,
    How can I differentiate that which machine in my domain is DC and which one is ADC?
    Best Regards, Parveen Chauhan [email protected] Mobile: +91-9811629793

    In Active Directory, all DC can perform read and write operations – except RODCs in Windows 2008. In general, all DCs are same. 
    Some DCs will hold FMSO roles. 
    FSMO Role:
    http://support.microsoft.com/kb/197132/en-us
    RODC:
    http://technet.microsoft.com/en-us/library/cc732801(WS.10).aspx
    Santhosh Sivarajan | MCTS, MCSE (W2K3/W2K/NT4), MCSA (W2K3/W2K/MSG), CCNA, Network+ Houston, TX http://blogs.sivarajan.com/ http://publications.sivarajan.com/ This posting is provided "AS IS" with no warranties, and confers no rights.

  • Differentiate between DND and "Off Hook" status

    We have several directors and assistants on staff where it would be helpful to the assistant if their phone displayed and differentiated between off hook or dnd. Currently, both off hook status and dnd report the same indicator for the assistant.
    UC560 environment, ip phone 514G and 7965G
    Thanks for the help.
    Blessings,
    John J

    Hello John,
    You may try to use BLF.
    This is not supported with CCA.
    HTH,
    Alex
    *Please rate helpful posts

Maybe you are looking for

  • How do you create a Custom Component?

    I've made use of a few custom components available on the web (IE. a custom fire component from gskinner.com) which made me realize I haven't come across any way to make my own components. I don't have anything particular in mind at this time, but I

  • Changing Date Format in Dashboard prompt drop down list

    Hi friends, my dashboard shows a drop down list for dates , which are in format "7/1/2008 12:00:00 AM". This is defined datetime datatype in sql server. Is there any way to change the date format in dashboard prompt to just "7/1/2008" without doing i

  • Google chrome flash media server problems.

    google chrome constantly asks me to update the flash media yet on the adobe site it says that it already automatically updated. what do i need to do>?

  • My audio levels barely increase at all when adjusting in the timeline

    Hello.   I am new to Premiere Pro (from FCP).   When I attmept to increase the audio levels using the yellow handles which live on the actual audio track in the timeline, they only increase by a very small amount when dragging "up". If I drag down, I

  • Reset password process not working-how do I startup from disc

    My teenager has a Mac mini and I set up her computer with the original logon/password. She logged on/off for many months without problems & then went for a long period without shutting it down & when she finally did, the password I setup no longer wo