HideShow: Column does not show label

I have one hideShow region inside table, but it does not show label in column.
Someone know help me?
See the printscreen: http://www.flickr.com/photos/30358105@N03/3180588230/

Hi,
Under the “Identification” tab, there is a characteristic 0PSTNG_DATE. The corresponding 4th column is for Cube1, but Cube2 contains the posting date we are reporting on through the multiprovider. The third column  (“Equal To”) is NOT checked for Cube2.
Could that be the problem? What is the significance of this checkbox not being checked for Cube2.
On the other hand, I see 0PSTNG_DATE also under the fifth column (Char/NavAttrib), but the corresponding Cube3 and it is checked under “Equal To”
Characteristic---Long_Description-Equal_To-In_InfoProvider-Char/NavAttrib
0PSTNG_DATEposting dateCube1--
Cube1
Cube2               
Cube2
checked---Cube3--
0PSTNG_DATE
Cube3
0FISCPER3-----Posting period---checked----Cube1             
checked----Cube2               
checked----Cube3               
Checked----Cube4
I hope the above info can from the Identification tab guide help?
Can you help interpret these columns and the significance of the fact that there is no “checked” under “Equal To” for the Cube2 which is what actually feeds the column, TargetColumn (i.e the column which does not get populated with date when the Posting Date filed is set.
Thanks.

Similar Messages

  • Shared tab in left menu column does not show on one of the computers after setting up Home Sharing

    For iTunes 10.3, I have set up home sharing on two computers that run windows 7, I have authorized both computers.  The iTunes Shared link for computer 2 shows up on left column for computer 1(main iTunes computer).  The problem I am having is that the Shared link for computer 1 DOES NOT show up on computer 2.   My network between the both computers is working because I am able to pull/copy music files from computer 1 to computer 2.  Why doesn't the Shared link for Computer 1 show up on Computer 2 Itunes left column?  Any help would be most appreciated. Thank you.

    Nothing had changed when I plugged in my iPod at work today, having changed it to manage manually earlier at home. But after rebooting a few minutes ago, iTunes cranked up and updated the library. The library now appears below DEVICES/iPod on the menu instead of under LIBRARY/Music at the top left, which I'm pretty sure is different from before, but no matter. Also the iPod is still not appearing in My Computer but again, no matter. I am able to play my tunes on the work install of iTunes now and use iDump (which is a helluva lot less trouble than iTunes) to extract them.
    Thanks again for all the help.
    HP Pavilion, Dell Optiplex Windows XP

  • WPF: How to make the first column does not show row separator and Left column separator in DataGrid?

    Our WPF application uses DataGrid.
    One of request is that first column of DataGrid does not show row separator and also does not show Left column separator. So it looks like the first column does not belong to the DataGrid. However, when select a row, the cell of first column still get selected.
    How do we make it? Thx!
    JaneC

    Hi Magnus,
    Thanks for replying our question and provide your solution!
    Your solution works by setting "HorizontalGridLinesBrush" and "VerticalGridLinesBrush" to {x:Null} in the DataGrid style and modify "CellStyle" in first column as following:
    <DataGridTextColumn MinWidth="32"
    Binding="{Binding CellName}"
    CanUserReorder="False"
    CanUserSort="False"
    Header="Cell}"
    IsReadOnly="true" >
    <DataGridTextColumn.CellStyle>
    <Style TargetType="DataGridCell">
    <Setter Property="IsEnabled" Value="False"></Setter>
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="{x:Type DataGridCell}">
    <Border BorderThickness="0" BorderBrush="{x:Null}"
    Background="{Binding Background, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" Margin="-1">
    <Grid Background="{TemplateBinding Background}" VerticalAlignment="Center" Height="42">
    <ContentPresenter VerticalAlignment="Center"/>
    </Grid>
    </Border>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    </DataGridTextColumn.CellStyle>
    </DataGridTextColumn>
    We found another way to achieve it by using DataGridRowHeader. The good way to use DataGridRowHeader is that we do not need to make the first column ReadOnly (click on first column does not select whole row anymore). Select RowHeader in a row will select
    whole row. Move scroll bar horizontally, the row header still keep in visible area.
    <Style TargetType="{x:Type DataGridRowHeader}" x:Key="dataGridRowHeaderStyle">
    <Setter Property="VerticalContentAlignment" Value="Center" />
    <Setter Property="HorizontalAlignment" Value="Center" />
    <Setter Property="Height" Value="42" />
    <Setter Property="SeparatorBrush" Value="{x:Null}" />
    <Setter Property="FontSize" Value="16" />
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="{x:Type DataGridRowHeader}">
    <Grid>
    <Border x:Name="rowHeaderBorder"
    BorderThickness="0"
    Padding="3,0,3,0"
    Background="{Binding Background, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"
    BorderBrush="{x:Null}">
    <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
    SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
    </Border>
    </Grid>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    <DataGrid>
    <DataGrid.RowHeaderStyle>
    <Style TargetType="DataGridRowHeader" BasedOn="{StaticResource dataGridRowHeaderStyle}">
    <Setter Property="Content" Value="{Binding CellName}" />
    <Setter Property="Width" Value="35"/>
    </Style>
    </DataGrid.RowHeaderStyle>
    </<DataGrid>
    JaneC

  • 2D stacked column does not show values

    Hi Friends,
    I am new to Apex. I have a 2D column chart with two columns for every data point. The display value check box is checked and I can see the values on the chart. But now when i to make it a stacked 2 D column, the Show Values checkbox field gets disabled and the values does not appear on the stacked 2D column chart. I tried the same with 3S stacked column chart and even there the show values gets disabled.
    Is there any way i can display the values on the chart for a stacked column? I can see the values when i hover on it in case of Stacked column chart but I need to display the values on the chart.
    Kindly let me know how i can do this in Apex?

    Hi Pradeep,
    In earlier releases of Application Express, the supported version of AnyChart Flash charts did not fully support the display of values for Stacked charts. Therefore, the "Show Values" checkbox would be disabled on the Chart Attributes page. Since our 4.0 release, with the integration of AnyChart 5 charts, the option to display values on stacked charts is exposed via the Chart Attributes page. To take advantage of this option, along with many other charting improvements introduced with our 4.0 release, I would recommend that you upgrade to the latest version of Application Express.
    Alternatively, you could switch your existing chart to use custom XML, and change the following line of code in the chart XML from:
    <names show="no"/> to <names show="yes"/>For further information on customising your chart XML, please refer to the AnyChart 3 documentation: http://3.anychart.com/products/docs/anychart/index.htm.
    Regards,
    Hilary

  • Why some times jdeveloper does not show a coreect design view ?

    Hi
    thank you for reading my post
    why jdeveloper does not show a correct design view of jsf pages sometimes?
    It does not shows labels and ... , just show tag names like : form , ... ?
    here is a picture for this :
    1-incorrect page:
    http://www.flickr.com/photos/59086726@N00/217556594/
    2-correct page :
    http://www.flickr.com/photos/59086726@N00/217556595/
    I just closed and open the IDE and page designer shows incorrect pages
    thanks

    Also try this...go to the project properties for the View project. Look at the JSF Libraries and remove the two JSF libraries and then re-add them....this sometimes helps.
    Regards
    Grant Ronald

  • Windows 8.1 pro pptp vpn does not show disconnect option

    I just installed Windows 8.1 PRO on my PC.
    Formatted it, installed right from scratch.
    Once I created my login, I then created a connection to my office VPN server.
    Office VPN server is a ISA server which allows PPTP based VPN.
    Well, I am able to connect and do everything that I want.
    But I dont see a DISCONNECT option at all.
    The metro interface after the connection is made also does not show status as "connected". It shows "connect" instead.
    If you go to network and sharing center and then into adapter settings you can see you VPN connection. but the "status" column  does not show "connected" but instead shows the same name of the vpn connection as seen in the "Name"
    column!!
    Right clicking that active connection does not show "disconnect", but shows "connect/disconnect".
    Then I realized that after double clicking that VPN connection you can then see the status window, where a disconnect button does exists and clicking that does disconnect the VPN.
    But this is crazy.
    Why do we now have to go so deep, just to disconnect!
    This never happens in windows 7, windows 7 with SP1, Windows 8
    This is new to Windows 8.1 
    Anyone else seen this? Is there a solution ?
    konkani

    I just installed Windows 8.1 PRO on my PC.
    Formatted it, installed right from scratch.
    Once I created my login, I then created a connection to my office VPN server.
    Office VPN server is a ISA server which allows PPTP based VPN.
    Well, I am able to connect and do everything that I want.
    But I dont see a DISCONNECT option at all.
    The metro interface after the connection is made also does not show status as "connected". It shows "connect" instead.
    If you go to network and sharing center and then into adapter settings you can see you VPN connection. but the "status" column  does not show "connected" but instead shows the same name of the vpn connection as seen in the "Name" column!!
    Right clicking that active connection does not show "disconnect", but shows "connect/disconnect".
    Then I realized that after double clicking that VPN connection you can then see the status window, where a disconnect button does exists and clicking that does disconnect the VPN.
    But this is crazy.
    Why do we now have to go so deep, just to disconnect!
    This never happens in windows 7, windows 7 with SP1, Windows 8
    This is new to Windows 8.1 
    Anyone else seen this? Is there a solution ?
    konkani
    BUMP!
    konkani

  • HT1386 I am trying to sync my ipad3 to my itunes on a pc laptop, the ipad does not show up in the itunes left hand column. an ipod is already synced to the itunes. any suggestions welcome

    I am trying to sync my ipad3 to my itunes on a pc laptop, the ipad does not show up in the itunes left hand column. an ipod is already synced to the itunes. any suggestions welcome

    Hi lindaasw,
    Welcome to the Support Communities!
    Do you have the latest version of iTunes for Windows installed?  I would turn on the sidebar and the menu bar just to make sure you are seeing everything.  If the iPhone is still not recognized in iTunes, follow these troubleshooting steps:
    iTunes: Turning on iTunes menus in Windows 8 and 7
    http://support.apple.com/kb/HT5610
    iTunes 11: Frequently used features
    http://support.apple.com/kb/HT5649
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Cheers,
      - Judy

  • Sharing does not show up on the side column ... tried turning off home sharing then turning it back on ... shared shows up untell i click "done " then its gone.

    sharing does not show up on the side column ... tried turning off home sharing then turning it back on ... shared shows up untell i click "done " then its gone.

    Yes, I have also tried and failed when setting up Home Sharing.  I have followed the instruction given on the Support website, but this is all I see:
    Both computers are on the same local network and both allow Home Sharing and are signed in with the same user name. I am not sure what else to do.  Any suggestions?

  • Finder does not show all colors from selected color Labels

    Since a view days finder does not show all Color Label colors. When I select either yellow or green it is selected, but it does not show in the file list with details, I can see it in icon and 3 pane view, but not in the detail list view.
    does anybody know why or how? Or what plist files I might need to delete to get this reset?

    Create a new account, name it "test" and see how your labels work in that User acct in list view? (That will tell if your problem is systemwide or limited to your User acct.) This account is just for test, do nothing further with it.
    Open System Preferences >> Accounts >> "+" make it an admin account.
    Let us know and we'll troubleshoot this further.
    -mj
    [email protected]

  • Vertical ComboBox does not show its selected Item's label

    Hello,
    We have created a custom vertical ComboBox.
    Normal combobox has been rotated to -90 degrees.
    It aims to show its selected label and open up the menu at proper x,y coordinate.
    To open up the menu at proper x,y coordinate, we have overriden "downArrowButton_buttonDownHandler" function to move the dropdown accordingly.
    However, the selected label is not visible on screen. Rotated text does not show up without embedding fonts. Hence, We have tried embedding font for the same. It doesn't work though.
    Please help.
    Regards,
    Tanu

    Embedded font isn't working for rotated button/combobox. Though, it works fine with rotated label
    Please refer to below given code:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Style>
         .mystyle1 {
            fontFamily:myPlainFont;
            fontSize: 32pt;
      </mx:Style>
      <mx:Script>
          * Embed a font by name.
         [Embed(systemFont='Arial',
            fontName='myPlainFont',
            mimeType='application/x-font'
         private var font1:Class; 
      </mx:Script>
      <mx:Panel title="Embedded Fonts Using ActionScript">
         <mx:VBox>
            <mx:Label            
                styleName="mystyle1"
                text="Embedded font"
                rotation="15"
            />      
            <mx:Button             
                styleName="mystyle1"
                label="Embedded"
                rotation="15"
                />
         </mx:VBox>
      </mx:Panel>
    </mx:Application>
    Regards,
    Tanu

  • Why MSAccess database shows data but does not show columns and DDL in edit mode in jdeveloper?

    Sir,
    My developer ver is 12.1.3.0.0.
    I create a connection to MS Access database, this database shows data as bellow in jdeveloper databases window
    But when I open any table in Edit mode like bellow it does not show any columns and DDL and give an error like bellow
    Similarly when I try to create view objects on these tables then on data controls the view object also doesn't show any columns like bellow
    What could be the reason any help on this issue
    Should I use MS Access or not but I want to use ms access for very small databases.
    Regards

    If you look into the certification matrix at Oracle JDeveloper and ADF 12c (12.1.3) Supported Systems
    You'll see that ms access is not supported.
    You can use oracle xe which is free for your project.
    Timo

  • JTable Problem (table does not show rows and columns)

    Hi All,
    What the table is suppose to do.
    - Load information from a database
    - put all the values in the first column
    - in the second column put combobox (cell editor with numbers 1-12)
    - the 3rd column put another combobox for something else
    - the 4th column uses checkbox as an edit
    The number of rows of the table should be equal to the number of
    record from
    the database. If not given it default to 20 (poor but ok for this)
    The number of columns is 4.
    But the table does not show any rows or
    column when I put it inside a
    JScrollPane (Otherwise it works).
    Please help,
    thanks in advance.
    public class SubjectTable extends JTable {
    * Comment for <code>serialVersionUID</code>
    private static final long serialVersionUID = 1L;
    /** combo for the list of classes */
    protected JComboBox classCombo;
    /** combo for the list of subjects */
    protected JComboBox subjectsCombo;
    /** combo for the list of grade */
    protected JComboBox gradeCombo;
    boolean canResize = false;
    boolean canReorder = false;
    boolean canSelectRow = false;
    boolean canSelectCell = true;
    boolean canSelectColumn = true;
    // the row height of the table
    int rowHeight = 22;
    // the height of the table
    int height = 200;
    // the width of the table
    int width = 300;
    // the size of the table
    Dimension size;
    * Parameterless constructor. Class the one of the other constructors
    to
    * create a table with the a new <code>SubjectTableModel</code>.
    public SubjectTable() {
    this(new SubjectTableModel());
    * Copy constructor to create the table with the given
    * <code>SubjectTableModel</code>
    * @param tableModel -
    * the <code>SubjectTableModel</code> with which to
    initialise
    * the table.
    SubjectTable(SubjectTableModel tableModel) {
    setModel(tableModel);
    setupTable();
    * Function to setup the table's functionality
    private void setupTable() {
    clear();
    // set the row hieght
    this.setRowHeight(this.rowHeight);
    // set the font size to 12
    //TODO this.setFont(Settings.getDefaultFont());
    // disble reordering of columns
    this.getTableHeader().setReorderingAllowed(this.canReorder);
    // disble resing of columns
    this.getTableHeader().setResizingAllowed(this.canResize);
    // enable the horizontal scrollbar
    this.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    // disable row selection
    setRowSelectionAllowed(this.canSelectRow);
    // disable column selection
    setColumnSelectionAllowed(this.canSelectColumn);
    // enable cell selection
    setCellSelectionEnabled(this.canSelectCell);
    setPreferredScrollableViewportSize(getSize());
    TableColumn columns = null;
    int cols = getColumnCount();
    for (int col = 0; col < cols; col++) {
    columns = getColumnModel().getColumn(col);
    switch (col) {
    case 0:// subject name column
    columns.setPreferredWidth(130);
    break;
    case 1:// grade column
    columns.setPreferredWidth(60);
    break;
    case 2:// class room column
    columns.setPreferredWidth(120);
    break;
    case 3:// select column
    columns.setPreferredWidth(65);
    break;
    } // end switch
    }// end for
    // set up the cell editors
    doGradeColumn();
    doClassColumn();
    //doSubjectColumn();
    * Function to clear the table selection. This selection is different
    to
    * <code>javax.swing.JTable#clearSelection()</code>. It clears the
    user
    * input
    public void clear() {
    for (int row = 0; row < getRowCount(); row++) {
    for (int col = 0; col < getColumnCount(); col++) {
    if (getColumnName(getColumnCount() - 1).equals("Select")) {
    setValueAt(new Boolean(false), row, getColumnCount() - 1);
    }// if
    }// for col
    }// for row
    * Function to set the cell renderer for the subjects column. It uses
    a
    * combobox as a cell editor in the teacher's subjects table.
    public void doSubjectColumn() {
    TableColumn nameColumn = getColumnModel().getColumn(0);
    nameColumn.setCellEditor(new DefaultCellEditor(getSubjectsCombo()));
    // set up the celll renderer
    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for drop down list");
    nameColumn.setCellRenderer(renderer);
    // Set up tool tip for the sport column header.
    TableCellRenderer headerRenderer = nameColumn.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer) {
    ((DefaultTableCellRenderer) headerRenderer)
    .setToolTipText("Click the Name to see a list of choices");
    }// end doSubjectsColumn----------------------------------------------
    /** Function to set up the grade combo box. */
    public void doGradeColumn() {
    TableColumn gradeColumn = getColumnModel().getColumn(1);
    gradeColumn.setCellEditor(new DefaultCellEditor(getGradeCombo()));
    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for drop down list");
    gradeColumn.setCellRenderer(renderer);
    // Set up tool tip for the sport column header.
    TableCellRenderer headerRenderer = gradeColumn.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer) {
    ((DefaultTableCellRenderer) headerRenderer)
    .setToolTipText("Click the Grade to see a list of choices");
    }// end doGradeColumn-------------------------------------------------
    * Function to setup the Class room Column of the subjects
    public void doClassColumn() {
    // set the column for the classroom
    TableColumn classColumn = getColumnModel().getColumn(2);
    classColumn.setCellEditor(new DefaultCellEditor(getClassCombo()));
    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for drop down list");
    classColumn.setCellRenderer(renderer);
    // Set up tool tip for the sport column header.
    TableCellRenderer headerRenderer = classColumn.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer) {
    ((DefaultTableCellRenderer) headerRenderer)
    .setToolTipText("Click the Class to see a list of choices");
    }// end doClassColumn--------------------------------------------------
    * Function to get the size of the table
    * @return Returns the size.
    public Dimension getSize() {
    if (this.size == null) {
    this.size = new Dimension(this.height, this.width);
    return this.size;
    * Function to set the size of the table
    * @param dim
    * The size to set.
    public void setSize(Dimension dim) {
    if (dim != null) {
    this.size = dim;
    return;
    * Function to create/setup the class room comboBox. If the comboBox
    is
    * <code>null</code> a nwew one is created else the functon returns
    the
    * function that was returned initially.
    * @return Returns the classCombo.
    private JComboBox getClassCombo() {
    if (this.classCombo == null) {
    this.classCombo = new JComboBox();
    // fill up the class name combo
    ArrayList classRooms = new ArrayList();
    try {
    //TODO classRooms = Settings.getDatabase().getClassRooms();
    for (int i = 0; i < 10; i++) {
    String string = new String("Class");
    string += i;
    if (!classRooms.isEmpty()) {
    classRooms.trimToSize();
    for (int i = 0; i < classRooms.size(); i++) {
    this.classCombo.addItem(classRooms.get(i));
    } catch (Exception e) {
    e.printStackTrace();
    return this.classCombo;
    * Function to create/setup the subjects comboBox. If the comboBox is
    * <code>null</code> a nwew one is created else the functon returns
    the
    * function that was returned initially.
    * @return Returns the subjectsCombo.
    private JComboBox getSubjectsCombo() {
    if (this.subjectsCombo == null) {
    this.subjectsCombo = new JComboBox();
    try {
    ArrayList subjects = loadSubjectsFromDatabase();
    if (!subjects.isEmpty()) {
    Iterator iterator = subjects.iterator();
    while (iterator.hasNext()) {
    // create a new subject instance
    //TODO Subject subct = new Subject();
    // typecast to subject
    //TODO subct = (Subject) iterator.next();
    String name = (String) iterator.next();
    // add this subject to the comboBox
    //TODO this.subjectsCombo.addItem(subct.getName());
    subjectsCombo.addItem(name);
    }// end while
    }// end if
    else {
    JOptionPane.showMessageDialog(SubjectTable.this,
    "Subjects List Could Not Be Filled");
    System.out.println("Subjects List Could Not Be Filled");
    } catch (Exception e) {
    e.printStackTrace();
    return this.subjectsCombo;
    * Function to load subjects from the <code>Database</code>
    * @return Returns the subjects.
    private ArrayList loadSubjectsFromDatabase() {
    // list of all the subject that the school does
    ArrayList subjects = new ArrayList();
    try {
    //TODO to be removed later on
    for (int i = 0; i < 10; i++) {
    String string = new String("Subject");
    string += i;
    subjects.add(i, string);
    // set the school subjects
    //TODO subjects = Settings.getDatabase().loadAllSubjects();
    } catch (Exception e1) {
    e1.printStackTrace();
    return subjects;
    * Function to create/setup the grade comboBox. If the comboBox is
    * <code>null</code> a nwew one is created else the functon returns
    the
    * function that was returned initially.
    * @return Returns the gradeCombo.
    private JComboBox getGradeCombo() {
    if (this.gradeCombo == null) {
    this.gradeCombo = new JComboBox();
    // fill with grade 1 to 12
    for (int i = 12; i > 0; i--) {
    this.gradeCombo.addItem(new Integer(i).toString());
    return this.gradeCombo;
    public static void main(String[] args) {
    try {
    UIManager.setLookAndFeel(new Plastic3DLookAndFeel());
    System.out.println("Look and Feel has been set");
    } catch (UnsupportedLookAndFeelException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    SubjectTableModel model = new SubjectTableModel();
    int cols = model.getColumnCount();
    int rows = model.getRowCount();
    Object[][] subjects = new Object[rows][cols];
    for (int row = 0; row < rows; row++) {
    subjects[row][0] = new String("Subjectv ") + row;
    }//for
    model.setSubjectsList(subjects);
    SubjectTable ttest = new SubjectTable(model);
    JFrame frame = new JFrame("::Table Example");
    JScrollPane scrollPane = new JScrollPane();
    scrollPane.setViewportView(ttest);
    frame.getContentPane().add(scrollPane);
    frame.pack();
    frame.setVisible(true);
    **************************************END
    TABLE******************************
    ----------------------------THE TABLE
    MODEL----------------------------------
    * Created on 2005/03/21
    * SubjectTableModel
    package com.school.academic.ui;
    import javax.swing.table.AbstractTableModel;
    * Class extending the <code>AbstractTableModel</code> for use in
    creating the
    * <code>Subject</code>s table. In addition to the implemented methods
    of
    * <code>AbstractTableModel</code> The class creates a model that has
    initial
    * values - the values have their own <code>getter</code> and
    * <code>setter</code> methods - but can still be used for values that
    a user
    * chooses.
    * <p>
    * @author Khusta
    public class SubjectTableModel extends AbstractTableModel {
    * Comment for <code>serialVersionUID</code>
    private static final long serialVersionUID = 3257850978324461113L;
    /** Column names for the subjects table */
    String[] columnNames = { "Subject", "Grade", "Class Room",
    "Select" };
    /** Array of objects for the subjects table */
    Object[][] subjectsList;
    private int totalRows = 20;
    protected int notEditable = 0;
    * Parameterless constructor.
    public SubjectTableModel() {
    // TODO initialise the list
    // add column to the default table model
    this.subjectsList = new
    Object[getTotalRows()][getColumnNames().length];
    * Copy constructor with the <code>subjectList</code> to set
    * @param subjects
    public SubjectTableModel(Object[][] subjects) {
    this(0, null, subjects, 0);
    * Copy constructor with the initial number of row for the model
    * @param rows -
    * the initial rows of the model
    * @param cols -
    * the initial columns of the model
    * @param subjects -
    * the initial subjects for the model
    * @param edit - the minimum number of columns that must be
    uneditable
    public SubjectTableModel(int rows, String[] cols, Object[][]
    subjects, int edit) {
    // set the initial rows
    setTotalRows(rows);
    // set the column names
    setColumnNames(cols);
    // set the subjectlist
    setSubjectsList(subjects);
    //set not editable index
    setNotEditable(edit);
    * Function to get the total number of columns in the table
    * @return int -- the columns in the table
    public int getColumnCount() {
    if (this.subjectsList == null) {
    return 0;
    return getColumnNames().length;
    * Function to get the total number of rows in the table
    * @return int -- the rows in the table
    public int getRowCount() {
    if (this.subjectsList == null) {
    return 0;
    return this.subjectsList.length;
    * Function to get the name of a column in the table.
    * @param col --
    * the column to be named
    * @return String -- the column in the table
    public String getColumnName(int col) {
    if (getColumnNames()[col] != null) {
    return getColumnNames()[col];
    return new String("...");
    * Function to get the value of the given row.
    * @param row --
    * the row of the object.
    * @param col --
    * the col of the object.
    * @return Object -- the value at row, col.
    public Object getValueAt(int row, int col) {
    return getSubjectsList()[row][col];
    * Function to return the data type of the given column.
    * @param c --
    * the column whose type must be determined.
    * @return Class -- the type of the object in this col.
    public Class getColumnClass(int c) {
    if (getValueAt(0, c) != null) {
    return getValueAt(0, c).getClass();
    return new String().getClass();
    * Function to put a value into a table cell.
    * @param value --
    * the object that will be put.
    * @param row --
    * the row that the object will be put.
    * @param col --
    * the col that the object will be put.
    public void setValueAt(Object value, int row, int col) {
    * TODO: Have a boolean value to determine whether to clear or
    to set.
    * if true clear else set.
    if (value != null) {
    if (getSubjectsList()[0][col] instanceof Integer
    && !(value instanceof Integer)) {
    try {
    getSubjectsList()[row][col] = new
    Integer(value.toString());
    fireTableCellUpdated(row, col);
    } catch (NumberFormatException e) {
    * JOptionPane .showMessageDialog( this., "The \""
    +
    * getColumnName(col) + "\" column accepts only
    values
    * between 1 - 12");
    return;
    System.out.println("Value = " + value.toString());
    System.out.println("Column = " + col + " Row = " + row);
    // column = Grade or column = Select
    switch (col) {
    case 2:
    try {
    // TODO
    if (Boolean.getBoolean(value.toString()) == false
    && getValueAt(row, 0) != null
    && getValueAt(row, 1) != null
    && getValueAt(row, 2) != null) {
    // subjectsList[row][col + 1] = new
    Boolean(true);
    System.out.println("2. false - Updated...");
    * this.subjectListModel.add(row,
    * this.subjectsList[row][0] + new String(" -
    ") +
    * this.subjectsList[row][2]);
    } catch (ArrayIndexOutOfBoundsException exception) {
    exception.printStackTrace();
    break;
    case 3:
    if (Boolean.getBoolean(value.toString()) == false
    && getValueAt(row, 0) != null
    && getValueAt(row, 1) != null
    && getValueAt(row, 2) != null) {
    System.out.println("3. If - Added...");
    getSubjectsList()[row][3] = new Boolean(true);
    this.subjectListModel.addElement(this.subjectsList[row][0] +
    * new String(" - ") + this.subjectsList[row][2]);
    // subjectListModel.remove(row);
    fireTableCellUpdated(row, col);
    fireTableDataChanged();
    // this.doDeleteSubject();
    } else if (Boolean.getBoolean(value.toString()) ==
    true
    && getValueAt(row, 0) != null
    && getValueAt(row, 1) != null
    && getValueAt(row, 2) != null) {
    setValueAt("", row, col - 1);
    setValueAt("", row, col - 2);
    setValueAt("", row, col - 3);
    System.out.println("3. Else - Cleared...");
    // this.subjectListModel.remove(row);
    break;
    default:
    break;
    }// end switch
    getSubjectsList()[row][col] = value;
    fireTableCellUpdated(row, col);
    fireTableDataChanged();
    }// end if
    }// end
    * Function to enable edition for all the columns in the table
    * @param row --
    * the row that must be enabled.
    * @param col --
    * the col that must be enabled.
    * @return boolean -- indicate whether this cell is editble or
    not.
    public boolean isCellEditable(int row, int col) {
    if (row >= 0
    && (col >= 0 && col <= getNotEditable())) {
    return false;
    return true;
    * Function to get the column names for the model
    * @return Returns the columnNames.
    public String[] getColumnNames() {
    return this.columnNames;
    * Function to set the column names for the model
    * @param cols
    * The columnNames to set.
    public void setColumnNames(String[] cols) {
    // if the column names are null the default columns are used
    if (cols != null) {
    this.columnNames = cols;
    * Function to get the rows of subjects for the model
    * @return Returns the subjectsList.
    public Object[][] getSubjectsList() {
    if (this.subjectsList == null) {
    this.subjectsList = new
    Object[getTotalRows()][getColumnNames().length];
    return this.subjectsList;
    * Function to set the subjects list for the model
    * @param subjects
    * The subjectsList to set.
    public void setSubjectsList(Object[][] subjects) {
    // if the subject list is null create a new one
    // using default values
    if (subjects == null) {
    this.subjectsList = new
    Object[getTotalRows()][getColumnNames().length];
    return;
    this.subjectsList = subjects;
    * Function to get the total number of rows for the model. <b>NB:
    </b> This
    * is different to <code>
    getRowCount()</code>.<code>totalRows</code>
    * is the initial amount of rows that the model must have before
    data can be
    * added.
    * @return Returns the totalRows.
    * @see #setTotalRows(int)
    public int getTotalRows() {
    return this.totalRows;
    * Function to set the total rows for the model.
    * @param rows
    * The totalRows to set.
    * @see #getTotalRows()
    public void setTotalRows(int rows) {
    // if the rows are less than 0 the defaultRows are used
    // set getTotalRows
    if (rows > 0) {
    this.totalRows = rows;
    * Function to get the number of columns that is not editble
    * @return Returns the notEditable.
    public int getNotEditable() {
    return this.notEditable;
    * Function to set the number of columns that is not editable
    * @param notEdit The notEditable to set.
    public void setNotEditable(int notEdit) {
    if (notEdit < 0) {
    notEdit = 0;
    this.notEditable = notEdit;
    ----------------------------END TABLE MODEL----------------------------------

    I hope you don't expect us to read hundreds of lines of unformatted code? Use the "formatting tags" when you post.
    Why are you creating your own TableModel? It looks to me like the DefaultTableModel will store you data. Learn how to use JTable with its DefaultTableModel first. Then if you determine that DefaultTableModel doesn't provide the required functionality you can write your own model.

  • Form results does not show column headers

    I created a form and when I enter info and then view the results, the results page does not show column headers.  How do I correct this?

    I just found out that the engineered version (10g) is also quite strange:
    http://public.ceving.de/2012050900/postaladdress_10g.png
    It shows the values in the columns for the types.
    This looks very buggy.
    Is it not recommended to create views with the data modeler?
    Edited by: 931739 on 09.05.2012 06:38

  • Stacked Column Chart Value does not show in Preview or SWF

    I have created a simple (one-column) stacked Column chart from an imported Excel 2007 spreadsheet. I am using 3 values and all three are there when I am editing the chart. When I do a Preview or Export it to a .swf file, the third value does not show up. It only shows the first two.
    I am running Xcelsius 2008, Version 5.1.3.0, build 12,1,3,495.
    Edited by: Rich Krejsa on Apr 9, 2009 9:35 PM

    Hi Rich,
    Try to rebind the data with the component and preview and see.
    Also check with other charts to see if you get the same behaviour.
    Try placing a table component and display those cell and see what values are there when you preview.
    There could also be posiblities that the third values must be very small as compared to the other two,so check that as well and may be select the secodry scale in the general tab for the 3rd series.
    Let me know if this helps.
    Thanks,
    Amit Mathur.

  • View does not show column type

    I have two views containing a column, which is defined exactly in the same way. One view shows the column type as VARCHAR2 (200 CHAR) and the other does not show anything as the type.
    Here is the screen shot:
    http://public.ceving.de/2012050900/postaladdress.png
    First question: why is there a difference?
    Second question: why is the type VARCHAR2 although the modeler does not know VARCHAR2 but only VARCHAR as a column type?
    Here are the definitions of the views:
    This is "user_status":
    WITH user_status_data AS
    (SELECT work_user_status_data.person_id,
    MAX(work_user_status_data.startdate) AS startdate
    FROM work_user_status_data
    GROUP BY work_user_status_data.person_id
    SELECT person.id AS tmdid,
    person_a.lastname,
    person_a.firstname,
    person_a.email AS emailaddress,
    person_a.address
    || ', '
    || person_a.zipcode
    || ' '
    || person_a.city
    || ' '
    || person_a.country AS postaladdress,
    person_a.phone,
    person_a.mobile,
    person_a.company AS organization,
    person_a.orgunit_abbr AS orgunit,
    work_user_status_data.pwdresetflag,
    work_user_status_data.lockaccount,
    work_user_status_data.primarypwd,
    work_user_status_data.expdate,
    work_user_status_data.iamtid,
    work_user_status_data.startdate,
    work_user_status_data.stopdate,
    'IN PROGRESS' AS status
    FROM person_a
    INNER JOIN ts
    ON ts.id = person_a.ts_id
    INNER JOIN person
    ON person.id = person_a.person_id
    INNER JOIN user_status_data
    ON person.id = user_status_data.person_id
    INNER JOIN work_user_status_data
    ON user_status_data.person_id = work_user_status_data.person_id
    AND user_status_data.startdate = work_user_status_data.startdate
    WHERE ts."until" IS NULL
    And this is "work_user_status":
    SELECT person.id AS tmdid,
    person_a.lastname,
    person_a.firstname,
    person_a.email AS emailaddress,
    person_a.address
    || ', '
    || person_a.zipcode
    || ' '
    || person_a.city
    || ' '
    || person_a.country AS postaladdress,
    person_a.phone,
    person_a.mobile,
    person_a.company AS organization,
    person_a.orgunit_abbr AS orgunit,
    work_user_status_data.pwdresetflag,
    work_user_status_data.lockaccount,
    work_user_status_data.primarypwd,
    work_user_status_data.expdate,
    work_user_status_data.iamtid,
    work_user_status_data.startdate,
    work_user_status_data.stopdate,
    work_user_status_data.action,
    work_user_status_data.progress
    FROM person
    INNER JOIN person_a
    ON person.id = person_a.person_id
    INNER JOIN work_user_status_data
    ON person.id = work_user_status_data.person_id
    INNER JOIN ts
    ON ts.id = person_a.ts_id
    WHERE ts."until" IS NULL
    Edited by: 931739 on 09.05.2012 06:37

    I just found out that the engineered version (10g) is also quite strange:
    http://public.ceving.de/2012050900/postaladdress_10g.png
    It shows the values in the columns for the types.
    This looks very buggy.
    Is it not recommended to create views with the data modeler?
    Edited by: 931739 on 09.05.2012 06:38

Maybe you are looking for

  • How do i clean my ipod of songs and then put them back on from computer

    I want to take my songs off my ipod and put them back on ipod from computer.  I have tried to sync without doing this but it will not sync new folders

  • Distiller failure on a portion of text in the document

    I have a question that I'm hoping someone can assist me with, we have a Mac running Acrobat 8.1.6 (Distiller version 8.1.3) that continually fails on a portion of text in the document when creating a PDF from an EPS file. I have verified that this ma

  • Silverlight site shows in IE, not in FF

    Hi, I can view the Silverlight site http://geosalestax.com/ in IE8 on Win 7. FF asks me to install Silverlight but the installation fails because the installed version is the most recent one. The Silverlight plugin (4.0.50917.0) is activated and up t

  • ST02 buffer history SQL table

    Hello I am trying to find out which table in SQL the buffer history (ST02) data is stored? Please let me know. Thank you Ken

  • Good movie app

    I am looking for a good app where i can watch movies (full length) and/or TV shows.  i cant get mobi tv cause i have the droid X and it isnt compatitable