Here I am showing how to insert a new row in ADF view object programmatically.
For this create a method in managed bean for your button on that you want to insert row.
and call this AMImpl method that makes use of ViewObjectImpl createRow method to add a new row in RowSet
Created a method in AMImpl class and it’ll be called in managed bean using binding layer
This method creates a row in ViewObject, and you can set(Insert) this row with some values using this simple snippet of code
This is how you can create a row in ViewObject
Cheers 🙂 Happy Learning
An Oracle ACE, Blogger, Reviewer, Technical Lead working on Oracle ADF