Чтобы убрать строку статуса в PanelCollection нужно выставить свойство
FeaturesOff: statusBar
FeaturesOff: statusBar
// Get VewRowImpl someVewRowImpl from VO
someVewRowImpl.setAttribute( "SomeAttrib","New Value");
EntityImpl someEOImpl = someVewRowImpl.getEntity(0);
DBTransaction txn = getDBTransaction();
txn.validate();
txn.postChanges();
txn.removeTransactionPostListener(someEOImpl);
//The below two lines may cause your EO to skip
// beforeCommit() and afterCommit() call backs.
//Normally you can skip the below two lines,
// use it if you need to clear the EO cache once data is posted to DB
// This makes sense if you have millions of rows in an update and
// and you want to get rid of the cached rows without any delay
txn.removeTransactionListener(someEOImpl);
txn.clearEntityCache(null);
public void onLoop(ActionEvent actionEvent) {
long row_count = getVoImpl().getEstimatedRowCount();
long rows_per_page = getVoImpl().getRangeSize();
long page_count = row_count / rows_per_page + 1;
System.out.println("total rows:" + row_count + " rows at page:" + rows_per_page + " numb of pages:" + page_count);
int m = 1;
for(int i=1;i<=page_count;i++) {
System.out.println("--- Page: " + i);
getVoImpl().scrollToRangePage(i);
for(int j=0; j<rows_per_page && m<=row_count; m++, j++) {
Row row = getVoImpl().getRowAtRangeIndex(j);
System.out.println(m +" "+ row.getAttribute(0)+ " " + row.getAttribute(2) );
}
}
}
set EXTRA_JAVA_PROPERTIES= -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled
set MEM_ARGS=%MEM_ARGS% %EXTRA_JAVA_PROPERTIES%
public void setQuerable(String attributeName, Boolean isQuerable) {
int indx = this.getAttributeIndexOf(attributeName);
ViewAttributeDefImpl attr = (ViewAttributeDefImpl)this.getAttributeDef(indx);
attr.setQueriable(isQuerable);
}