HTMLClient Table Footers

hi,
is there a way to add a footer to the table object?
in the post render i tried 
$(element).closet("table").appendTo("<tfoot>.....</tfoot>")
but the foot never gets added.
if i leave out the closet("table") it gets added to the parent div.
I'am looking to add footers so i can show some totals in the table, is there another way to achieve that?
MrP

 var footer = $("<tfoot><tr><td>Totals</td><td><div id=totalQty></div></td><td>X</td><td>X</td><td>X</td><td>X</td><td>X</td></tr></tfoot>"); footer.appendTo($(element).find("table"));
I need some help with the jquery to fill in the totals or if there is a better way to summarize tables.
mrP

Similar Messages

  • Total on abreak

    Hi Guys, I created a break and sorted the report on months, I right click on a measure column, calculate / sum but I am getting the total sum not the break sum, how can I place the sum on the break.
    Thanks

    Hi,
    The calculation(sum in this case) can be done on two level.
    Break level and Table level
    I think you have put the summation formula on the table footer, and not on the break footer.
    To determine, where you have placed the formula. first select the table and go to the properties. check  fiels "Show table footers". if its checked then the formula placed is on the table footer.
    Secondly go to the column on which you put the break, then go to the prperties of the break and check if you have selected the fooetr here as well.
    Hope it clarifies your dilemma.
    Regards,
    Nisha

  • No tables in header/footers- that *****

    Can you no longer have tables in the headers/footers?  If this is the case- so much for all the templates previously created for work- where the image/logo could be put in the header and repeated on all pages.  What a load of crap.

    Yeah, totally agreee. Running a company with all out documentation now going to have to be reformatted because Apple have taken this function away, really frustrated me.
    However, the way around it is drop the image into the document. Position where you would like it to go and then click Arrange/Section Master/Move object to section master. This will then set it in the background for all of that section.

  • Table on Page One Blocking Layout/Section Break & Distinct Headers/Footers

    Is there any way to start a new Header/Footer on page 2, after a page one table that fills the page?
    I've created my first page as a Table (entire page) in order to recreate the front page of my newsletter, as used by a previous editor. Works great, and has been the only way I've found to mimic the old front page. Problem is, I can't get the document to accept setting up a different header and footer for subsequent pages, and when I try to do so, I end up with a header on page 1 above my banner Headline. Yech.
    I can't put a section break inside the Page 1 Table - Pages Won't allow (option is greyed out). I tried to put a layout break at the top of page 2, which is supposed to allow a new Header/Footer for subsequent pages, but when i insert the cursor on page 2 and attempt to create a distinct Header/Footer for the document after the layout break, there is a check mark, greyed out, in the Section part of the Layout Inspector, for the line: Use previous Headers and Footers. That is, it's locked and can't be unchecked.
    If I do try to set up a header/footer field linked to the doc page after the layout break, it also creates the same layout and fields as for the first page.
    Am I stuck here because I started out my doc with a table?
    G-5   Mac OS X (10.4.8)  

    Welcome to the forums, OwlRemembers.
    You should be OK with using the table as you are. The problem is probably arising because you aren't inserting the section break into the default text box on the page. This may be because the cursor is being inserted into the header, or that the table is covering the entire default text box, and so clicking in the main part of the page selects a table cell.
    There are two things I would suggest. The first is to use the Layout View (under View menu, choose Show Layout) -- this will ensure that you can see the default text box (the big box that covers most of the page. The second would be to click on the table you have created and, in the Wrap Inspector palette, choose "Fixed on page". Once this is done, you should be able to grab the table, move is slightly aside, insert a section break on the page, and move the table back.

  • Footers, tables, secondary navbars or frames, different sites etc.

    Hey all,
    I moved completely away from Windows years ago to Macs and Linux except for web page building. I continued to use Frontpage because I understood it and it worked for my level of need and capability. Today I began attacking an overdue site for a non-profit foundation I run and decided to go with iWeb. Initial response is that this is awesome. But I have reached the point where I need help.
    Footers
    It appears that every page has its own, unique footer. Yuck, what a lot of work and multiplication of effort since I want each page's footer to be identical. Moreover, if I change something, like a copyright notice, I don't want to have to copy /paste to every single page. Plus I cannot insert a text box into a footer. I saw a post about using a shape and will give that a try but back to the root question, is there a master footer element somewhere?
    Tables
    On a couple of pages, I need the capability to have tables. While Keynote and Pages support tables, iWeb doesn't seem to do this. Have I missed this somewhere?
    Secondary Navbars
    As many other posters have already noted, it's bad form to clutter up your navbar with too much stuff. I've been creating pages and using hyperlinks from "leader" pages to get there, but what I would really like to do is to create self-populating navbars. The site organizer doesn't appear to do much other than page order. Only blog pages support child pages. Am I missing a key navigational capability here?
    The site organizer is confusing me completely. Logically one would be able to manage multiple distinct and unique sites from a site organizer, but this site organizer seems to treat all the sites as if they are from one master site. I read a post from an innovative fellow who used this to handle the nav problem above by using a main site and a bunch of subsites, but what do you do if you don't want all the pages published to the same place?
    The help system and online help, umm, inhale rapidly.
    Thanks!
    Ross
    Powerbook G4 17   Mac OS X (10.4.7)   PowerMac Dual 2.3

    Hi Kyn,
    Thanks for the helpful guidance. Great tip about the CMD-drag, I had no idea and it will make setting the footers easier. Once done on one page I may be able to bulk select copy paste for the other pages.
    Thank you for saving me time regarding tables. I see you can publish to a file which renders html and iWeb is supposed to be W3C compliant so maybe I could create the table as html and paste it in, but I think that would only work in a non .Mac published environment (true in this case) but every alteration and publish to folder would overwrite it.
    I think I can create the secondary navbars with a text box, but it won't be automatic.
    Still confused by the sites thing, although I saw a link somewhere on how to have multiple unique sites using some Finder manipulations. Will have to look that up later. I own the Adobe product (came as part of a suite) but haven't the time or energy to learn it right now.
    Thanks again,
    Ross
    Powerbook G4 17   Mac OS X (10.4.7)   PowerMac Dual 2.3

  • My final version of a table with row headers and column footers

    This version is superior to the one I posted yesterday
    as it is better designed and responds to changes in
    size correctly. You can also have a header/footer with
    multiple columns/rows.
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.JTableHeader;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.TableColumnModel;
    import java.awt.*;
    import java.awt.event.AdjustmentListener;
    import java.awt.event.AdjustmentEvent;
    import java.awt.event.ComponentListener;
    import java.awt.event.ComponentEvent;
    public class HeaderFooterTablePanel extends JPanel {
        static abstract class AbstractHeaderFooterTableModel extends AbstractTableModel {
            public abstract int getRowHeaderColumnCount();
            public abstract Object getRowHeaderValueAt(int rowIndex,
                                                       int columnIndex);
            public abstract int getFooterRowCount();
            public abstract Object getFooterValueAt(int rowIndex,
                                                    int columnIndex);
        static class RowHeaderTableModel extends AbstractTableModel {
            private AbstractHeaderFooterTableModel abstractHeaderFooterTableModel;
            public RowHeaderTableModel(AbstractHeaderFooterTableModel abstractHeaderFooterTableModel) {
                super();
                this.abstractHeaderFooterTableModel = abstractHeaderFooterTableModel;
            public String getColumnName(int column) {
                return "";
            public int getColumnCount() {
                return abstractHeaderFooterTableModel.getRowHeaderColumnCount();
            public int getRowCount() {
                return abstractHeaderFooterTableModel.getRowCount();
            public Object getValueAt(int rowIndex, int columnIndex) {
                return abstractHeaderFooterTableModel.getRowHeaderValueAt(rowIndex, columnIndex);
        static class ColumnFooterTableModel extends AbstractTableModel {
            private AbstractHeaderFooterTableModel abstractHeaderFooterTableModel;
            public ColumnFooterTableModel(AbstractHeaderFooterTableModel abstractHeaderFooterTableModel) {
                super();
                this.abstractHeaderFooterTableModel = abstractHeaderFooterTableModel;
            public String getColumnName(int column) {
                return "";
            public int getColumnCount() {
                return abstractHeaderFooterTableModel.getColumnCount();
            public int getRowCount() {
                return abstractHeaderFooterTableModel.getFooterRowCount();
            public Object getValueAt(int rowIndex, int columnIndex) {
                return abstractHeaderFooterTableModel.getFooterValueAt(rowIndex, columnIndex);
        static class SyncColumnWidths implements TableColumnModelListener {
            private final JTable centerTable;
            private final JTable footerTable;
            public SyncColumnWidths(JTable centerTable,
                                    JTable footerTable) {
                this.centerTable = centerTable;
                this.footerTable = footerTable;
            // Change the column widths of the footer table when the column widths
            // of the center table change.
            public void columnMarginChanged(ChangeEvent e) {
                TableColumnModel centerTableColumnModel = centerTable.getColumnModel();
                TableColumnModel footerTableColumnModel = footerTable.getColumnModel();
                for (int i = 0; i < centerTableColumnModel.getColumnCount(); i++) {
                    int width = centerTableColumnModel.getColumn(i).getPreferredWidth();
                    footerTableColumnModel.getColumn(i).setPreferredWidth(width);
            public void columnSelectionChanged(ListSelectionEvent e) {
            public void columnAdded(TableColumnModelEvent e) {
            public void columnMoved(TableColumnModelEvent e) {
            public void columnRemoved(TableColumnModelEvent e) {
        private JTable centerTable;
        private JTable rowHeaderTable;
        private JTable columnFooterTable;
        public HeaderFooterTablePanel(AbstractHeaderFooterTableModel abstractHeaderFooterTableModel) {
            super();
            // Create the center, rowHeader and columnFooter tables
            centerTable = new JTable(abstractHeaderFooterTableModel);
            rowHeaderTable = new JTable(new RowHeaderTableModel(abstractHeaderFooterTableModel));
            columnFooterTable = new JTable(new ColumnFooterTableModel(abstractHeaderFooterTableModel));
            // Disabled column re-ordering
            centerTable.getTableHeader().setReorderingAllowed(false);
            columnFooterTable.getTableHeader().setReorderingAllowed(false);
            // We are using scroll panes, so no auto resizing of table.
            centerTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
            columnFooterTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
            // Only allow the user to change the column widths from the center table, not the
            // columnFooter.
            columnFooterTable.getTableHeader().setResizingAllowed(false);
            // When the center table column widths change, change those in the columnFooter table.
            SyncColumnWidths syncColumnWidths = new SyncColumnWidths(centerTable, columnFooterTable);
            centerTable.getColumnModel().addColumnModelListener(syncColumnWidths);
            // Set the width of the row header before adding it to the center scroll pane
            // as the row header.
            Dimension rowHeaderSize = rowHeaderTable.getPreferredScrollableViewportSize();
            rowHeaderSize.width = rowHeaderTable.getPreferredSize().width;
            rowHeaderTable.setPreferredScrollableViewportSize(rowHeaderSize);
            rowHeaderTable.setRowHeight(centerTable.getRowHeight());
            // Create the center scroll pane and set the row header table as the row header.
            final JScrollPane centerScrollPane = new JScrollPane(centerTable);
            centerScrollPane.setRowHeaderView(rowHeaderTable);
            // We will handle horizontal scrolling with our own scrollbar.
            centerScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
            // Now we create the panel to hold the columnFooter table and the horizontal
            // scrollbar.
            final JPanel columnFooterPanel = new JPanel(new BorderLayout());
            // Keep the space below the row header empty.
            Component westGlue = Box.createHorizontalStrut(rowHeaderSize.width);
            // Set height of the columnFooterTable before adding it to the columnFooter scroll pane
            // as the view.
            Dimension columnFooterSize = columnFooterTable.getPreferredScrollableViewportSize();
            columnFooterSize.height = columnFooterTable.getPreferredSize().height;
            columnFooterTable.setPreferredScrollableViewportSize(columnFooterSize);
            columnFooterTable.setRowHeight(centerTable.getRowHeight());
            // The scroll pane which holds the columnFooterTable.
            final JScrollPane columnFooterScrollPane = new JScrollPane(columnFooterTable);
            // We do our own horizontal scrolling and the columnFooterScrollPane never scrolls vertically.
            columnFooterScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
            columnFooterScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);
            // The scrollbar we use to scroll horizontally.
            final JScrollBar horizontalScrollBar = new JScrollBar(JScrollBar.HORIZONTAL);
            // Sync up all the scrolling. See the method for details.
            syncScrolling(centerScrollPane, horizontalScrollBar, columnFooterScrollPane);
            // Keep the space below the vertical scrollbar empty.
            final JScrollBar verticalScrollBar = centerScrollPane.getVerticalScrollBar();
            int verticalScrollBarWidth = verticalScrollBar.getPreferredSize().width;
            final Component eastGlue = Box.createHorizontalStrut(verticalScrollBarWidth);
            // Set the center viewport size to match to table size
            Dimension centerTablePreferredsize = centerTable.getPreferredSize();
            centerTable.setPreferredScrollableViewportSize(centerTablePreferredsize);
            centerScrollPane.getViewport().setSize(centerTablePreferredsize);
            // The panel that holds the columnFooterTable and the horizontal scrollbar below it.
            final JPanel footerPanel = new JPanel(new BorderLayout());
            footerPanel.add("North", columnFooterScrollPane);
            footerPanel.add("South", horizontalScrollBar);
            footerPanel.setMinimumSize(footerPanel.getPreferredSize());
            // Assemble our columnFooterPanel.
            columnFooterPanel.add("West", westGlue);
            columnFooterPanel.add("Center", footerPanel);
            columnFooterPanel.add("East", eastGlue);
            // This keeps the columnFooterPanel at its minimum height
            JPanel northPanel = new JPanel(new BorderLayout());
            northPanel.add("North", columnFooterPanel);
            // Assemble the center scroll pane, below it the panel containing the column
            // footer panel, and then vertical glue to eat up any available vertical space.
            Box box = Box.createVerticalBox();
            box.add(centerScrollPane);
            box.add(northPanel);
            box.add(Box.createVerticalGlue());
            // Hide/show the eastGlue and the horizontalScrollBar, and recalculate the
            // minimum size of the footerPanel in response to size and visibility changes.
            syncScrollBarVisibility(centerScrollPane, eastGlue, horizontalScrollBar, footerPanel);
            setLayout(new BorderLayout());
            add("Center", box);
        private void syncScrollBarVisibility(final JScrollPane centerScrollPane,
                                             final Component eastGlue,
                                             final JScrollBar horizontalScrollBar,
                                             final JPanel footerPanel) {
            // Hide/show the eastGlue accoring to whether or not the vertical scrollbar
            // is visible.
            centerScrollPane.getVerticalScrollBar().addComponentListener(new ComponentListener() {
                private void checkVisibleStatus(boolean b) {
                    if (eastGlue.isVisible() != b) {
                        eastGlue.setVisible(b);
                public void componentHidden(ComponentEvent e) {
                    checkVisibleStatus(false);
                public void componentMoved(ComponentEvent e) {
                public void componentResized(ComponentEvent e) {
                public void componentShown(ComponentEvent e) {
                    checkVisibleStatus(true);
            // Hide/show the horizontal scrollbar according to whether or not it's needed.
            centerScrollPane.getViewport().addComponentListener(new ComponentListener() {
                public void componentHidden(ComponentEvent e) {
                public void componentMoved(ComponentEvent e) {
                public void componentResized(ComponentEvent e) {
                    int centerScrollPaneWidth = centerScrollPane.getViewport().getSize().width;
                    int centerTablePreferredWidth = centerTable.getPreferredSize().width;
                    if (centerScrollPaneWidth >= centerTablePreferredWidth) {
                        horizontalScrollBar.setVisible(false);
                    } else {
                        horizontalScrollBar.setVisible(true);
                public void componentShown(ComponentEvent e) {
            // Set the minimum size of the footerPanel according to whether or not the
            // horizontalScrollBar is visible.
            horizontalScrollBar.addComponentListener(new ComponentListener() {
                public void componentHidden(ComponentEvent e) {
                    footerPanel.setMinimumSize(footerPanel.getPreferredSize());
                public void componentMoved(ComponentEvent e) {
                public void componentResized(ComponentEvent e) {
                public void componentShown(ComponentEvent e) {
                    footerPanel.setMinimumSize(footerPanel.getPreferredSize());
        private void syncScrolling(final JScrollPane centerScrollPane,
                                   final JScrollBar columnFooterScrollBar,
                                   final JScrollPane columnFooterScrollPane) {
            // When the view of the center scroll pane changes position,
            // change the value of the columnFooterScrollBar to match.
            centerScrollPane.getViewport().addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    int x = ((Component) e.getSource()).getLocation().x * -1;
                    JViewport viewport = (JViewport) e.getSource();
                    int extentWidth = viewport.getExtentSize().width;
                    int viewWidth = viewport.getViewSize().width;
                    int value = Math.max(0, Math.min(viewport.getViewPosition().x, viewWidth - extentWidth));
                    columnFooterScrollBar.setValues(value, extentWidth, 0, viewWidth);
            // When the columnFooterScrollBar (horizontal scroll bar) value changes,
            // change the position of the view in the center scroll pane to match.
            columnFooterScrollBar.addAdjustmentListener(new AdjustmentListener() {
                public void adjustmentValueChanged(AdjustmentEvent e) {
                    JViewport viewport = centerScrollPane.getViewport();
                    viewport.setViewPosition(new Point(e.getValue(), viewport.getViewPosition().y));
                    viewport = columnFooterScrollPane.getViewport();
                    viewport.setViewPosition(new Point(e.getValue(), viewport.getViewPosition().y));
            // When the view of the row header changes position,
            // change the value of the vertical scrollbar of the center
            // scroll pane to match.
            centerScrollPane.getRowHeader().addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    JViewport viewport = (JViewport) e.getSource();
                    int extentHeight = viewport.getExtentSize().height;
                    int viewHeight = viewport.getViewSize().height;
                    int value = Math.max(0, Math.min(viewport.getViewPosition().y, viewHeight - extentHeight));
                    centerScrollPane.getVerticalScrollBar().setValues(value, extentHeight, 0, viewHeight);
        public JTable getCenterTable() {
            return centerTable;
        public JTable getRowHeaderTable() {
            return rowHeaderTable;
        private JTable getColumnFooterTable() {
            return columnFooterTable;
        public static void main(String[] args) {
            AbstractHeaderFooterTableModel tableModel = new AbstractHeaderFooterTableModel() {
                public int getRowCount() {
                    return 25;
                public int getColumnCount() {
                    return 10;
                public Object getValueAt(int rowIndex, int columnIndex) {
                    return "Cell " + rowIndex + ":" + columnIndex;
                public String getColumnName(int column) {
                    return "Column #" + column;
                public Object getRowHeaderValueAt(int rowIndex, int columnIndex) {
                    return "Header " + rowIndex + ":" + columnIndex;
                public int getRowHeaderColumnCount() {
                    return 2;
                public Object getFooterValueAt(int rowIndex, int columnIndex) {
                    return "Footer " + rowIndex + ":" + columnIndex;
                public int getFooterRowCount() {
                    return 3;
            JFrame frame = new JFrame();
            HeaderFooterTablePanel tablePanel = new HeaderFooterTablePanel(tableModel);
            // Render the cells in the row header and footer like the center table column headers.
            TableCellRenderer columnRenderer = tablePanel.getCenterTable().getTableHeader().getDefaultRenderer();
            tablePanel.getRowHeaderTable().setDefaultRenderer(Object.class, columnRenderer);
            tablePanel.getColumnFooterTable().setDefaultRenderer(Object.class, columnRenderer);
            frame.getContentPane().add("Center", tablePanel);
            frame.setSize(300, 300);
            frame.setLocation(300, 200);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
    }

    i was wondering why this topic has NO replies! and then i realized that there is NO question??? so do you have a question, or are you just starting a new thread cuz you feel like it???
    just trying to work out why you didnt post this is the old thread???
    http://forum.java.sun.com/thread.jspa?threadID=5130131&messageID=9466400#9466400

  • Headers/footers in table

    Hello,
    I want to create a table like a bank receipt. For the calculation of the sums I have already found a solution
    In the header
    Date | Credit | Debit | Currency
    Total | sum | | EUR
    So I fact I want two headers
    In the footer I want to have to start amount (but this I heave already found)

    <p>
    Hi,
    </p>
    <p>
    I created blog entry , maybe it helps you.
    </p>
    <p>
    Kuba 
    </p>

  • My version of a table with row headers and column footers

    I checked the web and some java books over the
    weekend. Didn't find any examples so I'm
    probably not the only one wanting this.
    Here's my version:
    import javax.swing.*;
    import javax.swing.table.JTableHeader;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.TableColumnModel;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    public class RowHeaderColumnFooterTableExample extends JFrame {
        private static class TableDataModel extends AbstractTableModel {
            public TableDataModel() {
                super();
            public String getColumnName(int column) {
                return "Column #" + column;
            public Object getRowHeader(int rowIndex) {
                return "Row #" + rowIndex;
            public Object getRowFooter(int columnIndex) {
                return "Footer #" + columnIndex;
            public int getColumnCount() {
                return 25;
            public int getRowCount() {
                return 25;
            public Object getValueAt(int rowIndex, int columnIndex) {
                return "Cell " + rowIndex + ":" + columnIndex;
        private static class RowHeaderTableModel extends AbstractTableModel {
            private TableDataModel tableDataModel;
            public RowHeaderTableModel(TableDataModel tableDataModel) {
                super();
                this.tableDataModel = tableDataModel;
            public String getColumnName(int column) {
                return "";
            public int getColumnCount() {
                return 1;
            public int getRowCount() {
                return tableDataModel.getRowCount();
            public Object getValueAt(int rowIndex, int columnIndex) {
                return tableDataModel.getRowHeader(rowIndex);
        private static class FooterTableModel extends AbstractTableModel {
            private TableDataModel tableDataModel;
            public FooterTableModel(TableDataModel tableDataModel) {
                super();
                this.tableDataModel = tableDataModel;
            public String getColumnName(int column) {
                return tableDataModel.getRowFooter(column).toString();
            public int getColumnCount() {
                return tableDataModel.getColumnCount();
            public int getRowCount() {
                return 0;
            public Object getValueAt(int rowIndex, int columnIndex) {
                throw new RuntimeException("This model holds column names only - no values.");
        private static class SyncColumnWidths implements TableColumnModelListener {
            private final JTable centerTable;
            private final JTable footerTable;
            public SyncColumnWidths(JTable centerTable,
                                    JTable footerTable) {
                this.centerTable = centerTable;
                this.footerTable = footerTable;
            // Change the column widths of the footer table when the column widths
            // of the center table change.
            public void columnMarginChanged(ChangeEvent e) {
                TableColumnModel centerTableColumnModel = centerTable.getColumnModel();
                TableColumnModel footerTableColumnModel = footerTable.getColumnModel();
                for (int i = 0; i < centerTableColumnModel.getColumnCount(); i++) {
                    int width = centerTableColumnModel.getColumn(i).getPreferredWidth();
                    footerTableColumnModel.getColumn(i).setPreferredWidth(width);
            public void columnSelectionChanged(ListSelectionEvent e) {
            public void columnAdded(TableColumnModelEvent e) {
            public void columnMoved(TableColumnModelEvent e) {
            public void columnRemoved(TableColumnModelEvent e) {
        public RowHeaderColumnFooterTableExample() {
            super();
            // Create the main table data model
            TableDataModel tableDataModel = new TableDataModel();
            // Create the center, rowHeader and footer tables
            final JTable centerTable = new JTable(tableDataModel);
            final JTable rowHeaderTable = new JTable(new RowHeaderTableModel(tableDataModel));
            final JTable footerTable = new JTable(new FooterTableModel(tableDataModel));
            // Render the cells in the row header like the column headers.
            rowHeaderTable.setDefaultRenderer(Object.class, new JTableHeader().getDefaultRenderer());
            // Disabled column re-ordering
            centerTable.getTableHeader().setReorderingAllowed(false);
            footerTable.getTableHeader().setReorderingAllowed(false);
            // We are using scroll panes, so no auto resizing of table.
            centerTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
            footerTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
            // Only allow the user to change the column widths from the center table, not the
            // footer.
            footerTable.getTableHeader().setResizingAllowed(false);
            // When the center table column widths change, change those in the footer table.
            SyncColumnWidths syncColumnWidths = new SyncColumnWidths(centerTable, footerTable);
            centerTable.getColumnModel().addColumnModelListener(syncColumnWidths);
            // Set the width of the row header before adding it to the center scroll pane
            // as the row header.
            Dimension rowHeaderSize = rowHeaderTable.getPreferredScrollableViewportSize();
            rowHeaderSize.width = rowHeaderTable.getPreferredSize().width;
            rowHeaderTable.setPreferredScrollableViewportSize(rowHeaderSize);
            rowHeaderTable.setRowHeight(centerTable.getRowHeight());
            // Create the center scroll pane and set the row header table as the row header.
            final JScrollPane centerScrollPane = new JScrollPane(centerTable);
            centerScrollPane.setRowHeaderView(rowHeaderTable);
            // We will handle horizontal scrolling with our own scrollbar.
            centerScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
            // Now we create the panel to hold the footer table and the horizontal
            // scrollbar.
            JPanel footerPanel = new JPanel(new BorderLayout());
            // Keep the space below the row header empty.
            Component westStrut = Box.createHorizontalStrut(rowHeaderSize.width);
            // Set height of the footer table before adding it to the footer scroll pane
            // as the view.
            Dimension footerSize = footerTable.getPreferredScrollableViewportSize();
            footerSize.height = footerTable.getPreferredSize().height;
            footerTable.setPreferredScrollableViewportSize(footerSize);
            footerTable.setRowHeight(centerTable.getRowHeight());
            // The scroll pane which holds the footer table.
            final JScrollPane footerScrollPane = new JScrollPane(footerTable);
            // We do our own horizontal scrolling and the footer never scrolls vertically.
            footerScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
            footerScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);
            // The scrollbar we use to scroll horizontally.
            final JScrollBar footerScrollBar = new JScrollBar(JScrollBar.HORIZONTAL);
            // The panel that holds the footer table and the horizontal scrollbar below it.
            JPanel footerCenterPanel = new JPanel(new GridLayout(2, 0));
            footerCenterPanel.add(footerScrollPane);
            footerCenterPanel.add(footerScrollBar);
            // Sync up all the scrolling. See the method for details.
            syncScrolling(centerScrollPane, footerScrollBar, footerScrollPane);
            // Keep the space below the vertical scrollbar empty.
            JScrollBar verticalScrollBar = centerScrollPane.getVerticalScrollBar();
            int verticalScrollBarWidth = verticalScrollBar.getPreferredSize().width;
            Component eastStrut = Box.createHorizontalStrut(verticalScrollBarWidth);
            // Assemble our footer Panel.
            footerPanel.add("West", westStrut);
            footerPanel.add("Center", footerCenterPanel);
            footerPanel.add("East", eastStrut);
            // Final assembly.
            Container contentPane = getContentPane();
            contentPane.setLayout(new BorderLayout());
            contentPane.add("Center", centerScrollPane);
            contentPane.add("South", footerPanel);
        private void syncScrolling(final JScrollPane centerScrollPane,
                                   final JScrollBar footerScrollBar,
                                   final JScrollPane footerScrollPane) {
            // When the view of the center scroll pane changes position,
            // change the value of the footer scrollbar to match.
            centerScrollPane.getViewport().addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    int x = ((Component) e.getSource()).getLocation().x * -1;
                    JViewport viewport = (JViewport) e.getSource();
                    int extentWidth = viewport.getExtentSize().width;
                    int viewWidth = viewport.getViewSize().width;
                    int value = Math.max(0, Math.min(viewport.getViewPosition().x, viewWidth - extentWidth));
                    footerScrollBar.setValues(value, extentWidth, 0, viewWidth);
            // When the footer scroll bar (horizontal scroll bar) value changes,
            // change the position of the view in the center scroll pane to match.
            footerScrollBar.addAdjustmentListener(new AdjustmentListener() {
                public void adjustmentValueChanged(AdjustmentEvent e) {
                    JViewport viewport = centerScrollPane.getViewport();
                    viewport.setViewPosition(new Point(e.getValue(), viewport.getViewPosition().y));
                    viewport = footerScrollPane.getViewport();
                    viewport.setViewPosition(new Point(e.getValue(), viewport.getViewPosition().y));
            // When the view of the row header changes position,
            // change the value of the vertical scrollbar of the center
            // scroll pane to match.
            centerScrollPane.getRowHeader().addChangeListener(new ChangeListener() {
                public void stateChanged(ChangeEvent e) {
                    JViewport viewport = (JViewport) e.getSource();
                    int extentHeight = viewport.getExtentSize().height;
                    int viewHeight = viewport.getViewSize().height;
                    int value = Math.max(0, Math.min(viewport.getViewPosition().y, viewHeight - extentHeight));
                    centerScrollPane.getVerticalScrollBar().setValues(value, extentHeight, 0, viewHeight);
        public static void main(String[] args) {
            RowHeaderColumnFooterTableExample rowHeaderColumnFooterTableExample = new RowHeaderColumnFooterTableExample();
            rowHeaderColumnFooterTableExample.setSize(300, 300);
            rowHeaderColumnFooterTableExample.setLocation(300, 200);
            rowHeaderColumnFooterTableExample.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            rowHeaderColumnFooterTableExample.setVisible(true);
    }null
    Message was edited by:
    NY_Consultant
    Message was edited by:
    NY_Consultant

    Just for reference, you can also check here for a RowHeader example
    http://www.crionics.com/products/opensource/faq/swing_ex/JTableExamples1.html
    and here for a column footer (or total row)
    http://www.crionics.com/products/opensource/faq/swing_ex/JTableExamples3.html
    as well as numerous other useful ideas. The source can also be found at
    http://www.physci.org/codes/tame/
    though without the screen shots.

  • HTMLClient/UserCode table.lsml.js Created code VS. Server table.lsml.cs Created code?

    Is there a precedence order between these to sets of Created functions (Server _Created, then HTMLClient .created)?
    Do I need both types of Created functions?  Or is that just duplicating code to inits in both?
    Thanks.

    Hi KMHaynes,
    For this issue, you need understand how Lightswitch works in presentation layer and logic layer. See:
    LightSwitch Presentation Layer
    LightSwitch Logic layer
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Adobe does not recognize footers in Microsoft Word 2007 to PDF

    I have copied and pasted the details, below, from a previous message I have sent out to an assistive technology listserv.
    I am encountering this problem with various builds and versions of Adobe Acrobat:
    Acrobat X on a Windows Vista 64-bit build (note that this is the best Acrobat I can install on Windows Vista, Adobe Reader XI is not even supported)
    Acrobat X on a Windows XP build, sorry, do not know the bit count (it is my work computer so I can't upgrade anything)
    Acrobat 9 on a Windows 7 64-bit build.
    I have also encountered and checked into whether or not the PDF reads (and does what I want it to) in JAWS 14, latest update (Feb 2013). We encounter the same problem with JAWS and this morning found out that there is a conversion error between Word and Adobe. (See this post, where the ---- are).
    Summary, I have spoken with JAWS, put out a support ticket with NVDA via e-mail, spoken with Microsoft, and tried to communicate with Adobe about this issue for help and Adobe is refusing to help. The other places tried everything they knew but they could not get it to work. I even tried to strip all the page numbers from Word and number using Adobe's page numbering feature, but that was not successful either because I cannot use Roman numerals.
    I would appreciate any feedback the Adobe Forums can give me; please note that I cannot post a sample document at this time as the only document I have is a private work document (cannot share those by policy, so I will have to make up a fake document if I get the time and energy).
    Thank you very much for your time and expertise. The pertient info is above and below in "Original Message" and "Activities section" - the other information is there if you'd like to look. And to provide feedback to Adobe about things I think they could improve, since they will not let me email them directly.
    ----Original Message----
    My question concerns the reading of Footers / Headers in Microsoft Word 2007 and Adobe Acrobat (headers/footers designed in Microsoft Word 2007 and then converted to PDF with "Bookmark" checked in Adobe Acrobat conversion settings).
    The document is a word document containing 50+ pages. There are 12 pages of "front matter" that are marked with Roman numerals. Subsequently, the body text of the document has an Arabic number (1, 2, 3, 4, etc.) in the bottom right corner. Footers are used properly in the document. All Table of Contents links, which do link to both headings in the "front matter" and to headings in the body text, are picked up properly. Literately, the only thing not reading on the document are page numbers (the Word Status bar is reading its page numbers, but the page numbers in the footer are not reading).
    I then need to convert the document to Adobe Acrobat PDF. Granted, I have a full copy of Adobe Acrobat X available to me, and my various assistive technologies have always functioned better when opened directly in Acrobat (rather than Adobe Reader). So, I set the accessibility options (from Word) properly, asking it to bookmark Headers and Footers as appropriate, thinking that this will pick up the page numbers and make them read as the bottom right corner of my PDF.
    All links work in Adobe to navigate by section/heading. All figures are alt tagged. Everything is perfect - but the one thing that NVDA won't read are the page numbers. Visually, the page numbers are there on the document, but NVDA won't pick them up. Additionally, I also changed the appropriate page numbers in Adobe (Page Thumbnail Pane, on the Navigation Pane I believe it is called) - to reflect the section where it is Roman numerals and Arabic numerals. This did not help, and for what it is worth, I cannot get NVDA to voice when I am in this pane, so I don't seem to have a chance of getting the page number info from there.
    NVDA reads the document just fine except for the above-mentioned snare. However, when it reads, it will go to the next page, and say, "Page 2 of 54, (page text), Page 3 of 54 (page text)," etc. when I will need it to say Page ii of 54 (page text), Page iii of 54 (page text)," and so on, changing to "Page 1" when the Arabic numbers are used.
    I know that the Page Label issue is part of Adobe's issue, with them not releasing the PageLabel aspect. (I have looked through some NVDA tickets). I do not know how to put a "changeset" into my copy of NVDA though, or even if it would help (I have no computer scripting skill). The easy answer would be to upgrade to Adobe Reader XI and see if that helps, but I don't have the ability to put it on every computer I use, and *I need this file to read consistently across multiple versions of Adobe* (including Adobe Reader/Acrobat 9, X, and XI). (This file is also going out to people who may not have the latest version of Adobe, but are also running some copy of NVDA, either a portable or a full install).
    Is there any way to pick up the Footers with page numbers voicing in NVDA, and/or have it read the user-editable page number box that is on Adobe's Toolbar (next to the 1 of 54 parentheses). This user-editable box, to jump to page numbers, reflects the Roman numerals I have loaded into the pages of Adobe. When I press Ctrl+Shift+N in Adobe, I can also go to the appropriate page (if I type in iii, it will take me to iii, if I type in 34, it will take me to the Arabic number 34 -- NOT the 34 of 54, which would land me on a different page. And I want to land on the page that has the Arabic 34, so that's functioning fine.
    I just need the page numbers in the footer to voice, "Page iii," or "Page iv," or "Page 29," etc. If I could get NVDA to do that, I could say to viewers of this document, "If you are using NVDA, remember to Ctrl+Shift+N to get the GoTo Box, then type in the page number you want if you cannot follow a link or a bookmark." This document is *very* accessible in my opinion with lots of ways to navigate...the only aspect of navigation that isn't being picked up are those footer page numbers!
    I do have my Document Formatting settings on the NVDA menu set to "Report Headers," but that does not seem to help in either Microsoft Word 2007 or Adobe Acrobat. I have even switched the page numbers from the footer to the header to see if that would help and it didn't.
    ----Activities I have done today----
    I spent over an hour on the phone today with Freedom Scientific (makers of JAWS) trying to troubleshoot this. We discovered that Footers will not read very well in JAWS and Microsoft Word 2007 (only solution is to stop reading document text and read Virtual Viewer text briefly, then go back out to document text, then back into Virtual Viewer which is NOT an acceptable or accessible solution whatsoever -- too much work for someone trying to read the document) -- and then we also discovered that:
    Upon conversion from Word 2007 to .txt file (.docx to .txt), there are no alt tags for the figures in the document, or page numbers.
    Upon conversion from Word 2007 to Adobe Acrobat X then to .txt file, every insert of a page number and footer is replaced with the same alt numberpad numerical code: the one that generates female. ♀No wonder JAWS and NVDA are skipping this, neither understand how to communicate it.
    On the advice of JAWS Technical Support I contacted Microsoft Accessibility Technical Support and spent an hour on the phone with them. They say that unless Adobe can find a solution, it appears that it is impossible for Microsoft products to read the footer if JAWS was unsuccessful doing what I wanted it to do. The document/footer in question includes about 12 pages of front matter (numbered in Roman numerals) and 44 pages of body text (numbered in Arabic numerals).
    I kindly explained to the Microsoft Support Agent that I found this issue hard to believe, although I understood. Sighted folks have the ability to make their documents look quite professional and that is the caliber and quality of documents anticipated from everyone, especially college students graduating from school, or job applicants. That a coding issue prevents the footer from being read properly, except in Edit view, is disappointing. The representative was with me 100% of the way. She completely understood where I came from. And yes, when I am designing the document myself, I know what I put there (or I pretty much do, anyway). But if I recieve a document, it is much harder to tell what is really there or not, or how the page numbers really lay. And this is confusing as heck, believe me.
    I then called Adobe Technical Support, after having a brief online chat with them. Granted, I had to leave the chat in the middle because I got interuptted by something that was high-priority, but the woman chatting from Adobe says that chat is only for installation issues, and I will have to pay to open a support ticket. Excuse me? I have paid a hefty sum of money for Adobe Acrobat 9 and Adobe Acrobat X (work paid for the other Acrobat X copy). I deserve this problem to be troubleshooted for free. There was even a statement on the Adobe Acrobat X website that said Acrobat X users didn't have to pay for support, but Reader users did.
    ----Slight bit of rant and constructive criticism----
    In speaking with Adobe Technical Support, I had to wait on hold for 30 minutes before my call was answered, and then I had to consent to being on hold countless times and had to answer, "Yes, I am converting from Word 2007 to PDF using Adobe Acrobat X" at least 6 times. The representative would put me on hold, then ask me the question, then put me on hold again, repeated 6 times over 45 minutes. At the end of 45 minutes (1 hour and 20 minutes of wasted time by now, that I must justify to my employer) - I told the representative I wanted to speak with his supervisor immediately, I did not care if he was trying to fill out a support ticket (and putting me on hold at least 4 more times in 10 minutes while he claimed he was filling out the support ticket) - and finally he put me on hold again and gave me to a very helpful supervisor. Within 6 minutes of speaking with the supervisor the supervisor had my support ticket filled out and I should recieve a call from Adobe within the next 30 minutes if his estimation was right (he estimated two hours, but it's been an hour and a half).
    I have yet to know what can be done about my document. Freedom Scientific Technical Support is closed now for the day and I need to work tomorrow and Friday away from the phone. As I stated to Microsoft Accessibility Support, I truly feel that Adobe should read the page footers, every document says that Adobe should be able to read the page footers, and I feel slighted that as a person who uses assistive technology, there is some glitch that isn't making this happen. I am not blaming a specific place per se, except I am a little frustrated with Adobe especially since they have not gotten back to me, and I am frustrated with their customer service. JAWS customer service and Microsoft customer service were both exemparly, and I cannot say enough good things about them. My wasted time with Adobe however, that was disrespect in my opinion. And I certainly will not pay to open a support ticket, and my workplace has a site license. They've paid enough already.
    If you've read this far, thank you. I look forward to replies, or at least understanding. And if anyone has ideas, I'd appreciate it very much (yes, I have tried taking the page numbers off and using Adobe's page number feature, but that would not allow Roman numerals. Only Arabic.).

    Greetings NoNameGiven,
    If I understand the problem correctly (I’m not sure I do) you would prefer ‘iii’ to be read as “eye eye eye” rather than “three”? The alt text property is the only way that I know of to make this happen. Hope this helps.
    a ‘C’ student

  • Print a JTable with several Header and Footers

    Hi everybody,
    my name is Lothar and I come from Germany. My english is not very well, but I hope you understand me an my problem.
    I want to print a JTable, but I want to print a header with several headers and footers.
    For example:
    h3. Header
    h5. 1. Subtitle
    h5. 2. Subtitle
    Table
    h5. 3. Subtitle
    h5. Footer
    But, I do not know how I can do that. Can anybody tell me, how I can solve my problem. Please, explain for a newbie because I have learned Java since two months ;)
    Here the code:
    import java.awt.*;
    import java.awt.event.*;
    import java.text.*;
    import java.util.Date;
    import javax.swing.*;
    public class Beispiel extends JFrame implements ActionListener {
        private JTable table;
        public static void main(String[] args) {
            Beispiel tl = new Beispiel();
            tl.setVisible(true);
            tl.pack();
        public Beispiel() {
            setLayout(new BorderLayout());
            // DruckButton
            JButton print = new JButton("Print");
            add(print, BorderLayout.SOUTH);
            print.addActionListener(this);
            // Tabelle
            add(new JScrollPane(createTable()), BorderLayout.CENTER);
            // schlie&szlig;t das Frame
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        public JTable createTable() {
            // titel
            String[] title = new String[] { "Datum", "Von", "Bis",
                    "Dauerinsgesamt", "Bemerkung" };
            // daten
            String[][] data = new String[][] { { "", "", "", "", "" },
            table = new JTable(data, title);
            table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
            return table;
        public void actionPerformed(ActionEvent e1) {
            MessageFormat header = new MessageFormat("Header");
            MessageFormat footer = new MessageFormat("Footer");
            try {
                table.print(JTable.PrintMode.FIT_WIDTH, header, footer);
            } catch (Exception e2) {
                System.err.format("Cannot print %s%n", e2.getMessage());
    }

    Nobody?
    Can nobody solve my problem?

  • One-to-many table linking

    Hi all,
    I'm trying to write a report with multiple one-to-many table links.  The issue is I only want a single record from the linked tables.  The main table is an item table and the linked tables are issue and receipt.  I want to display information from the last issue record and the last receipt record along with the item information.  Not sure how to restrict the joins to just a single record (also need to sort desc on dates in the linked tables).  Does this require the use of a view? or a custom sp?
    Thanks for taking your time to help.
    Kevin

    To bring back a single record then you will probably need to use a View , command or SP.
    However, in Crystal you can bring back multiple records and only display the record you want. The easiest way will be to group
    Data on Date and then Item code.
    Place the data you want to see in in Item group footer and suppress details and all other Group headers and footers.
    To get receipt date just use a maximum summary of receipt date in item group footer
    Ian

  • InDesign CS6 ePub Export : Tables with header and footer in HTML

    Hey there,
    does anyone know, whether InDesign CS6 also exports Table Headers and footers correctly into the XHTML-File of the ePub.
    What I mean, is whether the elements <thead> and <tfoot> are created?
    Or is it only possible to steer this via the CSS-Classnames which can be given in the tableformats?
    Generally I think it would be better if the user had the chance to map other exporttags to its elements than just p, em, strong, h1-h6.
    it would be useful to also put in other elements by hand.
    Best regrads.

    Magnolee2 wrote:
    does anyone know, whether InDesign CS6 also exports Table Headers and footers correctly into the XHTML-File of the ePub.
    What I mean, is whether the elements <thead> and <tfoot> are created?
    By "also", do you mean the behavior is changed with respect to CS5/CS5.5? In those, thead and tfoot are created correctly. (Although, quite disconcerting, in the order "thead / tfoot / tbody". ePub renderers based on Webkit display them correctly nevertheless, but others do not. An extremely annoying free interpretation of the W3C rules.)

  • How to filter the data in different sections (e.g. Report Footers)?

    Hi,
    I am using Crystal Reports 11 to generate cross-tables.
    I plan to generate 3 cross-tabs, and each cross-table will be put in a section. For example, cross-tab1 in Report Footer a; cross-tab2 in Report Footer b; cross-tab3 in Report Footer c.
    I know use "Select Expert" to filter data. But, it seems that "Select Expert" filters data for the whole report.
    I want to filter the data for each cross-table separately. For example, filter cross-tab1 based on condition1; filter cross-tab2 based on condition2; filter cross-tab3 based on condition3.
    How to filter the data in different sections (e.g. Report Footers)?
    Thank you in advance.

    Hi,
    Now that you've inserted the subreport just right-click the sub-report and click Edit. The Design page for sub-report should open up.
    You can now insert the cross-tab on the Report Header and insert a record selection formula of your choice.
    Also, suppress all the other sections of the subreport so the Main report only shows the crosstab without any spaces.
    Do the same for all the subreports.
    -Abhilash

  • How do i print a table on odd pages leaving the same space in the even page

    Hi,
    I have created an RTF for Invoice Printing and the invoice will be physically printed (hard copy using printer) on both sides of the paper.
    I now have a table/section to be printed only on the first page and the second page should be printed without this header (the header should be displayed as space).
    How do i use even and odd page printing for this? I can send you the xml file and rtf file, could you please help me to achieve this?
    Thanks,
    Kesava

    Guessing here
    In the RTF the first page has whatever you were going to put on it.
    On the second page you put your invoice format/field codes etc.
    I am assuming you are using a for-each at the begining of each invoice?
    If the invoice is fixed length, then make the invoice two pages long before you finish the first for-each group.
    for-each
    page of invoice + blank page
    page break
    end for-each
    Headers and footers might get in the way.

Maybe you are looking for

  • Combined audio & video from iMac mini DVI & headphone ports to HDMI to TV

    I presently have my iMac connected to my Sony Bravia tv so that the video goes from the mini DVI port through a converter to HDMI to a 25 foot cable, a HDMI coupler and another 25 foot cable to the TV. The video quality is good since I use 24 AWG cab

  • Best method for building a project with multiple video tracks

    I'm working a project where a client wants some edits made to an existing DVD they had - some video tweaks but mostly menu changes. I'm rebuilding the menus from scratch and I've ripped all the video files from the DVD (there are about 80 of them on

  • The state information is invalid for this page and might be corrupted.

    Hi all, I have a problem. I want replicate an effect "infity scroll". So I have an aspx page with inside an user control that load some row. When capture scroll event I want to load another user control with some other rows.  This is correct for me,

  • IPhoto 7.1.4 crashed after upgrade

    I just use Software Update to upgrade my iPhoto, and it crashed every time I try to open it. Host Name: blackDate/Time: 2008-08-03 10:31:39.898 -0400OS Version: 10.4.11 (Build 8S2167)Report Version: 4Command: iPhotoPath: /Applications/iPhoto.app/Cont

  • MM03- Legal Control Tab (Foreign Trade export screen )

    Dear All, I need to Disable ' Legal control'  tab in Foreign Trade export screen in MM03, Could you please give Configuration Path ?? Many Thanks!! Best Regard!!! Sneha