Agile (MOSC)

MOSC Banner

How to change a Composition LifeCycle to Archive?

edited Jun 23, 2015 2:43PM in Agile (MOSC) Question

While on the Compliance tab for a Manufacturer Part, I can archive a composition by clicking on the <Archive> button at the bottom of the screen. When I tried to simulate such action from a Java PX using the code below, and received an error indicating the attribute is read only. Can someone tell me how I can achieve what I need?

ITable declaTable = mpnPart.getTable(ManufacturerPartConstants.TABLE_COMPOSITIONS);

Iterator declaIter = declaTable.iterator();

// while loop to get the matching row

while (declaIter.hasNext()) {

                                                                                             

                IRow declaRow = (IRow)declaIter.next();

                String declaSpName = declaRow.getValue

                                (ManufacturerPartConstants.ATT_COMPOSITIONS_SPECIFICATION).toString();

                if(declaSpName.equalsIgnoreCase("Generates Hazardous Waste")){

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center