Wednesday, June 20, 2018

Banner 9: Add Where clause into SQL query runtime

Banner 9: Add Where clause into SQL query runtime


@BeforeQuery
public void fzvacct_BeforeQuery(QueryEvent args) {
 
 
 
  NString acctCode =  this.getFormModel().getKeyBlock().getAcctCode();
  if (acctCode != null && !acctCode.isEmpty()){
  ((IDBBusinessObject)args.getSource()).setWhereClause("ACCT_CODE = '"+acctCode+"' ");
  }
 


}

No comments:

Post a Comment

AWS how to delete VPC when it has error with Network interface , Gateway decencies

   how to delete VPC when it has error with Network interface , Gateway decencies  in AWS 1. Check if it is running on EC2 instance then Sto...