Skip to main content

Posts

Showing posts with the label create

ADF Create Vs CreateInsert

Three ways in ADF to create a new row: Create, CreateInsert and CreateWithParams As per fusion guide: What happens when you use Create ? // create a new row for the view object Row newRow = yourViewObject.createRow(); // mark the row as being "initialized", but not yet new newRow.setNewRowState(Row.STATUS_INITIALIZED); When CreateInsert is used? It performs this additional line of code to inert the row into the row set and make it available on the iterator. // insert the new row into the view object's default rowset yourViewObject.insertRow(newRow); When CreateWithParams is used? CreateWithParams does similar tasks as CreateInsert except that it gives the feasibility to define default values declaratively for the row attributes. Suggested usages:       - With ADF forms you can use Create or CreateInsert.       -  It is always safe to use CreateInsert when you have af:table as it will create a empty record and also puts it in recordse...