Specific Model not showing rows in a table in a column of a table
Hello,
Fairly simple issue here (I think):
I have a table bound to a global model and its rows bound to "/items"
I then have a column within that table which has a valuehelpfield that pops open a dialog with a table.
This tables rows inside the dialog are bound to a temp model. Now I know this temp model has the correct data and format and I do not get a "no data" messages when I bind it's rows to the node on the temp model, and to double check that I tried binding it to an incorrect node and it did say "no data" and I tripple checked by getting the jsonstring of the model and it's exactly how it should be.
Here is the code:
oTable.addColumn(new sap.ui.table.Column({
label: new sap.ui.commons.Label({
text: "Shop",
required: true
width: "200px",
template: new sap.ui.commons.ValueHelpField({
value:"{shopdesc}",
valueHelpRequest: function(oEvent){
var locModel = oTable.getModel();
var rowContextPath = oEvent.getSource().getBindingContext().getPath();
var oRowObj = oEvent.getSource().getBindingContext().getObject();
var oDataOld = sap.ui.getCore().getModel().getData();
var tempModel = new myJSONModel;
tempModel.setData({
shops: []
sap.ui.getCore().setModel(tempModel, "tempModel");
tempModel = sap.ui.getCore().getModel('tempModel');
d = tempModel.getData();
arr = d.shops;
var shops = oDataOld.shops;
for (var i = 0; i < shops.length; i++) {
if (shops[i].area == oRowObj.area) {
arr.push(shops[i]);
var oValueHelpDialog = new sap.ui.commons.Dialog(
{ modal: true,
title: "Select a Shop",
closed: function (oEvent) {
var oContext = oTableJobs.getContextByIndex(oTableJobs.getSelectedIndex());
if (oContext) {
var oSel = oContext.getModel().getProperty(oContext.getPath());
locModel.setProperty(rowContextPath + "/shop", oSel["shop"]);
locModel.setProperty(rowContextPath + "/shopdesc", oSel["shopdesc"]);
var oTableJobs = new sap.ui.table.Table({
visibleRowCount: 15,
firstVisibleRow: 1,
selectionMode: sap.ui.table.SelectionMode.Single,
width : "300px"
var oOkButton = new sap.ui.commons.Button({
text: "OK",
press: function (oEvent) {
oEvent.getSource().getParent().close();
oTableJobs.addColumn(new sap.ui.table.Column({
label: new sap.ui.commons.Label({text: "shop"}),
template: new sap.ui.commons.TextField().bindProperty("value", "shop"),
editable:false,
width: "100px"
oTableJobs.addColumn(new sap.ui.table.Column({
label: new sap.ui.commons.Label({text: "Shop Description"}),
template: new sap.ui.commons.TextField().bindProperty("value", "shopdesc"),
editable:false,
width: "300px"
var jsonString = tempModel.getJSON();
alert(jsonString);
oTableJobs.bindRows("tempModel>/shops");
oValueHelpDialog.addButton(oOkButton);
oValueHelpDialog.addContent(oTableJobs);
oValueHelpDialog.open();
var oModel = sap.ui.getCore().getModel();
oTable.setModel(oModel);
oTable.bindRows("/items");
Any help would be appreciated, I can't see what's wrong here, all seems fine to me! Thanks!
HI Bob
I briefly scan thru your code and spotted one common issue. When we are binding property, we need to include the model name. e.g.
template: new sap.ui.commons.TextField().bindProperty("value", "shop"),
should be
template: new sap.ui.commons.TextField().bindProperty("value", "tempModel>shop"),
-D
Similar Messages
-
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!
JaneCHi 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 -
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 -
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. -
Specific model not picking up advertisements
The other week I went to add the Powershell module to our Boot Images
We encountered an error trying to do that, so we gave up, and built new boot images just to be safe.
After doing so, and triple checking everything was exactly as had been previously, we now have one specific model of computer that won't pick up advertisements.
We have repeatedly confirmed the computer entry is in the collection, we have removed and re-added the computer and re-added it to the collection, yet it still will not pick up the advertisement. We have done this multiple times with multiple computers of
the same model, all with zero success.
I give up. Hive-mind, help!Hello,
Have you verified smbios UUID of these computers?
Someone else have encountered duplicate UUID which caused PXE boot issue.
http://social.technet.microsoft.com/Forums/en-US/7702e267-6c1a-4844-9a2b-2347137b17e3/os-deployment-task-sequence-doesnt-show-up?forum=configmanagerdeployment
So these computers may became known computers. -
Best approach to publish new table or new column on existing table on MDW?
Hi,
I'm refering to Olite R3 without any patches. I don't use Java API, I use MDW.
if I have a new table or a new column on a existing table, what's the best approach to publish it?
I'm asking this because I've trying lots of approaches and the only solution was, step-by-step:
1) On MDW, drop the publication item
2) Add again the publication item
3) Associate the publication item to the publication
4) Save everything
5) File / Deploy (if I don't do it, it does not work)
6) Tools/Package... (that's where it's a problem: if I don't remove the app and create it again it does not work!)
7) on the client side, I perform a msync with "force refresh"
That's the only way I found to publish new items for sure. Any other action does not push the new table or new column to the client's embbeded DB.
Any comments?
Regards,
Maurício Américo Vernaschi.I do not use MDW, rather a mix of java and the final publish step you use, but
Adding new PIs should be easy, just add them and re-publish (no need to drop anything)
for changes, if you just have new columns and the sql statement is 'select * from' then you should just need to make the changes in the base schema objects, and run the publish with no changes and the updates should be picked up. If selecting specific columns, then update and re-publish.
When using MDW at the end you can save the application as a jar file, and then use this jar file to publish in the mobile manager - this is the best wayto publish.
Have a look at this jar file in winzip, and you will find it contains a web.xml file. This is the xml definition of the publication items, and for simple changes it is possible to just edit this file and republish via the mobile manager -
Create a table which has columns from another table in other schema
Hi All
I need to create a table which is table driven i.e., the columns of that table need to be inserted from another table in a different schema...Can any one help me with this??create table newtab (--column spec here--) as
Select --columns here-- from otherschema.tablename;max -
JTable with custom column model and table model not showing table header
Hello,
I am creating a JTable with a custom table model and a custom column model. However the table header is not being displayed (yes, it is in a JScrollPane). I've shrunk the problem down into a single compileable example:
Thanks for your help.
import javax.swing.*;
import javax.swing.table.*;
public class Test1 extends JFrame
public static void main(String args[])
JTable table;
TableColumnModel colModel=createTestColumnModel();
TestTableModel tableModel=new TestTableModel();
Test1 frame=new Test1();
table=new JTable(tableModel, colModel);
frame.getContentPane().add(new JScrollPane(table));
frame.setSize(200,200);
frame.setVisible(true);
private static DefaultTableColumnModel createTestColumnModel()
DefaultTableColumnModel columnModel=new DefaultTableColumnModel();
columnModel.addColumn(new TableColumn(0));
return columnModel;
static class TestTableModel extends AbstractTableModel
public int getColumnCount()
return 1;
public Class<?> getColumnClass(int columnIndex)
return String.class;
public String getColumnName(int column)
return "col";
public int getRowCount()
return 1;
public Object getValueAt(int row, int col)
return "test";
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
}Edited by: 802416 on 14-Oct-2010 04:29
addedKleopatra wrote:
jduprez wrote:
See http://download.oracle.com/javase/6/docs/api/javax/swing/table/TableColumn.html#setHeaderValue(java.lang.Object)
When the TableColumn is created, the default headerValue is null
So, the header ends up rendered as an empty label (probably of size 0 if the JTable computes its header size based on the renderer's preferred size).nitpicking (can't resist - the alternative is a cleanup round in some not so nice code I produced recently <g>):
- it's not the JTable's business to compute its headers size (and it doesn't, the header's the culprit.) *> - the header should never come up with a zero (or near-to) height: even if there is no title shown, it's still needed as grab to resize/move the columns. So I would consider this sizing behaviour a bug.*
- furthermore, the "really zero" height is a longstanding issue with MetalBorder.TableHeaderBorder (other LAFs size with the top/bottom of their default header cell border) which extends AbstractBorder incorrectly. That's easy to do because AbstractBorder itself is badly implemented
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6459419
Thanks for the opportunity to have some fun :-)
JeanetteNo problem, thanks for the insight :) -
EntityBeans does not show row update.
Hello,
I make an EntityBean
I make a EntityFacade SessionBean for it.
I make a servlet that through EntityFacade call the findAll() method..
When I run the servlet, it show the row contained in the EntityBean correspondent Database Table.
When I add a row in database table and refresh the servlet browser page, the new row appear in a browser.
When I update a field row in database table and refresh the servlet browser page, the update does'nt appear in a browser.
Why?What is cached?Well, I'm not sure if this would be the best approach, but you could create a servlet and send to that servlet the ID of the entity bean you just modified; in the servler (preferably using a session facade or business delegate) :
1. find the entity bean (EntityManager find())
2. refresh the entity bean (EntityManager refresh()) -
Why are some of my tracks in specific playlists not showing up in my Music Library playlist?
I've restarted several times and some tracks that are in certain playlists don't show up on my music library playlist. Is this a bug? Any known fix? Thx!
But I would think that the purchases would be saved onto my Itunes account and therefore redownload into my computer. I have been able to retrieve about 9 of the 20+ songs that I bought by syncing my phone however the other purchases are still not there. Also, when I go to the Itunes store and back to the purchases, the button you press to buy it says "PURCHASED" so I know I don't have to rebuy them. How do I redownload the music I purchased previously?
-
SAP ProComp model not showing up in ID
Hello,
I have created a model of type "SAP ProComp model " in ESB. Now when I try to use this as template while creating a Configuration Scenario in ID, I do not see it.
I am trying to locate it under "SAP Process Component Interaction Model".
But when I create a model of type "SAP ProComp Interaction model", I am able to see it.
This seems logical, but I am able to see SAP provided models of type "SAP ProComp model" here.
I am on PI 7.1 EHP1.
Please advise.
Thank you.Is it because SAP Pro Comp model is not supported in EHP1. Now I tried creating my own SAP Pro Comp Interactive Model and when I try to load that, I get the below errors.
Process Component Interaction Model 'XXX': Error in reading Process Component object definition - set name and ID to null and type to internal
Please advise.
Thank you. -
DAE models not showing in PS/CS4
I'm importing DAE from Google 3D warehouse. I can see the layer data, and the model data in the 3D panel. The move handles appear. But I see no model.
I have seen in a couple of places where the Materials Opacity needs to be reset to 100%. But even after doing this the model is still not visible.
Please see attached GIF for reference.
Thank you!Does the 3D hierarchy (leftmost button in the 3D panel) list any mesh items? Please check. the thing being a butterfly I also get the feeling that all it ever was is just some textured planes, so there won't be much geometry to begin with....
Mylenium -
Events before a specific date not showing up on Calendar List View
I used to be able to view events as far back as they go in Calendar's List View. Since upgrading to iOS 7, I can't see events before September 23, 2012 in the List View (by pressing Search icon). Is it because there technically is no longer a List View in the new iOS 7? I'm confused why 9/23/2012 was selected as the cutoff date.
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do not click the Reset button on the Safe mode start window or otherwise make changes.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
Do a malware check with some malware scanning programs on the Windows computer.<br />
You need to scan with all programs because each program detects different malware.<br />
Make sure that you update each program to get the latest version of their databases before doing a scan.
*http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
*http://www.superantispyware.com/ - SuperAntispyware
*http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
*http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
*http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
You can also do a check for a rootkit infection with TDSSKiller.
*http://support.kaspersky.com/viruses/solutions?qid=208280684
See also:
*"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked -
When I look at my icloud calendar on my MAC, everything is there... when I go to my iPhone or iPad... the timed events are missing. The all day events do show up? HELP?
Duplicates are due to syncing both with iCloud AND with iTunes. Turn off calendar syncing in iTunes.
I don't know what you mean by "removed some from my mibile devices". Are you sayig some calendars are gone on some devices that have been registered with iCloud? -
Finder does not show EPS PICT or TIF previews in column view in 10.4
It seems in the upgrade between 10.3 and 10.4 they dropped the ability to see the low res PICT or TIF image that is stored in the EPS file. In other apps, InDesign, Quark I can see it in column view open dialogue box but no such luck with Finder windows.
I have seen the question on a few other forums but there has been no satisfactory answer to this question. I can't just use AI files and make them PDF compatible either, which is what I have been hearing as a common workaround. As of now I have been using EPSwizard:
http://www.jolauterbach.com
It used to be free but now it is a pay version. If anyone wants the older free app reply to me and I can give it to you. It is a decent solution until I can find someone who knows how to tweak the finder to see these again.
My best guess that Mac didn't want to show a low res image in their pretty OS so they deep 6'ed it in the 10.4 version. I am pretty sure that it is just not reading the resource/data fork where that image is contained. It would make my life so much more enjoyable if I didn't need to load an app everytime I want to see what an EPS file looks like inside.
If anyone can clue me in on a tutorial on how to change this let me know.
Power Mac G5 1.6GHz Single Mac OS X (10.4.7)These files are EPS files not image files. They have a TIF or PICT preview inside the file, I believe in the resource or data fork of the file. The file extension is EPS, and I cannot change that, just type the letters. The actual extension, the 4 digit one, that is invisible is the one that is important. In the case of EPS the actual extension is EPSF or EPSI.
Just to try the fix I changed the name and it did try to make a preview, but it came up with nothing. It was blank in column view. The OS still reads it as an EPS regardless of the change in file extension.
Anyone have some answer that involves a command line, I think that is really going to be the only thing that solves this one.
Power Mac G5 1.6GHz Single Mac OS X (10.4.2)
Power Mac G5 1.6GHz Single Mac OS X (10.4.2)
Power Mac G5 1.6GHz Single Mac OS X (10.4.2)
Maybe you are looking for
-
Internal DVD drive is shot. Can I install SL from an external DVD drive?
Hi folks, a quick (well actually a few) questions. I've had my imac since early '06. It's currently running Tiger, and I'd like to install Snow Leopard. The problem is that the internal DVD drive is shot. It's been occasionally refusing to accept DVD
-
Exporting images looks really bad!
Forum, I am exporting images for a slideshow to make in DVD Studio Pro for my final outputted project. The problem is that the images look really choppy and very bad. They look interlaced. I'm working with NTSC DV. Is this normal? Would it help is I
-
I am having the same problem with my iMac and new MacBookPro 13" with retina. If I leave the computer on overnight (it goes to sleep and I wake it up in the morning), if I use the automatic feature in Word, QuickBooks, Quicken to insert today's dat
-
Is the Clip Distortion plugin included in the Logic Express 9?
Hi I'm thinking of buying Logic Express. Is the Clip Distortion plugin included to the Express edition of Logic 9? I need that to create some cool hardstyle/hardcore kicks. Regards, Jostein
-
I am unable to receive email from hotmail. It is spinning with checking for email message. Some time it downloads old emails and then those emails disappears and redownloads. some times shows connection to the server failed. From laptop there are n