How do I refresh java table?

Asked By 7060 points N/A Posted on -
qa-featured

Can any one tell me, how do I refresh table using java language in desktop application?

Actually I made one application that take input from user and save into database.

But java table does not show new data which i inputted into database.

SHARE
Answered By 0 points N/A #80384

How do I refresh java table?

qa-featured

Actually you need to create an updatable result set if you want to be able to edit things in the future using JavaScript. In the create Statement part of your Result Set, you need to put a constant as CONCUR_UPDATABLE. You can check whether a table is updatable or not. You can use Java code: int concurrency = uprs.getConcurrency(); to check if the table is updatable. Value 1008 indicates that it is updatable.

You can now use other Java codes to edit the table and update the data. You must call the update Row before moving your cursor or else your update will not take effect. You can use the following sample to generate it by placing the word "change" with the replaced value. 

  uprs.last();
  uprs.updateFloat("change");
  uprs.updateRow();
 

 

 

Related Questions