Subject | To show an integer variable in UI - Java - JBuilder |
---|---|
Author | cristinavelascog |
Post date | 2004-12-20T13:38:47Z |
Hi,
I need to show five integer variables in the User Interface.... I am
trying to do it with a queryDataSet, but I don´t sure if this is the
right way...
So the code I have is the following :
queryDataSetTotalTabacos.open();
DataRow DataRowTotalTabacos = new DataRow
(queryDataSetTotalTabacos);
DataRowTotalTabacos.setInt
("TotalTabacos40",TotalizadorTabacosMínimos40);
DataRowTotalTabacos.setInt
("TotalTabacos40",TotalizadorTabacosMínimos50);
DataRowTotalTabacos.setInt
("TotalTabacos40",TotalizadorTabacosMínimos60);
DataRowTotalTabacos.setInt
("TotalTabacos40",TotalizadorTabacosMínimos70);
DataRowTotalTabacos.setInt
("TotalTabacos40",TotalizadorTabacosMínimos80);
int tt40 = (int)queryDataSetTotalTabacos.getInt("TotalTabacos40");
int tt50 = (int)queryDataSetTotalTabacos.getInt("TotalTabacos50");
int tt60 = (int)queryDataSetTotalTabacos.getInt("TotalTabacos60");
int tt70 = (int)queryDataSetTotalTabacos.getInt("TotalTabacos70");
int tt80 = (int)queryDataSetTotalTabacos.getInt("TotalTabacos80");
queryDataSetTotalTabacos.addRow(DataRowTotalTabacos);
queryDataSetTotalTabacos.refresh();
queryDataSetTotalTabacos.last();
queryDataSetTotalTabacos.close();
The idea is to show the variables through a jdbtextfield, but the
querydataset doesn´t upgrade......
Any body has an idea to do this task?
Regards,
Cristina
I need to show five integer variables in the User Interface.... I am
trying to do it with a queryDataSet, but I don´t sure if this is the
right way...
So the code I have is the following :
queryDataSetTotalTabacos.open();
DataRow DataRowTotalTabacos = new DataRow
(queryDataSetTotalTabacos);
DataRowTotalTabacos.setInt
("TotalTabacos40",TotalizadorTabacosMínimos40);
DataRowTotalTabacos.setInt
("TotalTabacos40",TotalizadorTabacosMínimos50);
DataRowTotalTabacos.setInt
("TotalTabacos40",TotalizadorTabacosMínimos60);
DataRowTotalTabacos.setInt
("TotalTabacos40",TotalizadorTabacosMínimos70);
DataRowTotalTabacos.setInt
("TotalTabacos40",TotalizadorTabacosMínimos80);
int tt40 = (int)queryDataSetTotalTabacos.getInt("TotalTabacos40");
int tt50 = (int)queryDataSetTotalTabacos.getInt("TotalTabacos50");
int tt60 = (int)queryDataSetTotalTabacos.getInt("TotalTabacos60");
int tt70 = (int)queryDataSetTotalTabacos.getInt("TotalTabacos70");
int tt80 = (int)queryDataSetTotalTabacos.getInt("TotalTabacos80");
queryDataSetTotalTabacos.addRow(DataRowTotalTabacos);
queryDataSetTotalTabacos.refresh();
queryDataSetTotalTabacos.last();
queryDataSetTotalTabacos.close();
The idea is to show the variables through a jdbtextfield, but the
querydataset doesn´t upgrade......
Any body has an idea to do this task?
Regards,
Cristina