Scroller for Tree table

Hi all,
I want to put scroller for the Tree table . Here I put Tree table in the PGL(With Scroll property) . When I expand the node in the tree table ,scroller is nor appearing . Please give me the solution .
Thanks in Advance .

Hi,
You can set the layout of the PGL to scroll, and put it inside a panel Stretch layout.
Something like
  <af:panelStretchLayout id="psl1">
          <f:facet name="bottom"/>
          <f:facet name="center">
<af:panelGroupLayout id="pgl1" layout="scroll" >
          <af:treeTable ......
          </af:treeTable>
        </af:panelGroupLayout>
</f:facet>
          <f:facet name="start"/>
          <f:facet name="end"/>
          <f:facet name="top"/>
        </af:panelStretchLayout>-Arun

Similar Messages

  • How to define 'First Vsible row'  for Tree table in Web Dynpro

    Hi,
    I am using a table with a treebykeytablecolumn. The user can change the selected
    line from another view and then I change the selected line within the tree according to his choice. This works fine.
    Unfortunatelly, I did not succeed to change the displayed page in the tree, so the user has to scroll up or down to see the selected data, if it is not on the current page.
    I try to bind the 'FirstVisibleRow', using the index of the selected element, but this
    index does not fit. The page changes, but as the index is somehow 'wrong', it is not
    the expected page that is shown.
    Looping at the node, my selected element get index 30, but the selected line is the 8th one (regarding what is current ly open or not in the tree) and the 14th if we expand all nodes above.
    So, is there a way to specify which line to be the 1st visible one when there is a tree column?
    thanks a lot for your help.
    reagrds,
    barbara

    Follow these steps,
    1- Create an attribute with char1 in the view context e.g first_vis_row
    2- go to the table properties in view and bind the property first_visible_row to this attribute.
    3- NOw go to the wddoinit method of the view...
    4- read the internal table and find out the index of the row which you want to set as first row. As in ur case you want a specific date in first row. So read the internal table and findout the index.
    5- now write this code, say your attribute name is first row inside node flag1...(you can change it for yoru requirement)
    DATA lo_nd_flag1 TYPE REF TO if_wd_context_node.
      DATA lo_el_flag1 TYPE REF TO if_wd_context_element.
      DATA ls_flag1 TYPE wd_this->element_flag1.
      DATA lv_first_row LIKE ls_flag1-first_row.
    * navigate from <CONTEXT> to <FLAG1> via lead selection
      lo_nd_flag1 = wd_context->get_child_node( name = wd_this->wdctx_flag1 ).
    * get element via lead selection
      lo_el_flag1 = lo_nd_flag1->get_element(  ).
    * get single attribute
      lo_el_flag1->get_attribute(
        EXPORTING
          name =  `FIRST_ROW`
        IMPORTING
          value = lv_first_row ).
    here change the lv_first_row to the index which you got after raeading the internal table.
    suppose it's
    lv_first_row = 4.
      lo_el_flag1->set_attribute(
        EXPORTING
          name =  `FIRST_ROW`
          value = lv_first_row ).
    Hope it works.

  • Horizontal scroll for Tree component scrolls too far right

    I've enabled the horizontal scroll bar for the Tree component.
    But the scroll bar allows the user to scroll very far to the right into blank space.
    The maximum width of my components measures 124px, as calculated by measureWidthOfItems(0,0), and I've verified this by measuring pixels of a screen shot.
    I have tried adding an event to set the Tree.maxHorizontalScrollPosition, and I traced the value that I'm setting it to, and I also traced the value that it actually assumed after I set it. Both are 124px.
    So I can't understand the behavior. I can scroll something more like ~400px to the right with lots of blank space.
    Any ideas why?
    Thanks,
    David

    Hmm, I'm not sure why this works, but it works, so for completeness here's what I did (in case anyone else runs across this same thread):
    var measWidth:Number = myTree.measureWidthOfItems(0,0);
    filesTree.maxHorizontalScrollPosition = measWidth - myTree.width;
    I call the above code whenever the window is resized (in my app there are 2 places that can cause a resize of the window, I manually added calls to a function with the above code). There is also an example out there that resizes any time the window is resized, but if you do this then you really can't have liveDragging=true in a DividedBox (which I have) because the cost of resizing is very high and overtaxes the cpu when called many times consecutively. I just call it when the dragging is finished (that way I have live dragging enabled, but it only updates the scroll bars when the user stops dragging, which is visually acceptable).

  • Button parameter mapping for tree tables (nw04)

    I've successfully implemented a table including a master column, which is bound to a context tree node. The table has property selectionMode: none
    Next to the master column I have a couple of columns, one containing a button. This button has property onAction: ShowInfo.
    In the corresponding method 'onActionShowInfo' I want to show a dialog containing information belong to the row of the pressed button. How can I obtain some kind of reference to the corresponding row of the clicked button?
    Grtz,
    Chris

    Hi,
    Do the source mapping in wdDoModifyView as below to the button UI element you created in second column.
    IWDButton button = (IWDButton) view.getElement("Button");
    button.mappingOfOnAction().addSourceMapping("nodeElement", "element");
    Note: Here "Button" is the Id of the Button UI element.
    After this for example you binded "TestValuesNode" to the table (which is having master column) then for 'onActionShowInfo' action add that node element as arguement with arguement name as "element" (this is must - bcause we did the source mapping with the name "element" ) as below.
    public void onActionShowInfo (com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, IPrivateTestView.ITestValuesNodeElement element )
        //@@begin onActionViewProposalDetails(ServerEvent)
          wdComponentAPI.getMessageManager().reportSuccess(element.getValue());
        //@@end
    Regards,
    Charan

  • How to handle pagenation for tree table

    Hi,
    I implemented af:treeTable but, that table is displaying 20K rows(childerns). When i ckick on the views->Expand All, taking 30min to load the treeTable.
    Is there any wan to handle this problem or is there any way to pagenate the treeTable?
    Regards,
    Raghu.

    Hi,
    I have used the following KMs in my transformation with the following options:
    IKM SQL Incremental Update
    INSERT    <Default>:true
    UPDATE    <Default>:true
    COMMIT    <Default>:true
    SYNC_JRN_DELETE    <Default>:true
    FLOW_CONTROL    <Default>:true
    RECYCLE_ERRORS    <Default>:false
    STATIC_CONTROL    <Default>:false
    TRUNCATE    <Default>:false
    DELETE_ALL    <Default>:false
    CREATE_TARG_TABLE    <Default>:false
    DELETE_TEMPORARY_OBJECTS     <Default>:true
    LKM SQL to SQL
    DELETE_TEMPORARY_OBJECTS    <Default>:true
    CKM Oracle
    DROP_ERROR_TABLE    <Default>:false
    DROP_CHECK_TABLE    <Default>:false
    CREATE_ERROR_INDEX    <Default>:true
    COMPATIBLE    <Default>:9
    VALIDATE    <Default>:false
    ENABLE_EDITION_SUPPORT    <Default>:false
    UPGRADE_ERROR_TABLE    true

  • How to use tree tables with CRUD operation for begineers ADF 11g

    This is Friday night call for help.
    This is only few sample ressources on the web for tree table and only one with CRUD operation.
    I used this one http://jobinesh.blogspot.com/2010/05/crud-operations-on-tree-table.html because this is the only one that address CRUD.
    And it is shaky. Deletion works fine but insertion not very well. This is working using custom code provided below.
    Depending if the user selection in the tree, the code insert from the master node to the children node.
    Any other options because it is not working well.
    Also where Oracle describes how to use the row, rowset, itorator API? This is really hard to understand like almost if we should not use it.
    then if not how can I insert in tree with two nodes and insert in the parent or children depending the users selection.
    Lately I 'been posting questions on this forum with no response. This hurts. I understand developers cannot spend their time on this but People from Oracle, please help. We pay licenses...
    public void createChildren(RowIterator ri, Key selectedNodeKey) {
    final String deptViewDefName = "model.DepartmentsView";
    final String empViewDefName = "model.EmployeesView";
    if (ri != null && selectedNodeKey != null) {
    Row last = ri.last();
    Key lastRowKey = last.getKey();
    // if the select row is not the last row in the row iterator...
    Row[] found = ri.findByKey(selectedNodeKey, 1);
    if (found != null && found.length == 1) {
    Row foundRow = found[0];
    String nodeDefname =
    foundRow.getStructureDef().getDefFullName();
    if (nodeDefname.equals(deptViewDefName)) {
    RowSet parents =
    (RowSet)foundRow.getAttribute("EmployeesView");
    Row childrow = parents.createRow();
    parents.insertRow(childrow);
    } else {
    RowSet parents =
    (RowSet)foundRow.getAttribute("EmployeesView");
    Row childrow = parents.createRow();
    childrow.setAttribute("DepartmentId",
    foundRow.getAttribute("DepartmentId"));
    parents.insertRow(childrow);
    } else {
    System.out.println("Node not Found for " + selectedNodeKey);
    }

    I am looking for a sample that describe how to design a jsf page with a tree table.
    So you have Department and employees. In the tree first comes Department and if you click the node you see the employees assigned to this department.
    I need to be able to insert a new department or a new employee from the tree table by clicking on a insert button in the panel collection toolbar depending on user selection in the tree.
    I got part of it working but not good enough.
    By problem is the get insertion working
    I have a createChildren method in my AM implementation that get in input a RowIterator and selected node key.
    To goal is to create new records depending of the user selection and the input parameters get populated by the binding like this:
    #{backing_treeSampleBean.selectedNodeRowIterator} #{backing_TreeSampleBean.selectedNodeRowkey} via method binding with parameters.
    Is it the right approach?
    First to be able to insert a parent record, I select nothing in the tree and ri and selectedNodeKey comes to null
    we run this code
    ViewObjectImpl vo = getSchHolidaySchedExceptionsView1();
    //ViewObjectImpl vo = getDepartmentsView1();
    Row foundRow = vo.first();
    Row childrow = vo.createRow();
    vo.insertRow(childrow);
    A new blank entry appears in the parent node and we enter a value.
    The the problem starts when we want to add a child to this parent.
    We select the created parent and press the insert button, this code get executed
    if (nodeDefname.equals(deptViewDefName))
    //list of the children of the parent and create an new row
    RowSet childRows = (RowSet)foundRow.getAttribute("SchHolidayExceptionDatesView");
    Row childrow = childRows.createRow();
    childRows.insertRow(childrow);
    But the new entry does not appear, it is almost like it would be created for a different parent because this is a mandatory field that is not feel in yet and the interface complaints of a missing value. It is created somewhere just not a the right place... This is my guess.
    Do you see something wrong with the code?
    The full code og my create children method is there below
    I am using jdeveloper 11.1.1.3.0 any issues with tree table to know about with this version?
    Thanks for your help
    public void createChildren(RowIterator ri, Key selectedNodeKey) {
    final String deptViewDefName = "com.bcferries.app.pdfroutesched.model.SchHolidaySchedExceptionsView";
    final String empViewDefName = "com.bcferries.app.pdfroutesched.model.SchHolidayExceptionDatesView";
    if (ri != null && selectedNodeKey != null) {
    // last row
    Row last = ri.last();
    Key lastRowKey = last.getKey();
    // if the select row is not the last row in the row iterator...
    Row[] found = ri.findByKey(selectedNodeKey, 1);
    if (found != null && found.length == 1) {
    // foundRow is the row selected
    Row foundRow = found[0];
    // The row selected can be the parent node or the child node
    String nodeDefname = foundRow.getStructureDef().getDefFullName();
    // if parent row
    if (nodeDefname.equals(deptViewDefName))
    //list of the children of the parent and create an new row
    //works but we try to resolve the creation of a parent
    RowSet childRows = (RowSet)foundRow.getAttribute("SchHolidayExceptionDatesView");
    Row childrow = childRows.createRow();
    //childrow.setAttribute("HolidayDate", new java.util.Date().getDate());
    System.out.println("insert child row from master");
    childRows.insertRow(childrow);
    } else
    //RowSet ParentRow = (RowSet)foundRow.getAttribute("SchHolidaySchedExceptionsView");
    //RowSet childRows = (RowSet)ParentRow.first().getAttribute("SchHolidayExceptionDatesView");
    Row childrow = ri.createRow();
    System.out.println("insert child row from child ");
    } else {
    System.out.println("Node not Found for " + selectedNodeKey);
    } else {
    System.out.println(" param null try creating for first row : " +
    ri + " * " + selectedNodeKey);
    ViewObjectImpl vo = getSchHolidaySchedExceptionsView1();
    Row foundRow = vo.first();
    Row childrow = vo.createRow();
    vo.insertRow(childrow);
    }

  • Applying table scroll bar for only table rows with table columns fixed.

    hi oa gurus,
    i had implemented table scroll bars using oarawtextbean , there is no problem in vertical and horizontal scroll bar working its working fine. but the requirement is i need to scroll only the table rows with table columns fixed. so , how to achieve the table scroll for only table datas neglecting table headers.
    the code for vertical and horizontal bars scroll is like this,
    OARawTextBean ors = (OARawTextBean)webBean.findChildRecursive("raw1");
    ors.setText(div id=tabledivid style=height:500px;width:100%; overflow:auto>);
    OARawTextBean ore = (OARawTextBean)webBean.findChildRecursive("raw2");
    ore.setText("</div>");
    where raw1 and raw2 are rawtextbean created above and below of the table . but i dont know hoow to apply this only for table rows neglecting table columns , can anybody give any ideas.
    pelase this is very urgent , can u help me in this regards
    thanks
    Edited by: user630121 on Sep 29, 2008 5:17 AM
    Edited by: user630121 on Sep 29, 2008 5:18 AM

    hi,
    I have a similar task to do... Only to apply scrollbar at the table level.
    I tried using the above mentioned but I am facing Null Pointer Exception..
    Please explain about raw1 and raw2
    Rahul

  • Lockin headers in case of a scroll in a table

    Hi
    I am using a scroll container to show a scroll for the table
    but when i scroll the entire table scrolls along wid the scrolling bar. I want to lock the headers. can any one of u suggest me the method of doing it.
    I am workin on NWDS 7.0.13
    pls suggest me the methods for the same

    hi,
    you have to set the size of table dynamically.
    I mean the size of table should be same as number of records to be displayed.
    -Ashutosh

  • Sorting columns of Tree table structure

    Hi ,
    We have developed Tree Table structure based on the tutorial, but the data in the columns are not in the right order. Can anyone tell me how to do column sorting for Tree table structure, I know how to do column sorting on normal table structure but that logic does not work for Tree table structures
    Appreciate your help
    Som

    Hi Som,
    If you are using TutWD_TreeByNestingTableColumn project as example, this code can help you:
      //@@begin javadoc:onActionSortTree(ServerEvent)
      /** Declared validating event handler. */
      //@@end
      public void onActionSortTree(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSortTree(ServerEvent)
         sort(wdContext.nodeCatalogEntries());
        //@@end
      private void sort(IPrivateTreeTableView.ICatalogEntriesNode catalogEntriesNode) {
           if(null==catalogEntriesNode) return;
         catalogEntriesNode.sortElements(COMPORATOR);
         int size = catalogEntriesNode.size();
         for(int i=0;i<size;i++) {
              sort( catalogEntriesNode.nodeChildCatalogEntries(i) );
      private static final Comparator COMPORATOR = new CatalogEntriesComparator();
      private static class CatalogEntriesComparator implements Comparator {
         public int compare(Object o1, Object o2) {
              IPrivateTreeTableView.ICatalogEntriesElement ot1 = (IPrivateTreeTableView.ICatalogEntriesElement)o1;
              IPrivateTreeTableView.ICatalogEntriesElement ot2 = (IPrivateTreeTableView.ICatalogEntriesElement)o2;
              return Collator.getInstance().compare(     ot1!=null ? ot1.getTITLE() : "",
                                                      ot2!=null ? ot2.getTITLE() : "");
         public boolean equals(Object obj) {
              return false;
    Best regards, Maksim Rashchynski.

  • Tree table scrolling problem

    Hi,
    I have a treetable in panelGroupLayout with scroll layout.When scrolling down to the end,some treetable row doesn't appear...That is,panelGroupLayout scrollbar is not synchronized with treetable.But with mouse wheel,i can scroll down to the end of treetable rows.Why?Thanks in advance...

    Timo:
    I have some related observations.
    I am using jDeveloper 12c and JSE-JDK 7 Update45
    ( and Windows 8.1 Professional, includng latest updates and
      a standard logitech wired mouse, model M110 ).
    I have a database and application module.
    The next step is Creating A Databound Web User Interface.
    And, I have created TWO of them as follows...
    1) Chapter 31.3.1 How to Display Master-Detail Objects in Tables and Forms Using Master-Detail Widgets
    http://docs.oracle.com/middleware/1212/adf/ADFFD/web_masterdetail.htm#ADFFD761
    Here, I am choosing "ADF Master Form, Detail Table “.
    TESTING SUCCEEDED.
    The detail tables scroll successfully using the mouse (or scroll bar).
    2) Chapter 31.5.1 How to Display Master-Detail Objects in Tree Tables
    http://docs.oracle.com/middleware/1212/adf/ADFFD/web_masterdetail.htm#ADFFD775
    " The steps for creating an ADF Faces databound tree table are
    exactly the same as those for creating an ADF Faces databound tree, except that
    you drop the data collection as an ADF Tree Table instead of an ADF Tree.
    For more information, see Section 31.4.1, "How to Display Master-Detail Objects in Trees."
    http://docs.oracle.com/middleware/1212/adf/ADFFD/web_masterdetail.htm#BJEJBGCI
    TESTING FAILED:
    The detail tables fail to scroll using the mouse (or scroll bar).
    I've been looking at this problem for a day or two (or three) and
    I just don't have any warm fuzzy feelings on how to resolve this.
    While I am delighted that the Form-Table interface works well,
    I really really like the Tree-Table interface, a lot !
    If others could share their Tree-Table observations, that would be wonderful.

  • How to get the Horizontal Scroll Bar for a Table?

    Hi All,
    As per my requirement, I am displaying several records in a Screen in a Tabular Format. But here I have to show 21 Columns in that table which is too high. I am able to display it but due to it I am getting a Horizontal scroll bar for the whole screen since all the columns are not getting displayed in the normal window screen space. But its looking too odd since once I am scrolling it to right the columns are getting displayed but the above Header Bar and Global buttons are not displaying, they are bound to the normal screen space.
    Is there a way to have a Horizontal scroll bar only for that table instead of the entire screen so that on scrolling that bar only the table rows will beshifted ant got displayed?
    With Thanks
    Kumar Gautam

    try this approach.
    include a raw text item before and table item.
    include the appropriate HTML tags in raw text item to enable horizontal scroll
    --Prasanna                                                                                                                                                                                                                                                                                                                                   

  • BDC_OK code for scrolling in custon table control

    Hi All,
    I have a requirement to create a BDC program for transaction ME31K, but the problem is this ME31K transaction is enhanced adding a custom screen which has three custom table controls. Now this screen is also included in the BDC program.
    I am facing problem in tracking the BDC_OKcode for scrolling for these custom table controls. Tried with '=P+' but not working.
    While recording it is capturing '/00' for scrolling but while executing through program it is not working.
    If anybody has faced this situation before please suggest how to go about it.
    Please note '=NP'  is not avaiable as it is a custom screen.
    Thanks in advance.

    go on the screen where you have table control, put /h in command field.
    now scroll in table control, this will go in debugger and now check sy-ucomm.
    hope you get it.

  • Row Selection for second and subsequent level nodes in tree table

    Hi All,
    We have a .jsff page with tree bindings to display a three-level hierarchy tree table.Suppose the hierarchy is
    -> Department
    ->-> Employees
    ->->-> Employee details.
    I have a use case where-in when we add the employee node within a department,the department node must expand and the newly added employee node must be selected.
    In both the cases(for new department or employee), we are following the approach mentioned below:
    1. Get the treeTable Iterator.
    2.Adding the new object to the java ArrayList which is bound to the corresponding level in the tree.
    3.Refreshing the treeTable iterator.
    4.Execute treeTable.setSelectedRowKeys()
    5.Add a partial target to the treetable.
    The issue is that the new employee gets added but the upper-level department node collapses and no selection is performed on the new employee node.
    But when we add a new department node, it gets selected on creation.
    Is there any additional steps to be performed for second-level row selection?

    Hi,
    Thanks for the reply.
    I looked at the code given in sample 61.
    In the sample, a new node is not added dynamically (for ex.either new location or its child nodes.)
    As mentioned in the above post, after adding a new node at a level in our use case, when we perform the refresh of the tree-table's iterator,the selection state of the rows is not shown on the table.
    If the tree-table's iterator is not refreshed and the treeTable.setSelectedRowKeys() is executed, the rows get selected but the subsequent node additions do not show up in the table as the table's iterator is not refreshed.
    Any sample code is available where in both the addition of new node and its selection is performed at the same time?
    Thanks.

  • Want a scroll bar for a table view

    Hi Experts,
    I am developing in NWDS 2004S.
    I have 2 groups in RootUIElement,
    in one group i have few labels & input box with a button,
    in other group I have a table.
    On click of button according to values in inputbox an RFC is called & Table is populated.
    Now my requirement is like, my table has around 33 columns
    But i don't want the scroll buttons in footer of table view
    I want normal scroll bar for that table.
    Kindly help me.
    Will award points !!!
    Thanks

    hi
              thanks for the reply  ,
            using scroll container is working fine  ,
               but  this functionality should be achieved for the
               table  ,  not  table to be put int he scroll container
               as the problem is  , i have  2000 entries in the
                 table  and for this again i need to drill down using
                     arrow  or drill for certain entries  using arrows
                instead need  scroll bar for the table
                     if this can achieved  it would be helpful ?

  • Vertical scroll bar for the table

    Hi,
    I have a table which will contain more than 100 rows. First Visible rows will be 10.
    i want a vertical scroll bar for the table, so that i can see all the rows using vertical scroll bar. While scrolling down, the header row, which contain names of the column should be static (ie visible even scroll down) and the footer of the table should be visible even goes up.
    If I use Scroll container, it will take whole table and the header row, row with name of column will move up invisible when i scroll down. So it is not useful if i use scroll contatiner.
    I need a fnctionality were table has a vertical scroll bar to it.
    Thanks
    Maha

    Hi,
    Your requirement is one of the default properties of the Table UI element in NWDS CE version.
    Regards,
    Alka.

Maybe you are looking for

  • How to configurate system for two database under one server

    Hi Friends, I installed abd created A database by oracle 10GR4 in window 32 bit 2003. it works. Then i created other B database by DBCA under this server. When I shutdown immediate database. it works well. But I can not startup mount ot startup A dat

  • Creating a year planner issue

    Hey I'm trying to set up a year planner to keep track of lessons ill be teaching. I used the 'Fill Down' fucntion to write all the days in a column going down, but when it comes to doing the same with the date, for some reason now all it does is repe

  • Remove sound in FLVplayback component?

    How do you remove the sound from "specifically" from FLVplayback component? Since the sound wont stop playing when I'm on different page(assume that if the person didnt click the pause button and navigate to other pages)....Normally I would add Sound

  • Multi-thread server with UD32

    Hi I have build server with -t for muli-thrread option, it boots fine too. When I use UD32 < file. ud it does not work. I get following error in ULOG. 103708.gdev!ProxSvr.26508.4.1: LIBTUX_CAT:6126: INFO: New server dispatched thread starting 103708.

  • Product cost collector report

    hi, how can i see the production cost report in sap our prduction is repetative manufacturing which have no production orders and planned orders so please give the t code for our help Jinto joy