JTree expand programatically is not working

jTree1.fireTreeExpanded(curTreePath);
expandAll(jTree1, curTreePath, true);
jTree1.expandPath(curTreePath);
jTree1.scrollPathToVisible(curTreePath);
jTree1.updateUI();
jTree1.setExpandsSelectedPaths(true);
jTree1.expandPath(curTreePath);
expandAll(jTree1, curTreePath, true);
for (int i = 0; i < jTree1.getRowCount(); i++)
jTree1.expandRow(i);
jTree1.validate();
jTree1.repaint();
Any help ?

package so;
ToDo list
* Log timestamp and line number of at every exception.
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.sql.*;
import java.io.*;
import java.net.*;
import java.util.Enumeration;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
import javax.swing.tree.*;
public class SCM extends javax.swing.JFrame implements javax.swing.event.TreeExpansionListener, javax.swing.event.TreeModelListener, javax.swing.event.TreeWillExpandListener
    Connection con = null;
    java.sql.Statement stmt = null;
    ResultSet rs = null;
    PrintStream log = null;// File creation at local system, to record events, actions, errors and traces
    javax.swing.tree.TreePath curTreePath = null;
    /** Creates new form SCM */
    public SCM()
        //---------------------- Native LookandFeel Windows is expected.-------------------//
        try
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        catch (Exception e)
            System.out.println("Error setting native LAF: " + e);
        //******************** Native LookandFeel Windows is expected.*******************//
        // initialising GUI containers and controls
        initComponents();
        TableCellRenderer defaultRenderer;
        defaultRenderer = jTable1.getDefaultRenderer(JLabel.class);
        jTable1.setDefaultRenderer(JLabel.class, new Label_cell(defaultRenderer));
        setState(javax.swing.JFrame.HIDE_ON_CLOSE);
        jfc.setEnabled(false);
        this.setSize(1024, 740);
        jTree1.setSize(400, this.getWidth() / 4);
        jTree1.setRootVisible(false);
        jTree1.addTreeWillExpandListener(this); // Registering jTree1 to Expand listener.
        jTree1.setCellRenderer(new TreeIconRenderer());
        try
            //-------Preparing Logger----------------//
            FileOutputStream fos = new FileOutputStream(new File(System.getProperties().getProperty("user.home") + System.getProperties().getProperty("file.separator") + "SCM-Log_" + System.currentTimeMillis()));
            log = new PrintStream(fos);
            log.println("Started Time\t\t:" + new java.util.Date().getTime());
            //*******Preparing Logger****************//
            // Initialising jTree1 with the userid and preparing the xml and loading jTree1 with xml content,
            // and expected to repeat the same while refreshing.
            //----- Rendering images for the folders and files i.e. nodes and leaves of this tree
            jTree1 = new XMLTree("215");
            //******** Rendering images for the folders and files i.e. nodes and leaves of this tree
            //Selection can only contain one path at a time, i.e. user is confined to reffere to only one node
            //or leaf at a time
            //jTree1.getSelectionModel().setSelectionMode(javax.swing.tree.TreeSelectionModel.SINGLE_TREE_SELECTION);
            this.setTitle("ZIIC-ITG SCM");// Title can be changed at any time.
        catch (IOException ioe)
            ioe.printStackTrace(log);   //logging Exception.
            //This is first level action and to be decided to go further or not by exit(0);.
    public boolean prepareCon() throws ClassNotFoundException
        try
            if (con != null && !con.isClosed())
                return true;
            else
                Class.forName("oracle.jdbc.driver.OracleDriver");
                java.sql.DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                con = java.sql.DriverManager.getConnection("jdbc:oracle:thin:@172.16.1.31:1521:soadb", "dms", "dms");
                if (con != null && !con.isClosed())
                    return true;
        catch (java.lang.ClassNotFoundException cnfe)
            cnfe.printStackTrace(log);
        catch (SQLException se)
            se.printStackTrace(log);
        if (con != null)
            return true;
        else
            return true;
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc="Generated Code">                         
    private void initComponents()
        jPopupMenu1 = new javax.swing.JPopupMenu();
        jSplitPane1 = new javax.swing.JSplitPane();
        jScrollPane1 = new javax.swing.JScrollPane();
        try
            jTree1 = new XMLTree("215");
            jScrollPane2 = new javax.swing.JScrollPane();
            jTable1 = new javax.swing.JTable();
            menuBar = new javax.swing.JMenuBar();
            fileMenu = new javax.swing.JMenu();
            openMenuItem = new javax.swing.JMenuItem();
            saveMenuItem = new javax.swing.JMenuItem();
            saveAsMenuItem = new javax.swing.JMenuItem();
            exitMenuItem = new javax.swing.JMenuItem();
            editMenu = new javax.swing.JMenu();
            cutMenuItem = new javax.swing.JMenuItem();
            copyMenuItem = new javax.swing.JMenuItem();
            pasteMenuItem = new javax.swing.JMenuItem();
            deleteMenuItem = new javax.swing.JMenuItem();
            helpMenu = new javax.swing.JMenu();
            contentsMenuItem = new javax.swing.JMenuItem();
            aboutMenuItem = new javax.swing.JMenuItem();
            //setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        }catch(Exception e){}
        jTree1.setDoubleBuffered(true);
        jTree1.setDragEnabled(true);
        jTree1.setEditable(true);
        jTree1.setFocusTraversalPolicyProvider(true);
        jTree1.setInheritsPopupMenu(true);
        jTree1.setInvokesStopCellEditing(true);
        jTree1.setLargeModel(true);
        jTree1.setMaximumSize(new java.awt.Dimension(250, 64));
        jTree1.setPreferredSize(new java.awt.Dimension(200, 64));
        jTree1.setVerifyInputWhenFocusTarget(false);
        jTree1.addMouseListener(new java.awt.event.MouseAdapter()
            public void mouseClicked(java.awt.event.MouseEvent evt)
                jTree1MouseClicked(evt);
        jTree1.addTreeExpansionListener(new javax.swing.event.TreeExpansionListener()
            public void treeCollapsed(javax.swing.event.TreeExpansionEvent evt)
                jTree1TreeCollapsed(evt);
            public void treeExpanded(javax.swing.event.TreeExpansionEvent evt)
                jTree1TreeExpanded(evt);
        jTree1.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener()
            public void valueChanged(javax.swing.event.TreeSelectionEvent evt)
                jTree1ValueChanged(evt);
        jScrollPane1.setViewportView(jTree1);
        jSplitPane1.setLeftComponent(jScrollPane1);
        jScrollPane2.setAutoscrolls(true);
        jScrollPane2.setDoubleBuffered(true);
        jScrollPane2.setFocusCycleRoot(true);
        jScrollPane2.setFocusTraversalPolicyProvider(true);
        jScrollPane2.setInheritsPopupMenu(true);
        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][]
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            new String []
                "Title 1", "Title 2", "Title 3", "Title 4"
        jTable1.addMouseListener(new java.awt.event.MouseAdapter()
            public void mouseClicked(java.awt.event.MouseEvent evt)
                jTable1MouseClicked(evt);
        jScrollPane2.setViewportView(jTable1);
        jSplitPane1.setRightComponent(jScrollPane2);
        fileMenu.setText("File");
        openMenuItem.setText("Open");
        fileMenu.add(openMenuItem);
        saveMenuItem.setText("Save");
        fileMenu.add(saveMenuItem);
        saveAsMenuItem.setText("Save As ...");
        fileMenu.add(saveAsMenuItem);
        exitMenuItem.setText("Exit");
        exitMenuItem.addActionListener(new java.awt.event.ActionListener()
            public void actionPerformed(java.awt.event.ActionEvent evt)
                exitMenuItemActionPerformed(evt);
        fileMenu.add(exitMenuItem);
        menuBar.add(fileMenu);
        editMenu.setText("Edit");
        cutMenuItem.setText("Cut");
        editMenu.add(cutMenuItem);
        copyMenuItem.setText("Copy");
        editMenu.add(copyMenuItem);
        pasteMenuItem.setText("Paste");
        editMenu.add(pasteMenuItem);
        deleteMenuItem.setText("Delete");
        editMenu.add(deleteMenuItem);
        menuBar.add(editMenu);
        helpMenu.setText("Help");
        contentsMenuItem.setText("Contents");
        helpMenu.add(contentsMenuItem);
        aboutMenuItem.setText("About");
        helpMenu.add(aboutMenuItem);
        menuBar.add(helpMenu);
        setJMenuBar(menuBar);
        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(jSplitPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 390, Short.MAX_VALUE)
                .addContainerGap())
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(jSplitPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 268, Short.MAX_VALUE)
                .addContainerGap())
        pack();
    }// </editor-fold>                       
    private void jTree1ValueChanged(javax.swing.event.TreeSelectionEvent evt)
    try
        curTreePath = evt.getPath();
        //curTreePath.getPathCount();
        //selectedNode = stPath.getPathComponent(stCount - 1);
        //TODO add your handling code here:
        if (prepareCon())
            javax.swing.tree.TreePath path = evt.getPath();
            DMETreeNode node = (DMETreeNode) path.getLastPathComponent();
            try
                if (node != null && (node.getSerial() + "").length() > 0)
                    //stmt = con.createStatement();
                    stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
                    rs = stmt.executeQuery("select serial, description, file_location, status, sheet,  part, approvedby, locked, location, created_by from dms_files where owner=" + node.getSerial());
                    SCM_Tbl_model model = new SCM_Tbl_model();
                    model.setRs(rs);
                    //jTable1.setColumnModel(columnModel);
                    jTable1.setModel(model);
                    TableRowSorter<TableModel> sorter = new TableRowSorter<TableModel>(model);
                    jTable1.setRowSorter(sorter);
            catch (Exception e)
                e.printStackTrace();
        catch (ClassNotFoundException ex)
            ex.printStackTrace(log);
            Logger.getLogger(SCM.class.getName()).log(Level.SEVERE, null, ex);
    private void jTree1MouseClicked(java.awt.event.MouseEvent evt)
    // TODO add your handling code here:   
    if (evt.getButton() == evt.BUTTON3)
        jPopupMenu1.removeAll();
        javax.swing.JMenuItem expandMI = new javax.swing.JMenuItem("Expand");
        javax.swing.JMenuItem expandAllMI = new javax.swing.JMenuItem("Expand All");
        javax.swing.JMenuItem find_folderMI = new javax.swing.JMenuItem("Find Folder");
        final javax.swing.JMenuItem new_folderMI = new javax.swing.JMenuItem("New Folder");
        javax.swing.JSeparator separator1 = new javax.swing.JSeparator();
        jPopupMenu1.setSize(100, 200);
        jPopupMenu1.add(expandMI);
        jPopupMenu1.add(expandAllMI);
        jPopupMenu1.add(separator1);
        jPopupMenu1.add(find_folderMI);
        jPopupMenu1.add(new_folderMI);
        jPopupMenu1.setVisible(true);
        jPopupMenu1.show(evt.getComponent(), evt.getX(), evt.getY());
        //expandToLast(jTree1);
        //jTree1.scrollPathToVisible(curTreePath);
        //jTree1.fireTreeExpanded(curTreePath);       
        ActionListener menuOnTree = new ActionListener()
                    public void actionPerformed(ActionEvent e)
                        if (e.getSource().equals(new_folderMI))
                                DMETreeNode ch=new DMETreeNode("Child of "+((DMETreeNode)curTreePath.getLastPathComponent()).toString());   
                                ((DMETreeNode) curTreePath.getLastPathComponent()).add(ch);
                                jTree1.fireTreeExpanded(curTreePath);
                                expandAll(jTree1, curTreePath, true);
                                jTree1.expandPath(curTreePath);
                                jTree1.scrollPathToVisible(curTreePath);
                                jTree1.updateUI();
                        if (e.getActionCommand().trim().equalsIgnoreCase("Expand"))
                            jTree1.setExpandsSelectedPaths(true);
                            jTree1.expandPath(curTreePath);
                            expandAll(jTree1, curTreePath, true);
                            for (int i = 0; i < jTree1.getRowCount(); i++)
                                jTree1.expandRow(i);
                            jTree1.validate();
                            jTree1.repaint();
                            System.out.println(((DMETreeNode) curTreePath.getLastPathComponent()).getSerial());
                            expandToLast(jTree1);
                            System.out.println(jTree1.getModel().getRoot().toString());
                            ((XMLTree)jTree1).expandAll(true);
                            expandToLast(jTree1);
        expandMI.addActionListener(menuOnTree);
        expandAllMI.addActionListener(menuOnTree);
        find_folderMI.addActionListener(menuOnTree);
        new_folderMI.addActionListener(menuOnTree);
public void expandAll(JTree tree, boolean expand)
        TreeNode root = (TreeNode) tree.getModel().getRoot();
        // Traverse tree from root
        expandAll(tree, new TreePath(root), expand);
    private void expandAll(JTree tree, TreePath parent, boolean expand)
        // Traverse children
        TreeNode node = (TreeNode) parent.getLastPathComponent();
        if (node.getChildCount() >= 0)
            for (Enumeration e = node.children(); e.hasMoreElements();)
                TreeNode n = (TreeNode) e.nextElement();
                TreePath path = parent.pathByAddingChild(n);
                //System.out.println(path.toString());
                expandAll(tree, path, expand);
        // Expansion or collapse must be done bottom-up
        if (expand)
            tree.expandPath(parent);
        else
            tree.collapsePath(parent);
public void expandToLast(JTree tree)
        // expand to the last leaf from the root
        DefaultMutableTreeNode root;
        root = (DefaultMutableTreeNode) tree.getModel().getRoot();
        tree.scrollPathToVisible(new TreePath(root.getLastLeaf().getPath()));
        //System.out.println(""+root.getLastLeaf().getPath().toString());
    public void expandToLast(JTree tree)
        TreeModel data = tree.getModel();
        Object node = data.getRoot();
        if (node == null)
            return;
        TreePath p = new TreePath(node);
        while (true)
            int count = data.getChildCount(node);
            if (count == 0)
                break;
            node = data.getChild(node, count - 1);
            p = p.pathByAddingChild(node);
        tree.scrollPathToVisible(p);
    private void jTree1TreeExpanded(javax.swing.event.TreeExpansionEvent evt)
    // TODO add your handling code here:
        System.out.println("@447");
    private void jTree1TreeCollapsed(javax.swing.event.TreeExpansionEvent evt) {                                    
    // TODO add your handling code here:
    private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) {                                            
        System.exit(0);
    @SuppressWarnings("static-access")
    private void jTable1MouseClicked(java.awt.event.MouseEvent evt)                                    
        // TODO add your handling code here:
        jPopupMenu1.removeAll();
        jPopupMenu1.setVisible(true);
        //Prepare Menu items based the event and the user, and the item clicked on i.e.
        javax.swing.JMenuItem menuItem = new javax.swing.JMenuItem("Add A doc", KeyEvent.VK_T);
        jPopupMenu1.add(menuItem);
        ActionListener al = new ActionListener()
                    public void actionPerformed(ActionEvent e)
                        jfc.updateUI();
                        jfc.showOpenDialog(jTable1);
                        jTable1.setValueAt(jfc.getSelectedFile().getAbsolutePath(), jTable1.getSelectedRow(), jTable1.getSelectedColumn());
                        jfc.setDialogTitle("Choose only fmx files");
                        try
                            if (jfc.getSelectedFile().getAbsolutePath() != null)
                                java.io.File f = new java.io.File(jfc.getSelectedFile().getAbsolutePath());
                                if (f.exists())
                                    // Start FTP process.
                                    SCM_FTP ftp = new SCM_FTP();
                                    ftp.connect("ziicsrv11", 21, "z11902", "ziicit");
                                    ftp.bin();
                                    // Change to a new working directory on the FTP server.
                                    ftp.cwd("bin");
                                    // Upload some files.
                                    log.println("FTP Start: " + System.currentTimeMillis());
                                    ftp.stor(f);
                                    ftp.disconnect();
                                    log.println("FTP Done: " + System.currentTimeMillis());
                        catch (java.io.IOException ioe)
                            log.println("File is not Found");
                            ioe.printStackTrace(log);
        menuItem.addActionListener(al);
        menuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));
        menuItem.getAccessibleContext().setAccessibleDescription("This doesn't really do anything");
        jPopupMenu1.setSize(100, 200);
        if (evt.getButton() == evt.BUTTON3)//evt.isPopupTrigger()
            jPopupMenu1.show(evt.getComponent(), evt.getX(), evt.getY());
     * @param args the command line arguments
    public static void main(String args[])
        java.awt.EventQueue.invokeLater(new Runnable()
                    public void run()
                        SCM s = new SCM();
                        s.setVisible(true);
                        //s.setState(s.HIDE_ON_CLOSE);
                        s.setAlwaysOnTop(true);
                        SystemTrayTest st = new SystemTrayTest();
                        st.setControl(s);
                        st.showFrame();
    // Variables declaration - do not modify                    
    private javax.swing.JMenuItem aboutMenuItem;
    private javax.swing.JMenuItem contentsMenuItem;
    private javax.swing.JMenuItem copyMenuItem;
    private javax.swing.JMenuItem cutMenuItem;
    private javax.swing.JMenuItem deleteMenuItem;
    private javax.swing.JMenu editMenu;
    private javax.swing.JMenuItem exitMenuItem;
    private javax.swing.JMenu fileMenu;
    private javax.swing.JMenu helpMenu;
    private javax.swing.JPopupMenu jPopupMenu1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JSplitPane jSplitPane1;
    private javax.swing.JTable jTable1;
    private javax.swing.JTree jTree1;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JMenuItem openMenuItem;
    private javax.swing.JMenuItem pasteMenuItem;
    private javax.swing.JMenuItem saveAsMenuItem;
    private javax.swing.JMenuItem saveMenuItem;
    // End of variables declaration                  
    private javax.swing.JFileChooser jfc = new javax.swing.JFileChooser();
    public void treeExpanded(TreeExpansionEvent event)
    public void treeCollapsed(TreeExpansionEvent event)
    public void treeNodesChanged(TreeModelEvent e)
    public void treeNodesInserted(TreeModelEvent e)
    public void treeNodesRemoved(TreeModelEvent e)
    public void treeStructureChanged(TreeModelEvent e)
    public void treeWillExpand(TreeExpansionEvent event) throws ExpandVetoException
    public void treeWillCollapse(TreeExpansionEvent event) throws ExpandVetoException
}

Similar Messages

  • [Win-Ill10]Expand Pattern Swatch not working!

    Hi all,
    Im using VC++6.0,Illustrator 10 & SDK.Im trying to Expand a pattern swatch programatically.But it does not work.Here's the code snippet
    AIErr error;
    AIArtHandle path;
    case kPattern:
    error=sExpand->Expand(path,0);
    break;
    Please tell whats wrong!

    you could do as follow:
    //retrieve the pattern art fot a given AIColor (PatternColor).
    AIArtHandle patternArt;
    AIPatternStyle patternStyle;
    patternStyle = color.c.p
    result = sAIPattern->GetPatternArt(patternStyle.pattern, &patternArt);
    aisdk::check_ai_error(result);
    then, do a recursive treewalk for this patternArt!
    this is done!

  • Expand audio does not work in FCP X?

    when I use expand audio from video (cntr-S) accoding to the helpto split video/audio it does not work; the audiowaveform disappears, there is no split in audio and video. Only the audio is functoning and then the colour is green.
    A bug?

    I just restarted the macbpro and the program, tried again and now it works.
    thanks for your attention.
    bruce

  • Expand/collapse options not working on IE 10

    Hello Friends,
    I have a document library grouped as per "Category" column and I display the same information as a web part on a web part page. Now when I try to expand the "Category" by clicking on "+" icon I get a message "Loading"
    I have removed and re-added the web part again but I am still facing the same issue. I am using IE10 so does it have something to do with the browser?
    I have come across this bug fix: http://support.microsoft.com/kb/2553117/en-us so is it applicable to both 32bit and 64bit versions of IE10?
    Please suggest.

    the hotfix you mention is for SharePoint not for IE.But if this is issue you are facing then you can patch your farm with this...but 1st 
    you please tell us what patch level or version of SharePoint 2010 you are( check from central admin > manager server in farm > you will see the config db version).
    what IE version you are using & 32 bit or 64?
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Post RH 9 Upgrade Expand All and Collapse All not working.

    After upgrading to RoboHelp 9 from 7 - the Collapse All and Expand All is not working.  I am taking over after attending a RoboHelp 9 Training Class a little over a week ago, so any help would be appreciated.

    Hi,
    What is your output? Where are the show/hide buttons placed: In the topic or in the toolbar? You're using RoboHTML right?
    Did you use any kind of twisties in your RoboHelp 7 project? The show all hide all buttons are controlled by a custom script and I'd like to know which method you are using. (If you know which.) See also http://www.grainge.org/pages/authoring/twisty/twisty.htm
    If you're not sure which method you are using, can you post the HTML of the show/hide all button/link?
    Greet,
    Willam

  • InfoPath 2013 - Rich Text box - Expand to show all text option not working

    I have create an InfoPath form and created a view which will be used for printing. I have a rich text box in this print view and the scroll option for this rich text box is set to "Expand to show all text". However, it is not working and it doesn't
    expand the size of the text box based on the content length.
    same thing used to work in InfoPath 2010.
    Any suggestions?
    Thanks,
    Neelesh

    Hi Wendy,
    Here are the steps I have used:
    1. On default view added a rich text box.
    2. Created another view called Print and mapped it to the same Field which I added to default view
    3. Set the Wrap text and Expand to show all text on both the Rich Text Box Properties - in default view and in Print
    view. Also set the height of the rich text box to auto.
    4. Set the print views as the print view for default view
    5. Deployed the form to SharePoint Form Library
    6. Opened the form in browser
    7. Entered the content in the rich text box in default view. It expands well if I have much content
    8. Clicked on Print preview and that opens up the print preview and it shows the rich text box only one line in height and with scroll bar
    I missed to mention that it is a web browser enabled form and I am using InfoPath 2013 and SP 2013.
    It does work fine in InfoPath client.
    Thanks.

  • Binding gateway service with List not working properly with expand

    Hi all,
    We have an orderlist with details, we use the splitapp for it, it's working nicely with a gatewayservice. We have now added with expand 2 orderpartners. I see the 2 partners, only is it completly the same data. I checked the oData structure and I see indeed that the 2 partners are the same. This is weird, because when I execute the service, via my browser, I see 2 different partners.
    If I execute the service directly via the read function, I see in the oData that I also have 2 different partners. So my conclusion is that the direct read of the service is working and executing the service via the sap.m.List is not working with the expand.
    Now my question is, does somebody know what's going wrong here, or is it a bug in the sap.m.List? Below you find code snippets how I call the service.
    This call is working:
    oModel.read("/OrderListSet", null, ["$orderby=BegTstmp asc&$filter=Userid eq 'user' and DateFrom eq datetime'2014-04-20T00:00:00' and DateTo eq datetime'2014-04-27T00:00:00'&$expand=OrderPartners"], null, function(oData, oResponse){  
      }, null );
    The binding via the sap.m.list is:
    var oList = new sap.m.List("orderList", {
      mode: "{device>/listMode}",
                items: {
            path: "/OrderListSet",
               parameters: {expand: "OrderPartners"},
            template : new sap.m.StandardListItem({
            title: {
                   parts: [
                           {path: "BegTstmp", type: new sap.ui.model.type.DateTime({pattern: "H:mm"})},
                           {path: "DataCol2"}
                   formatter : function(strDate, strDescription) { return strDate + " - " + strDescription; }
            description: {
            parts: [
                          "DataCol3",
                          "DataCol4",
                          "DataCol5",
                          "DataCol6"
            type: sap.m.ListType.Navigation,
            icon: "{icon}",
            customData: [
            new sap.ui.core.CustomData({
            key: "orderId",
            value: "{Orderid}"
            new sap.ui.core.CustomData({
            key: "type",
            value: "{Type}"
            // Sort the list on date and group the list on day
                   sorter: new sap.ui.model.Sorter("BegTstmp", false, oGrouper),
                   // Filter the list, this directly refrenced to the gatewayservice
            filters: [
                     util.Filter.getUserId(),
                     util.Filter.getCurrentWeekFromFilter(),
                     util.Filter.getCurrentWeekToFilter(),

    Fine. If you're trying to bind any attributes of OrderPartners, bind it as OrderPartners/attribute-name. Say if "BegTstmp" an attribute of OrderPartners bind it as OrderPartners/BegTstmp.
    Regards
    Sakthivel

  • Expanding/contracting timeline shortcuts. "-" and "+" do not work.

    I have purchased Adobe Premiere Elements 13. One thing I need to do a lot during my project is expand/contract the timeline in Expert view. Everywhere I look online I am directed to using "+" or "-" to do this.
    However, these buttons do not appear to do anything - even in combination with CTRL or ALT. What am I missing?
    thanks
    Ed

    edwardsyvester
    What are your expectations - expand the Timeline or to increase the Track size?
    With your focus on the -+ Zoom Out Zoom In above the Timeline, check out the slider.
    When you first open the project and import to the Expert workspace - default position
    When you move the slider all the way to the right (max)
    And, to the immediate right of the Render button is an icon "Fit to Visible Timeline" (shortcut \) if you need to use that.
    Are you saying that none of that happens when you move the slider to max (Zoom In) to min (Zoom Out)?
    Or are you looking for the Large track size which can be obtained by right clicking near the track name and selecting from the drop
    down menu Track Size...Large? The following is screenshot 1 with the default location for the zoom slider and with Track Size = Large.
    Please review and consider. If the above does not address your situation, then we will go for the deletion of
    the Adobe Premiere Elements Prefs file.
    Local Disk C
    Users
    Owner
    AppData
    Roaming
    Adobe
    Premiere Elements
    13.0
    and in the 13.0 Folder is the Adobe Premiere Elements Prefs file that you delete. If that does not work, then you delete the whole 13.0
    Folder in which the Adobe Premiere Elements Prefs file exists. Make sure that you are not working with hidden folders enabled.
    Looking forward to your results.
    ATR

  • OS X 10.6.6-gestures for pinch to zoom or expand do not work.

    Just installed Firefox 4 RC 1 and noticed that the pinch to open or close (zoom/expand) do not work. I can use other gestures (like swiping three fingers to move back or forward, but no luck with the pinch to zoom or expand. Keyboard shortcuts for this function work fine (command +/-).

    Funcionó para mi
    It worked for me

  • The expand on Youtube is not working with many Youtube sites and they work on Internet Explorer

    On many of the sites on Youtube the expand does not work with Mozilla Firefox 4. I have gone to Internet Explorer and they work there. When I come back from Internet Explorer strange enough the expand on Firefox works. Obviously its picking up programming from Internet Explorer, unfortunately it does not last long. I've tried plug ins, reloading flash player after I deleted it and re-installed it, the problem still exist. Also on the expand screens that do work on the right side there is a very thin white line coming down the border. I'm not the only one with this problem. please help with this problem.

    Indeed, this is a bug in HTTPS-everywhere which you can see here : https://trac.torproject.org/projects/tor/ticket/4032

  • Reset  Button is Not Working For Radio Buttons In Expand to fit Forms

    Dear All,
    I have a dynamic form in which text fields height is set to expand to fit.The functionality of the reset button is working fine if none of the field expand during filling the form but during filling the form if any fields height expands and then we want to reset the form, all fields are getting refreshed but the radio buttons are not getting refreshed.
    I have also tried by writing script on the click event of the reset button to make the rawvalue of the radio buttons as null.Even though it is not working.
    I am usuing Reader 7.0 to open the form.Is there anything wrong in this reader version or is there any other problem?
    If any body can please help me.
    Thanks a lot in advance
    Regards
    Rakesh

    Check on the Property Palette of the radio_group the Navigation->Keyboard Navigate atribute.It must be Yes.

  • Af:tree control expand is not working

    Hi all ,
    af:tree control expansion is not working if I click on the + sign. But it is working thru context menu "Expand All Below" option.
    Can any one help me.
    Thanks
    Kristi
    Message was edited by:
    Kristi(user576892)

    Hi,
    not with this little information
    - which technology
    - which browser version (if applicable)
    - how to reproduce
    - does it reproduce on other machines / browsers
    Frank

  • Tray Expand button not working

    Dear Expert,
    After the SPS upgrade of SP 21 for java stack, I am facing a issue of Expand button of the tray is not working for the iviews which contain dynamic information such as BI reports etc., Please help me out in this issue
    Regards
    Noel

    Hi Noel,
    The expand button / the tray UI element can be a Webdyn Pro Java Component.
    This does not have to be a iview tray.
    Are you using the BI iView in a separate Portal or are you using Portal Federation ?
    If you have 2 portals, what is the second portal version ?
    Regards,
    Kai

  • Expand all not working for me

    I have no clue on this and it sucks. Can anybody tell me why
    my expandAll() call does not work. It does not expand the nodes.
    Here is my code. The ADG is created in actionscript and then
    grouping is applied to create hierarchical data. The last three
    lines of the following code are where I call expandAll... after
    validateNow too.
    [CODE]var oneColumn:AdvancedDataGridColumn = new
    AdvancedDataGridColumn("FRONTS: ("+firstsFronts.length+")");
    var twoColumn:AdvancedDataGridColumn = new
    AdvancedDataGridColumn("#");
    var threeColumn:AdvancedDataGridColumn = new
    AdvancedDataGridColumn("%");
    oneColumn.width = 120;
    twoColumn.width = 35;
    threeColumn.width = 45;
    oneColumn.sortable = false;
    twoColumn.sortable = false;
    threeColumn.sortable = false;
    oneColumn.dataField = "FRONT";
    twoColumn.dataField = "theCount";
    threeColumn.dataField = "thePercentage";
    //twoColumn.width = 20;
    indPersonnelDataGridFronts.columns =
    [oneColumn,twoColumn,threeColumn];
    var groupingColl:GroupingCollection = new
    GroupingCollection();
    var groupingGroup:Grouping = new Grouping();
    groupingColl.source = firstsFronts;
    var myFieldGroup:GroupingField = new GroupingField("FRONT");
    groupingGroup.fields = [myFieldGroup];
    groupingColl.grouping = groupingGroup;
    var sr:SummaryRow = new SummaryRow();
    var sf:SummaryField = new SummaryField();
    sf.dataField = "FRONT";
    sf.operation = "COUNT";
    sf.label = "theCount";
    sr.fields = [sf];
    sr.summaryPlacement = "group";
    //myFieldGroup.summaries = [sr];
    var srP:SummaryRow = new SummaryRow();
    var sfP:SummaryField = new SummaryField();
    sfP.dataField = "FRONT";
    sfP.summaryFunction = calcPercentage;
    sfP.operation = "COUNT";
    sfP.label = "thePercentage";
    srP.fields = [sfP];
    srP.summaryPlacement = "group";
    myFieldGroup.summaries = [sr, srP];
    groupingColl.refresh();
    indPersonnelDataGridFronts.dataProvider = groupingColl;
    indPersonnelDataGridFronts.validateNow();
    indPersonnelDataGridFronts.expandAll();[/CODE]

    Thank You Barbara.  I knew it was operator error.
    David
    On Fri, Oct 10, 2014 at 6:10 PM, Barbara B. <[email protected]>

  • Expand/Collapse not working DataViewWebPart

    Hello,
    I'm having some difficulties with my DataViewWebPart page. The page shows the documents from a library. These documents are grouped by three collumns:
    - Klantnummer
    - InstallatieType
    - Map
    In SharePoint Designer i added these three collumns for sorting/grouping. When i choose "Expand" the whole list is expanded. But the Plus "+" and Min "-" signs are not working on my page. When i click on them the sign changes
    but nothing happends. (Collapsing works but not expanding)
    I can not expand these anymore.
    Hope you guys understand my story and know a way to fix this.

    Are you seeing any JavaScript errors?
    Dimitri Ayrapetov (MCSE: SharePoint)

Maybe you are looking for

  • Is there a better workflow using iMovie?

    I run a small wedding videography business with my wife in Wisconsin and I'm wondering about a faster workflow for people using iMovie. Here is our current process: 1.  I shoot the weddings using 2 Panasonic HMC40's which records on Class 10 SDHC car

  • Open portal page via HTML URL out of the "Dynamic Navigation"

    Hi everybody, In our portal environment we have a page (page1) in which user can enter date. On another page (page2) in a different navigation node there is a report that shows the data. We want to provide a possibility to navigate directly from page

  • How to change ship to party'  Transportation zone when create a order ?

    Hi,    I want to change ship to party'  Transportation zone when create order with VA01 before save.    what user ecit can be used? I modify the Transportation zone  in the table xvbpa in program MV45AFZZ, but it does work.    Please help ~   Thank y

  • Task Auto-Assignment in PJM (turning it off)

    My client is looking to turn off Task Auto-Assignment in Project Manufacturing after a restructure of the Project WBS / FBS. It will no longer be needed. I was wondering if anyone has done this. What are the steps? What are the concerns of doing this

  • Broken Flash Video link - Dreamweaver CS3

    I'm using a Mac G-5, PPC, Dreamweaver CS3 I cannot get FLV videos to show up on webpages. I've never had this prob before. (I currently have pages online which play their vids fine and were produced the same way I'm working it now.) I insert the vide