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!

Add Comment
1 Answer(s)

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

Agile User Answered on June 8, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.