Wednesday, July 18, 2012

Create New Rows

The best way to create new rows is in pagedefinition define oprataion createInsert or createWithParm for viewobject and execute this operation programmatically. This can even be used when we have to create n number of rows. If you use viewobject.createRow() this will take lot of time to load. Sample code is: op = dbc.getOperationBinding("Createwithparameters"); for(int i=1; i<=15;i++){ op.getParamsMap().put("parm1", value1); op.getParamsMap().put("parm2",value2); op.execute(); if(!op.getErrors().isEmpty()){ bhcLogger.severe("Error in Initializing"); } }