Skip to Content
0
Former Member
Apr 02, 2011 at 05:03 AM

webdynpro table

24 Views

Hi,

i have created a node of cardinality 1..n and created a table view and button(add entry),when the button is clicked a new row should be created .Following is the code i have written to create a new row into the table:

IPrivateBOMandRecipeView.ITable_BOM_1Element element=wdContext.nodeTable_BOM_1().createTable_BOM_1Element();

element.setItemNumber(Integer.toString(itemNumber()));

element.setItemCategory(item_category);

element.setComponentCode(component_code);

element.setComponentDescription(component_desc);

element.setStorageLocation(storage_loc);

element.setComponentQuantity(component_quantity);

element.setSortString(sort_string);

element.setComponentUOM(component_uom);

element.setPhaseToBeAssigned(phase);

wdContext.nodeTable_BOM_1().addElement(element);

The problem is when ever i click the addentry(button) new row is created but the first row values are repeated twice.