Sometimes database has to be updated after each report run showing that a report has been run(example like last run date).
In Birt simple way to achieve this is to execute update query in the 'beforeClose' method of dataset.
var myTxn = MXReportTxnProvider.create(" maximoDataSource");
var updateSqlText = new String();
updateSqlText = " update poline set enterdate= SYSDATE where enterdate is null'";
var apextractStmt = myTxn.createStatement();
apextractStmt.setQuery( updateSqlText);
myTxn.save();
---------------------------------------------------------------------------- All the messagesbelow are just forwarded messages if some one feels hurt about it please add your comments we will remove the post.Host/author is not responsible for these posts.
In Birt simple way to achieve this is to execute update query in the 'beforeClose' method of dataset.
var myTxn = MXReportTxnProvider.create("
var updateSqlText = new String();
updateSqlText = " update poline set enterdate=
var apextractStmt = myTxn.createStatement();
apextractStmt.setQuery(
myTxn.save();
---------------------------------------------------------------------------- All the messagesbelow are just forwarded messages if some one feels hurt about it please add your comments we will remove the post.Host/author is not responsible for these posts.
No comments:
Post a Comment