Disclaimer

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Tuesday, October 16, 2012

ADF 11g: CreateAndInitRow


This one is rather a quite small post but might be useful for people quickly looking for a way to initialize a vo row at the time of creation. This method like createRow() only creates a new row but does not actually inserts into the vo. So, you will still need to call vo.insertRow(row). Here, is the syntax

            Row myRow = ruleAttrIter.createAndInitRow(new NameValuePairs(new String[] { "AttributeName" }, new Object[] { "AttributeValue" }));

More than one attribute can be supplied comma separated.

No comments: