Not able to redline the Manufacturer status as Preferred
Hi,
I am trying to redline the Preferred status of the RedlineManufacturers Table of Items in an MCO. Tried the below code:
IAgileList cell0 = (IAgileList) itemno.getCell(ItemConstants.ATT_MANUFACTURERS_PREFERRED_STATUS);
System.out.println(cell0);
cell0.setSelection(new Object[]{“Preferred”});
As the cell0 returns null, it doesn’t go further. I need to update the value there.
Thanks!
Hi Nagma,
Use the below code.
ITable amlTab = item.getTable(ItemConstants.TABLE_REDLINEMANUFACTURERS);
Iterator iter = amlTab.iterator();
while (iter.hasNext()) {
IRow amlRow = (IRow) iter.next();
amlRow.setValue(ItemConstants.ATT_MANUFACTURERS_PREFERRED_STATUS, “Preferred”);
}
BR, Nimish