Jtable - Set visible columns

Hi,
I'm trying to build an applet to edit mysql tables. I used a Jtable inside a JscrollPane but I would like to display only 3 or 4 columns at a time (I can have up to 40 !) and then let the user scrolls to the others with the horizontal scrollbar.
My problem is that all the columns are always displayed (width reduced to fit) in the scrollpane. How can I reduce the number of visible columns ?
Thanks,
Olivier
Edited by: user1721669 on 16 sept. 2012 11:06

Random guess. Don't set any size (especially, preferredSize) on the JTable if it's within a JSCrollPane.
For better help (anything less random), please post an SSCCE (http://sscce.org).
Best regards,
J.

Similar Messages

  • JTable - Setting multiple columns with different color

    Building excel type functionality in Java.
    I have a database table like this
    id PK
    min_x
    max_x
    min_y
    max_y
    color
    1. I need to create a JTable having 50 colums and 50 rows.
    2. I need to select mouse selection color.
    3. On mouse selection I have to change the Background-color or foreground-color of JTable cells and on click of save button I need to get the data in following manner column start of particular color as min_x, column end of particular color as max_x, row start of particular color as min_y, row end of particular color as max_y, and bg or foreground color.
    can some one tell me is there a way to do this. Or any other way to implement this functionality.

    Crossposted:
    http://forum.java.sun.com/thread.jsp?thread=541598&forum=422&message=2625937
    http://forum.java.sun.com/thread.jsp?thread=541597&forum=57&message=2625933
    http://forum.java.sun.com/thread.jsp?thread=541595&forum=31&message=2625929
    http://forum.java.sun.com/thread.jsp?thread=541594&forum=54&message=2625922

  • Can't set custom column widths in JTable

    I'm trying to set custom columns widths. They are set as I wish but then they are reset to default values (all columns have the same size). This is caused by method JFrame.setVisible(true) which invokes JTree.setWidthsFromPreferredWidths(). It can be investigated from following stack trace printed when a column being resized (see below).
    How to prevent this auto width sizing?
    P.S. can't override JTable.setWidthsFromPreferredWidths(); seems it's private
    table = new JTable(model) {
         public void columnMarginChanged(ChangeEvent event) {
              new Exception("stack trace").printStackTrace();
              super.columnMarginChanged(event);
    // setting here custom columns widths via table column model ...java.lang.Exception: stack trace
         at mtu.gui.TrackList$1.columnMarginChanged(TrackList.java:30)
         at javax.swing.table.DefaultTableColumnModel.fireColumnMarginChanged(DefaultTableColumnModel.java:615)
         at javax.swing.table.DefaultTableColumnModel.propertyChange(DefaultTableColumnModel.java:679)
         at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:264)
         at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:232)
         at javax.swing.table.TableColumn.firePropertyChange(TableColumn.java:249)
         at javax.swing.table.TableColumn.firePropertyChange(TableColumn.java:255)
         at javax.swing.table.TableColumn.setWidth(TableColumn.java:482)
         at javax.swing.JTable$2.setSizeAt(JTable.java:2242)
         at javax.swing.JTable$5.setSizeAt(JTable.java:2336)
         at javax.swing.JTable.adjustSizes(JTable.java:2372)
         at javax.swing.JTable.adjustSizes(JTable.java:2340)
         at javax.swing.JTable.setWidthsFromPreferredWidths(JTable.java:2250) <======
         at javax.swing.JTable.doLayout(JTable.java:2165)
         at java.awt.Container.validateTree(Container.java:1089)
         at java.awt.Container.validateTree(Container.java:1096)
         at java.awt.Container.validateTree(Container.java:1096)
         at java.awt.Container.validateTree(Container.java:1096)
         at java.awt.Container.validateTree(Container.java:1096)
         at java.awt.Container.validateTree(Container.java:1096)
         at java.awt.Container.validateTree(Container.java:1096)
         at java.awt.Container.validateTree(Container.java:1096)
         at java.awt.Container.validateTree(Container.java:1096)
         at java.awt.Container.validateTree(Container.java:1096)
         at java.awt.Container.validateTree(Container.java:1096)
         at java.awt.Container.validateTree(Container.java:1096)
         at java.awt.Container.validate(Container.java:1064)
         at java.awt.Window.show(Window.java:455)
         at java.awt.Component.show(Component.java:1134)
         at java.awt.Component.setVisible(Component.java:1089) <=====
         at mtu.gui.Test.test_03(Test.java:56)
         at mtu.gui.Test.main(Test.java:29)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.intellij.rt.execution.application.AppMain.main(Unknown Source)

    When I create the table I have code like this:TableColumn col = getColumnModel().getColumn(2);
    col.setMinWidth(width + 4);
    col.setMaxWidth((int)(width * 1.2));Works just fine for me. The setWidthsFromPreferredWidths() method will use these limits as far as I can see.
    PC&#178;

  • How can i set the column width in the jtable?

    how can i set the column width in the jtable?
    can anybody send me a simple example??

    TableColumn column = table.getColumnModel().getColumn( columnIndex );
    column.setWidth( desiredColumnWidth);
    column.setMinWidth( desiredMinColumnWidth);
    column.setMaxWidth( desiredMaxColumnWidth);

  • Restoring af:selectBooleanCheckbox value after setting visible=true

    Using JDev 11.1; I have a table that displays data from a model object, and one of the columns contains true/false values which we render in the table using an af:selectBooleanCheckbox. All works fine except that user is able to hide the table by expanding other components which sets visible=false on the bounding component for the table. If user elects to redisplay the table by reducing the other component zoom, then the table displays again but the selected check-marks/tags do not return.
    Thought initially it might've been because the query was being reissued on the table, but not so. More about the selected attribute on the af:selectBooleanCheckbox, which I have set to the default (false). So the value property is set to the table collection attribute as required to interface with the model, but I need to know what to set the selected attribute to. I can see that when the table is redisplayed, this default value of false is being sent through to the model which is discarding the values I want to retain.
    I've tried some EL in the selected property to set it to true/false based on what's in the table, but the problem with that is that it becomes essentially a read-only control. I need to find some way to disable the value assignment when making the table visible again. Any suggestions?
    Thanks,

    Andrefs,
    In ADF BC, one way we deal with this is by adding a transient Boolean attribute to the View Object with getters (translate 0/1 to false/true) and setters (vice-versa). Then, we bind the UI to the transient attribute. It's been so long since I've done EJB's, but could you take a similar approach?
    John

  • How To Set Excel Column Format Latebinding

    private void WriteToExcel(ref System.Data.DataTable dtExcel)
    //Microsoft.Office.Interop.Excel.Application oXL = null;
    //Microsoft.Office.Interop.Excel._Workbook oWB;s
    //Microsoft.Office.Interop.Excel._Worksheet oSheet;
    //SaveFileDialog SFD = new SaveFileDialog();
    //SFD.Filter = "Excel 97-2003 Workbook(*.xls)|*.xls|Excel Workbook(*.xlsx)|*.xlsx|Excel Binary Workbook(*.xlsb)|*.xlsb|" +
    //"Excel Macro-Enabled Workbook(*.xlsm)|*.xlsm";
    //SFD.ShowDialog();
    /*Cell Format Text,
    Format Excel cells to store values as text
    Formating Excel cells to text format will solve the problem of losing leading zeo values when you export data from other data sources to excel.
    Excel.Range formatRange;
    formatRange = xlWorkSheet.get_Range("a1", "b1");
    formatRange.NumberFormat = "@";
    xlWorkSheet.Cells[1, 1] = "098";
    if (dgvData.RowCount == 0)
    MessageBox.Show("GridView is Empty.");
    return;
    tlsStatus.Text = "Export To Excel Strats.... ";
    tlsStatus.ForeColor = System.Drawing.Color.DeepPink;
    prbExcelGen.Value = 0;
    prbExcelGen.Minimum = 0;
    prbExcelGen.Maximum = dgvData.RowCount;
    prbExcelGen.Step = 1;
    prbExcelGen.Refresh();
    object objApp_Late;
    object objBook_Late;
    object objBooks_Late;
    object objSheets_Late;
    object objSheet_Late;
    object objRange_Late;
    object[] Parameters;
    string[] headers = new string[dgvData .ColumnCount];
    string[] columns = new string[dgvData.ColumnCount];
    int i = 0;
    int c = 0;
    for (c = 0; c <= dgvData.ColumnCount - 1; c++)
    headers[c] = dgvData.Rows[0].Cells[c].OwningColumn.Name.ToString();
    //Convert Cell Names To A,B,C...Z , 65+C=CHR(C)=>A WHEN C=0
    i = c + 65;
    columns[c] = Convert.ToString((char)i);
    try
    // Get the class type and instantiate Excel.
    Type objClassType;
    objClassType = Type.GetTypeFromProgID("Excel.Application");
    objApp_Late = Activator.CreateInstance(objClassType);
    //Get the workbooks collection.
    objBooks_Late = objApp_Late.GetType().InvokeMember("Workbooks",BindingFlags.GetProperty, null, objApp_Late, null);
    //Add a new workbook.
    objBook_Late = objBooks_Late.GetType().InvokeMember("Add",BindingFlags.InvokeMethod, null, objBooks_Late, null);
    //Get the worksheets collection.
    objSheets_Late = objBook_Late.GetType().InvokeMember("Worksheets",BindingFlags.GetProperty, null, objBook_Late, null);
    //Get the first worksheet.
    Parameters = new Object[1];
    Parameters[0] = 1;
    objSheet_Late = objSheets_Late.GetType().InvokeMember("Item",
    BindingFlags.GetProperty, null, objSheets_Late, Parameters);
    //if (true)
    // Create the headers in the first row of the sheet
    for (c = 0; c <= dgvData.ColumnCount - 1; c++)
    //Get a range object that contains cell.
    Parameters = new Object[2];
    Parameters[0] = columns[c] + "1";
    Parameters[1] = Missing.Value;
    objRange_Late = objSheet_Late.GetType().InvokeMember("Range",
    BindingFlags.GetProperty, null, objSheet_Late, Parameters);
    //Write Headers in cell.
    Parameters = new Object[1];
    Parameters[0] = headers[c];
    objRange_Late.GetType().InvokeMember("Value", BindingFlags.SetProperty,
    null, objRange_Late, Parameters);
    // Now add the data from the grid to the sheet starting in row 2
    for (i = 0; i < dgvData.RowCount - 1; i++)
    prbExcelGen.PerformStep();
    prbExcelGen.Refresh();
    for (c = 0; c <= dgvData.ColumnCount - 1; c++)
    //Get a range object that contains cell.
    Parameters = new Object[2];
    Parameters[0] = columns[c] + Convert.ToString(i + 2);
    Parameters[1] = Missing.Value;
    objRange_Late = objSheet_Late.GetType().InvokeMember("Range",
    BindingFlags.GetProperty, null, objSheet_Late, Parameters);
    //Write Headers in cell.
    Parameters = new Object[1];
    Parameters[0] = dgvData.Rows[i].Cells[headers[c]].Value.ToString();
    objRange_Late.GetType().InvokeMember("Value", BindingFlags.SetProperty,
    null, objRange_Late, Parameters);
    //if (i == 0)
    // BoldRow(i, c, (EXL._Worksheet)objSheet_Late);
    tlsStatus.Text = "Exporting Records...." + i;
    //Return control of Excel to the user.
    Parameters = new Object[1];
    Parameters[0] = true;
    tlsStatus.Text = "Exporting Completed.";
    objApp_Late.GetType().InvokeMember("Visible", BindingFlags.SetProperty,
    null, objApp_Late, Parameters);
    objApp_Late.GetType().InvokeMember("UserControl", BindingFlags.SetProperty,
    null, objApp_Late, Parameters);
    * oWB.SaveAs(fileName, Excel.XlFileFormat.xlOpenXMLWorkbook,
    missing, missing, missing, missing,
    Excel.XlSaveAsAccessMode.xlNoChange,
    missing, missing, missing, missing, missing);
    //oWB = (Microsoft.Office.Interop.Excel._Workbook)objBook_Late;
    //oWB.SaveAs("file", EXL.XlFileFormat.xlXMLSpreadsheet, Type.Missing, Type.Missing, Type.Missing, Type.Missing, EXL.XlSaveAsAccessMode.xlNoChange, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing);
    //oWB.Save();
    catch (Exception theException)
    String errorMessage;
    errorMessage = "Error: ";
    errorMessage = String.Concat(errorMessage, theException.Message);
    errorMessage = String.Concat(errorMessage, " Line: ");
    errorMessage = String.Concat(errorMessage, theException.Source);
    MessageBox.Show(errorMessage);
    finally
    using the above code i am writing to excel sheet can some one help me to tell how can i set a column type as text 

    Thanks Forum,
    i got the answer here
    https://social.msdn.microsoft.com/Forums/windows/en-US/36340ada-e13b-41cb-a31d-fb76121aa0d2/c-exporting-text-file-to-excel-and-column-formatting-problem?forum=csharpgeneral

  • JTable:  resizing all columns as 1 column resizes

    I have a JTable with 480 columns inside of a JScrollPane (AUTO_RESIZE_ALL_COLUMNS needs to be off for the JTABLE to display correctly in the JScrollPane). When the user resizes one column I would like the rest of the columns to resize too, so that the column widths of each column are equal.
    Thank you in advance,
    Brent

    [...] I
    I have the JScrollPane listening to a histogram of the
    balances so the user can click on a month in the
    histogram and the JScrollPane (actually JViewport)
    will move to display the appropriate column in the
    JTable. If the column sizes are not uniform then I
    cannot be sure that I'm moving the JViewport to
    display the correct JTable column(s).
    I thing the GUI is a great design for what must be
    done. And thank you for your help and comments.That still sounds pretty klunky. I don't see any user navigating around a 480 column table. They click in your histogram to go to a column, they click somewhere or do keyboard navigation and the display scrolls them a few columns/rows away... they are now lost in a sea of cells and have to go back to the histogram again to try and get back, etc. Having delt with similar situations, there are better ways. Read the last two days dilbert cartoons carefully. :-)
    But anyway...
    You don't have to have all the columns the same width to make a column visible in the viewport. You can just get the appropriate column's rect by either of these methods:Rectangle r = myTable.getTableHeader().getHeaderRect( col );
    Rectangle r = myTable.getCellRect( row, col, true );And then tell the viewport to make sure that rect is visible:myViewport.scrollRectToVisible( r );Much easier than hacking around with custom column resizing logic.

  • Set default columns in af;panelCollection

    In <af:panelCollection>, the user can choose to show/hide table columns. Is it possible for me to set which columns are shown/hidden by default when the user loads the page?
    I'm using JDeveloper 11.1.1.5.0

    ... and the properties you set for the panelCollection applies to panelCollection only (of course, at runtime, changing the value through the menu items in it affects the child component - tree/table/treetable). So, as Frank mentioned, you need to hide the columns by setting its visible property.
    Check this blog to know more about what you can do with the featureOff attribute of panelCollection.
    https://blogs.oracle.com/aramamoo/entry/what_does_featureoff_attribute_do
    -Arun

  • Dynamic JTable and rendering column as JComboBox

    I originally posted this to the "Java Programming" topic, but it was suggested that I move it over here.
    I'm new to cell renderers and editors, so I'm hoping someone can put me on the right path.
    I've got a JTable that is initially empty. I've set one column to use a custom cell renderer that extends JComboBox and implements TableCellRenderer.
    The user can add rows to the table at any time, I'm using TableModel.addRow() for this. When I call addRow, I pass the entryies for the JComboBox column as a String[], with one array element for each entry in the JComboBox.
    In my custom renderer, I take the values from the array and use JComboBox.addItem() to add them to the JComboBox.
    When I run the code, it appears fine, but the JComboBox doesn't function, i.e. it is not editable (yes, the column is set as editable). I assume I need to add a custom editor. I tried
    table.setCellEditor(new DefaultCellEditor(ComboBoxCellRenderer);
    and the combobox was now editable, but it was empty and I got nullpointer exceptions.
    What am I missing?
    Any help is appreciated. Here is what I'm trying:
    **************** Constructing the table **************
    DefaultTableModel tablemodel = new DefaultTableModel(columnnames,0);
    datasourcestable = new JTable(tablemodel) ;
    // Set custom renderer for particular columns in this JTable
    ComboBoxCellRenderer renderer = new ComboBoxCellRenderer();
    TableColumn waveformscalarcolumn = datasourcestable.getColumnModel().getColumn(datasourcestable.getColumn("Title").getModelIndex());
    waveformscalarcolumn.setCellRenderer(renderer);
    // tried the following, combobox becomes editable but empty
    //waveformscalarcolumn.setCellEditor(new DefaultCellEditor(renderer));
    *************** Adding rows to the table (Event Code)*********************
    DefaultTableModel tablemodel = (DefaultTableModel)datasourcestable.getModel();
    Object[] rowdata = new Object[3];
    rowdata[0] = "gaga";
    String[] cboxentries = {"cbox entry 1","cbox entry 2"};
    rowdata[1] = cboxentries;
    rowdata[1] = "gaga"'
    tablemodel.addRow(rowdata);
    **************** Custom Cell Renderer **********************
    class ComboBoxCellRenderer extends JComboBox implements TableCellRenderer {
    public ComboBoxCellRenderer() {
    setOpaque(true);
    public Component getTableCellRendererComponent(JTable table, Object value,boolean isSelected, boolean hasFocus, int row, int column) {
    String[] stringarray = (String[]) value;
    for (int i=0; i<stringarray.length; i++){
    this.addItem(stringarray);
    return this;
    }

    Ah! Using the ArrayList of editors in getCellEditor() is very clever, that's the solution I couldn't come up with. Now I just have to remember to add and delete editors as I add and delete rows.
    Thanks, I've got everything working now. Here's are some code snippets, for anyone interested. I used Vector rather than ArrayList to be thread safe.
    // ******************* Global variables ***********
    Vector<TableCellEditor> editors = new Vector<TableCellEditor>(24,8);
    JTable table;
    // *************** construct table ****************
    DefaultTableModel tablemodel = new DefaultTableModel(columnnames,0);
    table = new JTable(tablemodel) {
         public TableCellEditor getCellEditor(int row,int col) {
              int modelcolumn = convertColumnIndexToModel(col);
              int fancycol = table.getColumn("Title").getModelIndex();
              if (modelcolumn == fancycol) {
                   return (TableCellEditor)editors.elementAt(row);
              } else {
                   return super.getCellEditor(row,col);
    // Set custom renderer for particular column in this JTable
    ComboBoxCellRenderer comboboxrenderer = new ComboBoxCellRenderer();
    TableColumn column = table.getColumnModel().getColumn(table.getColumn("Title").getModelIndex());
    column.setCellRenderer(comboboxrenderer);
    //*************** Adding rows to the table (Event Code)*********************
    DefaultTableModel tablemodel = (DefaultTableModel)table.getModel();
    Object[] rowdata = new Object[3];
    rowdata[0] = "gaga";
    String[] cboxentries = {"cbox entry 1","cbox entry 2"};
    JComboBox cellcombo = new JComboBox();
    cellcombo.addItem(cboxentries[0]);
    cellcombo.addItem(cboxentries[1]);
    DefaultCellEditor editor = new DefaultCellEditor(cellcombo);
    editors.add(editor);
    rowdata[1] = cellcombo.getItemAt(0);          // don't know if this matters
    rowdata[2] = "gaga2";
    tablemodel.addRow(rowdata);
    //**************** Custom Cell Renderer *********************
    class ComboBoxCellRenderer extends JComboBox implements TableCellRenderer {
         public ComboBoxCellRenderer() {
         public Component getTableCellRendererComponent(JTable table, Object value,boolean isSelected, boolean hasFocus, int row, int column) {
    // display value in our JComboBOx
              this.addItem(value);
              this.setSelectedItem(value);
              return this;
    }

  • Jtable: set different icons for  selection/deselection

    Hai,
    I have designed a Jtable, I would like to set a column that has to show different icons when selected/deselected that row. To be specific when you click for the first time, it has to show ICON1 and if you click again it has to show ICON2. Any ideas ???
    Thanks,
    Bala.

    I haven't tried this - so take it with a grain of salt. In your table model, you can define the getColumnClass for the column as ImageIcon.class. In the getValue for that column, you would return the icon.
    In order to get the cell to act like a button .. so you can alternate between the icons ... is a little more complex. There is a book on Advanced Swing by Kim Topley that gets into making cells act like buttons. This part works because I have tried it -- but I wasn't displaying icons.
    good luck!

  • Set a column to be nullable

    Hi, I am not really good at SQL. Please help me if you can.
    I have a column that's Nullable (yes), default (1). Now I want to set the default of the column to null and set the column to be nullable. Here is what I am doing:
    create table testit
    (foo number default 1 not null, doo varchar(10));
    insert into testit (foo, doo) values (15, 'a')
    insert into testit (foo, doo) values (14, 'b')
    insert into testit (doo) values ('c')
    select * from testit
    This will return 3 rows where foo=1 when doo='c'. Now I do:
    ALTER TABLE testit
    modify foo DEFAULT NULL
    This will set the default value of foo to be NULL, however, the Nullable is still No. Then when I do
    insert into testit (doo) values ('ddd')
    I get "cannot insert Null into (testit.foo). What should I do?
    Thanks. :D

    SQL> create table testit
      2  (foo number default 1 not null, doo varchar(10));
    Table created.
    SQL> insert into testit (foo, doo) values (15, 'a');
    1 row created.
    SQL> insert into testit (foo, doo) values (14, 'b');
    1 row created.
    SQL> insert into testit (doo) values ('c');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from testit;
           FOO DOO
            15 a
            14 b
             1 c
    SQL> describe testit;
    Name                                      Null?    Type
    FOO                                       NOT NULL NUMBER
    DOO                                                VARCHAR2(10)
    SQL> ALTER TABLE testit
      2  modify foo DEFAULT NULL;
    Table altered.
    SQL> describe testit;
    Name                                      Null?    Type
    FOO                                       NOT NULL NUMBER
    DOO                                                VARCHAR2(10)
    SQL> insert into testit (doo) values ('ddd');
    insert into testit (doo) values ('ddd')
    ERROR at line 1:
    ORA-01400: cannot insert NULL into ("TESTIT"."FOO")
    SQL> select constraint_name from all_cons_columns
      2   where table_name = 'TESTIT';
    CONSTRAINT_NAME
    SYS_C00289436
    SQL> select search_condition from all_constraints
      2   where constraint_name =  'SYS_C00289436';
    SEARCH_CONDITION
    "FOO" IS NOT NULL
    SQL> alter table testit drop constraint SYS_C00289436;
    Table altered.
    SQL> insert into testit (doo) values ('ddd');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL>

  • How to show next set of columns in a adf table

    hi,
    i want to display 999 no of columns in a adf table. since it is not a better way to show all the columns in the adf table at a time, we want to show 10 columns at first and by using the next and previous links the user can see the next and previous set of columns. i dont know how to do this. please help me.
    parameswaran

    You have to put table name in Capital letters
    Like
    SELECT COUNT(1)
      FROM user_tab_columns
    WHERE table_name = 'EMP';
    or
    SELECT COUNT(1)
      FROM user_tab_columns
    WHERE table_name = UPPER('Emp');Regards
    Arun

  • Is there any way to set default column widths in the Finder's Column view

    When my Finder windows open in column view, all the columns are always VERY wide. I have to then spend time resizing them to a managable width. Is there any way to set default column widths in the Finder's Column view?
    <Re-Titled By Host>

    No, because you can't set a columns view default.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • OLE2 how to set a column width of an excel file i'm creating?

    how can i set the column width in an excel file i'm creating with ole?
    or even, haw can i set the auto-fix properties?

    Hallo !
    SORRY MY ENGLISH is very BAD.
    I tried to set page header and  footer in Excel sheet with abap ole
    DATA : BEGIN OF enter,
             x(1) TYPE x VALUE '0D',
            END OF enter.
    DATA : format(255) TYPE c.
    FORM set_page_sheet.
      CALL METHOD OF excel 'ActiveSheet' = sheet.
      CALL METHOD OF sheet 'PageSetup' = pagesetup.
      SET PROPERTY OF pagesetup 'Orientation' = xllandscape.
      SET PROPERTY OF pagesetup 'PrintTitleRows' = '$9:$12'.
      CLEAR format.
    ERROR
      CONCATENATE 'PAGESHEET' enter-x 'PAGE &P/&N' INTO format.
    ERROR
      SET PROPERTY OF pagesetup 'RightHeader' = format.
      CLEAR format.
      CONCATENATE ' Text 1 ' enter-x 'Text 2'
    enter-x 'Text 3 ' INTO format.
      SET PROPERTY OF pagesetup 'RightFooter' = format.
      FREE OBJECT pagesetup.
    ENDFORM.                    " set_page_sheet
    Activate report -
    ERROR - The enter-x must by data type c or another then data type x
    Thanks for answer.

  • How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?

    Dear SharePoint Developers,
    Please help.
    I need to know How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?
    I think this is a "sealed column", whatever that is, which is  shown in SPD 2013 as a column of content type "document, folder, MyCustomContentType".
    I know when I set the column order in my custom Content Type settings page, it is correct.
    But, when I load the NewDocSet.aspx page, the column order that I set in the settings page is NOT used for this "sealed column" which is bad.
    Can you help?
    Please advise.
    Thanks.
    Mark Kamoski
    -- Mark Kamoski

    Hi,
    According to your post, my understanding is that you want to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx.
    Per my knowledge, if you have Content Type management enabled for the list or library (if you see a list of content type with the option to add more), the display order of columns is set for each content type.
    Drill down into one of them and you'll see the option under the list of columns for that content type.
    To apply the column order in the NewDocSet.aspx page, you need to:
    Select Site Settings, under Site Collection Administration, click Content type publishing. In the Refresh All Published
    Content Types section, choose Refresh all published content types on next
    update.
    Run two timer jobs(Content Type Hub, Content Type Subscriber) in central admin(Central Administration--> Monitoring--> Review timer jobs).
    More information:
    http://sharepoint.stackexchange.com/questions/95028/content-types-not-refreshing-on-sp-online
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

Maybe you are looking for

  • Installation Problem with APEX 3.1 on 11g

    Hey, I've a big problem with apex3.1 on 11g. Yesterday i wanted to install the new version, which i've downloaded from the oracle server. Furthermore i have followed the instructions by the documentation. i executed: 1. apexins.sql FLOW_1 USERS TEMP

  • Recording audio from "External instrument"

    what's an easy way to get get audio from an "External instrument" track to it's own audio track for later editing? I have to use the External instrument because I need to monitor my synth with delay inducing pluggins on the master outputs. thanks.

  • How Install Oracle 10g Express Edition in english language?

    hi all i download both files: http://www.oracle.com/technology/software/products/database/xe/htdocs/102xewinsoft.html Oracle Database 10g Express Edition (Western European) OracleXE.exe (165,332,312 bytes) Single-byte LATIN1 database for Western Euro

  • Import data and cofiles via stms

    Hi all, I would like to import some data and cofiles via stms in my MiniSAP. Only tables are imported without problems. Programs, transactions or other files of the package will not imported. The imported objects will be not activate automatically. T

  • Internet Apps on iPad Close immediately after opening?

    After opening a internet related application on iPad 2 , Banking, FaceTime, Words for Friends, Netflik etc.  The app closes suddenly.  Everytime?