Multiple columns in a column in a JTable

Hi,
I'm trying to have a JTable with 7 columns (for the days of the week) and in these columns I would like to have 6 columns in each column - which in the end will be drop down boxes.
Does anybody know if this is possible (I hope I've explained it ok!), or know of any examples that would be useful??
Please help, thanks in advance!!

Hi, thanks for the site - but I have tried to run the code which will do what I require - however it will not compile as it states that the import jp.gr.java_conf.tame.swing.table.*; does not exist.
Does anyone know where I can get this from or how I change the code so I don't have to use this import?? I have tried removing it and it compiles, but it falls over on run time.
Thanks in advance.

Similar Messages

  • Multiple column sorting in JTable

    There is way to release multiple column sorting in JTable.
    ADF/SWing, Jdev 10.1.3

    I do not know that there is, but it would be really nice!
    regards,
    mario udina

  • Multiple column  sorting on JTable data

    if any body can please send an example code how multiple column sorting can be done on table data.
    condition:- one column should sort in ascending order another column in descending order.
    am completly out of ideas it's urgent any help is greatly appritiated
    Thank's in advance
    sri

    I think the crosspost is because the OP was advised to post it in the Swing forum instead (it would've been nice to see the original post closed as well, though). Anyway...
    Have you got your table sorting using one column? If so, how have you achieved that (eg, are you using Java 6)?
    All you're after is a stable sorting algorithm so that any elements that are the same in the new sorting scheme stay in the same position relative to each other. Then you can just sort by "Column B" then "Column A" to achieve multiple column sorting. I believe that Collections.sort is stable and therefore any sorting approach based on that should be easily modifiable to do what you want.
    Hope this helps.

  • Selecting multiple columns in a jtable

    whats up java programmers,
    i have a problem. i have a jtable with 8 columns. i set a mouse listener to the headers so when i click on one that column underneath the header is highlighted. my problem when i click on one header and then click on another both columns do not stay highlighted. can anyone help please
    matt
    [email protected]

    only way I know is to use
    setColumnSelectionInterval
    and
    addColumnSelectionInterval
    to specifiy which columns.

  • JTable: Multiple Columns to Single Header

    Hi
    How is it possible to allocate multiple columns in a JTable to the one header.
    I retrieve a resultset from a DB. At present 'firstname' and 'lastname' go into separate columns with separate headers.('firstname' and 'lastname')
    I would like to either combine 'firstname' and 'lastname' then add to the table as one column, or, leave 'firstname' and 'lastname' as is and combine the headers of these columns.
    Not sure how to go about this...
    Any help would be appreciated,
    Thanks
    Gregg

    Look at http://www2.gol.com/users/tame/

  • Move multiple columns in jtable

    I have multiple tab and each tab have a table with multiple columns. I move like this for example-
    col1 col2 col3 col4 col5 col6 col7 col8 col9
    after columns move
    col2 col1 col3 col5 col4 col6 col8 col7 col9
    I save table and get it, it works fine. But when i move columns like this-
    col4 col3 col5 col1 col6 col2 col7 col8 col9
    it never work as i save and get table. please tell what's wrong in below code.
    here are the codes-
    Table save code-
    try {
      Map<String, Map<String, Vector<Object>>> tableMap = new HashMap<String, Map<String, Vector<Object>>>();
      private static Map<String, Object> tables = new HashMap<String, Object>();
      Set<String> tabNames = tables.keySet();
      for (String tabName : tabNames) {
      JTable tab = (JTable) tables.get(tabName);
      Map<String, Vector<Object>> colNameValues = new HashMap<String, Vector<Object>>();
      Enumeration<TableColumn> tabCols = tab.getColumnModel()
      .getColumns();
      while (tabCols.hasMoreElements()) {
      Vector<Object> colums = new Vector<Object>();
      TableColumn col = tabCols.nextElement();
      int modelIndex = col.getModelIndex();
      int viewIndex = tab.convertColumnIndexToView(modelIndex);
      String field = Utils.toString(col.getIdentifier());
      Integer width = col.getWidth();
      if (isTableSelected) {
      boolean visible = !(viewIndex == -1 || col.getWidth() == 0);
      colums.add(visible); // pos 0 visible
      colums.add(field); // pos 1 field
      colums.add(width); // pos 2 width
      colums.add(modelIndex); // pos 3 model index
      colums.add(tab.convertColumnIndexToView(modelIndex)); // pos
      // 4
      // view
      // index
      colNameValues.put(field, colums);
      tableMap.put(tabName, colNameValues);
      if (dataStore.isColumnsSelected()) {
      if (personalizedDataStore != null) {
      Map<String, Map<String, Vector<Object>>> mapOld = personalizedDataStore
      .getInstructionTable();
      if (mapOld != null) {
      if (mapOld.size() > 0) {
      Set<String> oldTabNames = mapOld.keySet();
      for (String oldTabName : oldTabNames) {
      if (!tableMap.containsKey(oldTabName)) {
      tableMap.put(oldTabName,
      mapOld.get(oldTabName));
      dataStore.setInstructionTable(tableMap);
    code for get Table-
    private void applyPesonalizeSettings(String tabName, JTable tab) {
      if (!" ".equals(tabName)) {
      if (personalizedDataStore != null) {
      Map<String, Map<String, Vector<Object>>> oldTables = personalizedDataStore
      .getInstructionTable();
      for (int viewIndex = 0, count = tab.getRowCount(); viewIndex < count; viewIndex++) {
      if (oldTables != null) {
      Map<String, Vector<Object>> oldTabCols = oldTables
      .get(tabName);
      Enumeration<TableColumn> tableColumns = tab
      .getColumnModel().getColumns();
      while (tableColumns.hasMoreElements()) {
      TableColumn col = tableColumns.nextElement();
      String field = Utils.toString(col.getIdentifier());
      if (oldTabCols != null) {
      if (oldTabCols.containsKey(field)) {
      boolean vis = (Boolean) oldTabCols.get(field)
      .get(0);
      int prefWidth = (Integer) oldTabCols.get(field)
      .get(2);
      int modelInd = (Integer) oldTabCols.get(field)
      .get(3);
      int viewInd = (Integer) oldTabCols.get(field)
      .get(4);
      // setting visible
      if (!vis) {
      tab.getColumn(field).setMinWidth(0);
      tab.getColumn(field).setMaxWidth(0);
      tab.getColumn(field).setPreferredWidth(0);
      } else {
      // setting column width
      tab.getColumn(field).setPreferredWidth(
      prefWidth);
      // setting index
      if (modelInd != viewInd) {
      tab.moveColumn(
      tab.convertColumnIndexToView(modelInd),
      viewInd);
    here is the code for set table change property with popup-
    @Override
      protected void doOK() {
      Map<String, Vector<Object>> labelAndRow = new HashMap<String, Vector<Object>>();  //req 22
      for (int viewIndex = 0, count = super.getRowCount(); viewIndex < count; viewIndex++) {
      Vector<Object> row = super.getRow(viewIndex);
      boolean visible = (Boolean) row.get(0);
      String label = (String) row.get(1);
      String field = (String) row.get(2);
      labelAndRow.put(field,row); //req 22
      Integer modelIndex = (Integer) row.get(3);
      Integer width = (Integer) row.get(4);                              
      TableColumn col = jxtable.getColumn(field);
      if (visible) {
      if (width <= 0) {
      width = 75;
      if (width != col.getWidth()) {
      col.setMinWidth(15);
      col.setMaxWidth(1000);
      col.setPreferredWidth(width);
      } else {
      col.setMinWidth(0);
      col.setMaxWidth(0);
      col.setWidth(0);
      col.setPreferredWidth(0);
      col.setHeaderValue(label);
      jxtable.moveColumn(jxtable.convertColumnIndexToView(modelIndex), viewIndex);
      jxtable.moveColumn(jxtable.convertColumnIndexToView(modelIndex), viewIndex);
      super.dispose();
      for (TableColumn col : (List<TableColumn>) jxtable.getColumns()) {
      int modelIndex = col.getModelIndex();
      int viewIndex = jxtable.convertColumnIndexToView(modelIndex);
      String label = Utils.toString(col.getHeaderValue());
      String field = Utils.toString(col.getIdentifier());
      Integer width = col.getWidth();                       
      boolean visible = !(viewIndex == -1 || col.getWidth() == 0);
      dialog.getTableModel().addRow(new Object[]{visible, label, field, modelIndex, width});
      dialog.setVisible(true);

    I have multiple tab and each tab have a table with multiple columns. I move like this for example-
    col1 col2 col3 col4 col5 col6 col7 col8 col9
    after columns move
    col2 col1 col3 col5 col4 col6 col8 col7 col9
    I save table and get it, it works fine. But when i move columns like this-
    col4 col3 col5 col1 col6 col2 col7 col8 col9
    it never work as i save and get table. please tell what's wrong in below code.
    here are the codes-
    Table save code-
    try {
      Map<String, Map<String, Vector<Object>>> tableMap = new HashMap<String, Map<String, Vector<Object>>>();
      private static Map<String, Object> tables = new HashMap<String, Object>();
      Set<String> tabNames = tables.keySet();
      for (String tabName : tabNames) {
      JTable tab = (JTable) tables.get(tabName);
      Map<String, Vector<Object>> colNameValues = new HashMap<String, Vector<Object>>();
      Enumeration<TableColumn> tabCols = tab.getColumnModel()
      .getColumns();
      while (tabCols.hasMoreElements()) {
      Vector<Object> colums = new Vector<Object>();
      TableColumn col = tabCols.nextElement();
      int modelIndex = col.getModelIndex();
      int viewIndex = tab.convertColumnIndexToView(modelIndex);
      String field = Utils.toString(col.getIdentifier());
      Integer width = col.getWidth();
      if (isTableSelected) {
      boolean visible = !(viewIndex == -1 || col.getWidth() == 0);
      colums.add(visible); // pos 0 visible
      colums.add(field); // pos 1 field
      colums.add(width); // pos 2 width
      colums.add(modelIndex); // pos 3 model index
      colums.add(tab.convertColumnIndexToView(modelIndex)); // pos
      // 4
      // view
      // index
      colNameValues.put(field, colums);
      tableMap.put(tabName, colNameValues);
      if (dataStore.isColumnsSelected()) {
      if (personalizedDataStore != null) {
      Map<String, Map<String, Vector<Object>>> mapOld = personalizedDataStore
      .getInstructionTable();
      if (mapOld != null) {
      if (mapOld.size() > 0) {
      Set<String> oldTabNames = mapOld.keySet();
      for (String oldTabName : oldTabNames) {
      if (!tableMap.containsKey(oldTabName)) {
      tableMap.put(oldTabName,
      mapOld.get(oldTabName));
      dataStore.setInstructionTable(tableMap);
    code for get Table-
    private void applyPesonalizeSettings(String tabName, JTable tab) {
      if (!" ".equals(tabName)) {
      if (personalizedDataStore != null) {
      Map<String, Map<String, Vector<Object>>> oldTables = personalizedDataStore
      .getInstructionTable();
      for (int viewIndex = 0, count = tab.getRowCount(); viewIndex < count; viewIndex++) {
      if (oldTables != null) {
      Map<String, Vector<Object>> oldTabCols = oldTables
      .get(tabName);
      Enumeration<TableColumn> tableColumns = tab
      .getColumnModel().getColumns();
      while (tableColumns.hasMoreElements()) {
      TableColumn col = tableColumns.nextElement();
      String field = Utils.toString(col.getIdentifier());
      if (oldTabCols != null) {
      if (oldTabCols.containsKey(field)) {
      boolean vis = (Boolean) oldTabCols.get(field)
      .get(0);
      int prefWidth = (Integer) oldTabCols.get(field)
      .get(2);
      int modelInd = (Integer) oldTabCols.get(field)
      .get(3);
      int viewInd = (Integer) oldTabCols.get(field)
      .get(4);
      // setting visible
      if (!vis) {
      tab.getColumn(field).setMinWidth(0);
      tab.getColumn(field).setMaxWidth(0);
      tab.getColumn(field).setPreferredWidth(0);
      } else {
      // setting column width
      tab.getColumn(field).setPreferredWidth(
      prefWidth);
      // setting index
      if (modelInd != viewInd) {
      tab.moveColumn(
      tab.convertColumnIndexToView(modelInd),
      viewInd);
    here is the code for set table change property with popup-
    @Override
      protected void doOK() {
      Map<String, Vector<Object>> labelAndRow = new HashMap<String, Vector<Object>>();  //req 22
      for (int viewIndex = 0, count = super.getRowCount(); viewIndex < count; viewIndex++) {
      Vector<Object> row = super.getRow(viewIndex);
      boolean visible = (Boolean) row.get(0);
      String label = (String) row.get(1);
      String field = (String) row.get(2);
      labelAndRow.put(field,row); //req 22
      Integer modelIndex = (Integer) row.get(3);
      Integer width = (Integer) row.get(4);                              
      TableColumn col = jxtable.getColumn(field);
      if (visible) {
      if (width <= 0) {
      width = 75;
      if (width != col.getWidth()) {
      col.setMinWidth(15);
      col.setMaxWidth(1000);
      col.setPreferredWidth(width);
      } else {
      col.setMinWidth(0);
      col.setMaxWidth(0);
      col.setWidth(0);
      col.setPreferredWidth(0);
      col.setHeaderValue(label);
      jxtable.moveColumn(jxtable.convertColumnIndexToView(modelIndex), viewIndex);
      jxtable.moveColumn(jxtable.convertColumnIndexToView(modelIndex), viewIndex);
      super.dispose();
      for (TableColumn col : (List<TableColumn>) jxtable.getColumns()) {
      int modelIndex = col.getModelIndex();
      int viewIndex = jxtable.convertColumnIndexToView(modelIndex);
      String label = Utils.toString(col.getHeaderValue());
      String field = Utils.toString(col.getIdentifier());
      Integer width = col.getWidth();                       
      boolean visible = !(viewIndex == -1 || col.getWidth() == 0);
      dialog.getTableModel().addRow(new Object[]{visible, label, field, modelIndex, width});
      dialog.setVisible(true);

  • JTextAreaCellRenderer to wrap text in multiple columns... any better way?

    I would like to use a basic JTextArea cell renderer to wrap the text in a JTable cell, like in this thread
    http://forum.java.sun.com/thread.jspa?threadID=664671&messageID=3893724
    Although the technique works, a disadvantage is that it cannot be used "as is" for multiple columns due to the setRowHeight/revalidate issue. One suggested workaround was to keep track of the maximum row height, as described here:
    http://www.javaspecialists.co.za/archive/newsletter.do?issue=106
    Both seem a bit rough. Are there any other options or more efficient techniques for automatically wrapping text in a JTable cell?

    Hello, did you search online? there are many tutorials like this one: http://www.photoshopessentials.com/photoshop-text/text-effects/text-wrap/
    You simply create a path, substract the parts you do not need, then click with the text tool inside.
    Note that it is not a dynamic text wrap, you need to change it if you move the objects around.

  • Multiple Column in JLIst

    Hi friend,
    Please could u tell me how can i make a multiple Column in a JList without using JTable. It would be better if u send me a complete code for that.
    Thanks u very much in Advance.
    Khaled Mahmud

    First of all I would like to thank u for reply.
    I have searched through the Forums but I could not get any solution.
    Actually, I have a code for Multi Column JList but that was made up using JTable.
    But I want a Multi Column JList which is made up without using JTable.

  • Multiple column sorting.

    How does one sort multiple columns( date, String, time etc...). I want to sort by date where two dates can be alike as well. I could use HashMap for that reason.
    Please help.
    Thanks in advance.

    Hi,
    A demo of the comparator class is given below. I've tried to put it into the table class.
    import java.util.*;
    import javax.swing.*;
    import java.awt.BorderLayout;
    import java.awt.event.*;
    import javax.swing.table.*;
    import javax.swing.event.*;
    class MultipleColumnSortTest
         MultipleColumnSortTest()
              JFrame frame = new JFrame("MultipleColumnSortTest");
              frame.setBounds(10,10,750,550);
              Vector fieldNames = new Vector();
              fieldNames.add("Dates");
              fieldNames.add("Strings");
              Vector dataVector = new Vector();
              for(int i = 0; i < 5; ++ i)
                   Vector row = new Vector();
                   row.add(new Date());
                   row.add("abc" + i%2);
                   dataVector.add(row);
              final SortableDataVector tableModel = new SortableDataVector(dataVector,fieldNames);
              int [] sortIndices = new int[2];
              sortIndices [0] = 0 ;
              sortIndices [1] = 1 ;
              tableModel.setSortPriority(sortIndices);
              JTable table = new JTable(tableModel);
              JScrollPane scrollpane = new JScrollPane(table);
              frame.getContentPane().add(scrollpane);
              JButton button = new JButton("Sort Data");
              frame.getContentPane().add(button,BorderLayout.SOUTH);
              button.addActionListener(new ActionListener()
                   public void actionPerformed(ActionEvent event)
                        tableModel.setAscendingOrder(!tableModel.isAscendingOrder());
                        tableModel.sort();
              frame.setVisible(true);
         public static void main(String [] args)
              MultipleColumnSortTest appln = new MultipleColumnSortTest();
    class SortableDataVector extends DefaultTableModel implements Comparator
         private int [] indices;
         private boolean isAscendingOrder;
         public SortableDataVector(Vector dataVector, Vector fieldNames)
              super(dataVector,fieldNames);
              setAscendingOrder(true);
         public void setAscendingOrder(boolean b)
              isAscendingOrder = b;
         public boolean isAscendingOrder()
              return isAscendingOrder;
         public void setSortPriority(int [] indices)
              this.indices = indices;
         public int compare(Object o1,Object o2)
              int comparisonResult = compareAscending(o1,o2);
              if(!isAscendingOrder)
                   if(comparisonResult < 0)
                        comparisonResult = 1;
                   else if (comparisonResult > 0)
                        comparisonResult = -1;               
              return comparisonResult;
         private int compareAscending(Object o1, Object o2)
              int comparisonResult = 0;
              if((o1 == null)&&(o2 != null))
                   comparisonResult = -1;
              else if((o1 != null)&&(o2 == null))
                   comparisonResult = 1;
              else if((o1 != null)&&(o2 != null))
                   List firstRow = (List)o1;
                   List secondRow = (List)o2;
                   for(int i = 0; ((i < indices.length)&&(comparisonResult == 0)); ++i)
                        if(indices[i] < firstRow.size())
                             comparisonResult =
                                  DatatypeSensitiveComparator.compare(
                                       firstRow.get(indices),
                                       secondRow.get(indices[i]));
              return comparisonResult;
         public boolean equals(Object obj)
              if(obj == null)
                   return false;
              return this.equals(obj);
         public void sort()
              if((indices != null)&&(indices.length > 0))
                   Collections.sort(dataVector,this);
                   fireTableChanged(new TableModelEvent(this));
    class DatatypeSensitiveComparator
         public static int compare(Object firstValue, Object secondValue)
              int comparisonResult = 0;
              if((firstValue != null)&&(secondValue == null))
                   comparisonResult = 1;
              else if((firstValue == null)&&(secondValue != null))
                   comparisonResult = -1;
              else if((firstValue != null)&&(secondValue != null))
                   Class clazz = firstValue.getClass();
                   if(!clazz.equals(secondValue.getClass()))
                        throw new IllegalArgumentException("Class are not the same ->"
                             + clazz.getName() + ":" +
                             secondValue.getClass().getName());
                   if(clazz.equals(String.class))
                        comparisonResult = ((String)firstValue)
                             .compareTo(((String)secondValue));
                   else if(clazz.equals(Date.class))
                        comparisonResult = ((Date)firstValue)
                             .compareTo(((Date)secondValue));
              return comparisonResult;

  • Multiple column list

    Dear All,
    Anybody can help me in the scenario....
    I want to display multiple columns (each column may contain multiple values) in java frame. What java control should i use? java.awt.List cannot show multiple columns. Remember the column and rows values which i want to display are not coming from database. It can be like i have an array for columns and array of row values for each column.
    I would be grateful if someone email me the solution at [email protected]
    Waiting for prompt reply.
    Thanks
    Kamran

    What about AWT.table or Swing.JTable ?

  • Comparison of multiple column values with a single column value

    I have two separate tables say Tab1 and Tab2
    I want to select some datas , which is common to both the tables.
    In tab1 , there is a column 'STATE' and it's value is 'A'
    In tab2, there are multiple columns for the state, say STATE_A,STATE_B, STATE_C ETC and a row is present with the following details
    STATE_A = 1, STATE_B =1 ,STATE_C =0,STATE_D=1
    I need to select STATE when STATE_A ='1',
    if my STATE='B', this STATE has to be selected since STATE_B =' 1', similraly
    if my STATE='D', this STATE has to be selected since STATE_D =' 1',
    If my STATE='C', STATE_C should not get selected since it's '0'.
    Is it possible to do this in a single SELECT statement, where I have some other checks also or else how can I achieve it?

    Maybe this will help
    Select * from STATE_MAS ;
    STATE
    A
    B
    D
    F
    H
    Select * from STATE_CHILD
      STATE_A   STATE_B   STATE_C   STATE_D   STATE_E   STATE_F   STATE_G   STATE_H   STATE_I   STATE_J
            1         0         0         1         1         0         0         0         0         0
    CREATE OR REPLACE FUNCTION GET_STATE (P_VAL VARCHAR) RETURN NUMBER IS
    V_SQL VARCHAR2(200);
    V_COL VARCHAR2(35);
    P_RETURN NUMBER ;
    BEGIN
    V_COL := 'STATE_'||P_VAL;
    V_SQL := 'SELECT 1 FROM STATE_CHILD WHERE '||V_COL||' = 1 ';
    EXECUTE IMMEDIATE  V_SQL INTO P_RETURN ;
    RETURN P_RETURN ;
    END;
    SELECT STATE FROM STATE_MAS
    WHERE GET_STATE(STATE) = 1 ;
    STATE
    A
    D

  • How to link Excel Chart with multiple columns dynamically?

    Hi all,
    I have one problem. I have an excel chart which has to read data from multiple columns for it's X-axis values (time stamps) and the same number of values for it's Y-axis from multiple columns. See figure attached.
    Now, you can do this by manually assigning values by holding control key to tell the chart that data from many columns is continued from the first column. i.e, a long data is distributed along may columns. This is done very easily manually.
    Now, how to do it at runtime through LabVIEW 8.0?
    Although, I have done it through labview when there where only two columns, A and B streching up to any length. But, now to save space we are dumping into many columns in the same page and want the chart plot that data as we dump it. 
    It is tough since I don't know how to assign SourceData of the chart through labview.
    I have attached chart's SourceData picture.
    Hope you all can solve my problem.
    The Y-axis values are: =(good!$B$30:$B$70,good!$D$30:$D$70,good!$F$30:$F$70,good!$H$30:$H$70,good!$B$71:$B$140,good!$D$71:$D$140,good!$F$71:$F$140,good!$H$71:$H$140,good!$B$141:$B$189)
    good is the name of the file.
    The X- axis values are: =(good!$A$30:$A$70,good!$C$30:$C$70,good!$E$30:$E$70,good!$G$30:$G$70,good!$A$71:$A$140,good!$C$71:$C$140,good!$E$71:$E$140,good!$G$71:$G$140,good!$A$141:$A$189)
    See the columns vary from A to F.
    I have still not got what I love.....
    Attachments:
    ExcelChart.JPG ‏113 KB
    SourceData.JPG ‏34 KB
    XY values.JPG ‏36 KB

    Ok i solved the excel chart problem. Here is the figure showing my victory! But offcourse with NI forum help.
    Message Edited by Halemani on 09-19-2008 06:33 AM
    I have still not got what I love.....
    Attachments:
    Chart_XValues_Values.JPG ‏36 KB

  • How to get all the values in one column of a JTable

    How to get all the values in one column of a JTable as a Collection of String.
    I don;t want to write a for loop to say getValueAt(row, 1) eg for 2nd column.

    I don;t want to write a for loop to say getValueAt(row, 1) eg for 2nd column. You could always write a custom TableModel that stores the data in the format you want it. It would probably be about 50 lines of code. Or you could write a loop in 3 lines of code. I'll let you decide which approach you want to take.

  • Crystal Report multiple columns

    I'm having trouble with Crystal Report's multiple columns in the detail section.
    The details section, the multiple columns is checked then the printing direction is across - down. Since the form I am using is a pre-printed form, by estimation it can only allow at best 30 records in one page, that is 15 in the 1st half of the column and another 15 records on the next. For visual:
    Invoice No    Invoice Date        invoice total                                               Invoice No    Invoice Date        invoice total
    1                                                                                16
    2                                                                                17
    3                                                                                .
    .                                                                                28
    14                                                                                29
    15                                                                                30
    For some reason there is this giant space after the last set of rows before it prints out the page footer. This giant blank section disrupts the layout of the page footer section.
    Here are some info on the details section as configuration is involved:
    Format with  Multiple Columns - checked
    In Paging: New Page after 30 visible Records
    In Layout: Width: 3.5 in       Height: 0.0 in
                     Horizontal: 0.0 in      Vertical: 0.0 in     
    Printing Direction: Across-Down
    Anyone knows how to suppress it or have the page footer move upwards?
    P.S To see actual pre-printed form, please download this [http://www.mediafire.com/i/?csu0q75mjynys2k]
    Edited by: Khristine Angelei  Basilla on Mar 1, 2012 8:34 AM

    Now why didn't I try that out. Actually, initial plan was 2 subreports.
    So when I added the second subreport in the group footer section, it only prints the details on the last page, which should not be the case as I need to be printed on all pages.
    I'll test it out. I'll post an update soon.
    Thanks.

  • Format on multiple columns issue ...

    Post Author: needhelptoo
    CA Forum: Formula
    I'm having issues with the way the data is displaying.I am using the Format Multiple Columns.I have 3 across set.I have the Down and Across checked.My report with the 3 columns is a custom labels sheet.I need to have the down part always be 8 columns.i can't set that anywhere like the 3 columns across.as the sheet used to print the info are labels and perforated for each label (column)I have the following:1.
    Group Header #1 on InvoiceNumber. This have my invoice header
    information related to the customer of the invoice. Keep Together
    selected.2. Group Header #2 on a formula {@sort}. This is suppressed and as  a {@reset} formula in it.3. Details section has {@accum} and section suppressed. Keep Together selected.4. Group Footer #2 as the {@display} formula with Paragraph Formatting. Keep Together selected.5. Group Footer #1 on InvoiceNumber has add'l customer related info for the invoice.so 5 sections in my design view with 2 groups.It'll display the information in InvoiceNumber order in ascending order down first.But the last one on the 1st column is only part of the invoice info and the rest of it starts from the top of the 2nd column.and
    then shifts all the columns according to that. Which of course then
    does not print on the allotted space of the actual label. part of info
    is on one and the rest on another.obviously this won't work. I think i tried everything I can think of and I'm not expert. Barely a novice at this.any help would be appreciated!

    Post Author: V361
    CA Forum: Formula
    In the layout tab, have you tried the Gap between details ?, you should be able to produce a "mailing label type" report using detail size and gap between details... 

  • I am unable to sort multiple columns in a table created in Pages.

    I had been using Appleworks up until I installed Lion and have now switched to iWork. I created a table within a Pages document and am able to sort a single column (using the Table Inspector and choosing Sort from  Edit Rows and Columns) but the Sort option is grayed out when I attempt to sort multiple columns.
    In another post, someone talked about this being a problem if you have merged fields. I do not believe I have done this (to be honest I don't know the function of merging fields).
    This is very frustrating as I was easily able to sort these tables in Appleworks.

    Sharon Anderson wrote:
    Thanks for your quick response! I have been trying that but then found that Numbers would only let me print in landscape view so I had to paste the table back into Pages. Is there a way to print in portrat view (from Numbers?)
    Not so. In the lower left corner of the window, there's an icon that looks like a piece of paper. If you see this:
    you are in Sheet View, or normal, mode. If you see this:
    You are in Print View mode. Now you see the icons for portrait and landscape modes. Click your choice. Then arrange your content to fit the pages as you wish.
    Jerry

Maybe you are looking for