Error: Redline attributes cannot be modified once the change has been released

We are trying to update the Page Two attribute value but getting above error. We are able to add redline for BOM successfully but when we go to Page Two (inside Title Block tab) for affected items and try to update the attribute we get this error.

Heres how we are trying to access it:

1. Get affected item table
getTable(ChangeConstants.TABLE_AFFECTEDITEMS)

2. get item 
IItem item = (IItem)session.getObject(IItem.OBJECT_TYPE,row.getCell(ChangeConstants.ATT_AFFECTED_ITEMS_ITEM_NUMBER).toString());

3. get TABLE_REDLINEPAGETWO (i.e. Page Two redline table)
item.getTable(ItemConstants.TABLE_REDLINEPAGETWO);

4. set value for attribute in the table.
redlineRow.setValue(ItemConstants.ATT_PAGE_TWO_LIST11,”XXXXXX”);

One more thing, we can update this attribute from front end (application) in redline. Even we update it from front end and can see it as REDLINED , we can not see the value of attribute by get method :
redlineRow.getValue(ItemConstants.ATT_PAGE_TWO_LIST11)

Please provide suggestion to resolve it.

Thanks,
Vaibhav

Agile Angel Asked on April 12, 2019 in IT and Networking.
Add Comment
1 Answer(s)
Best answer

The session.getObject() will return the latest released revision. You want to iterate through your affected items table and call row.getReferant() to return the revision associated with the change order.

Agile Angel Answered on April 14, 2019.

Hi Steve, 

It worked. Thanks a lot for your suggestion.

Thanks,
Vaibhav

on April 17, 2019.
Add Comment

Your Answer

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