How can load the class name from the available child class details

Hi Team,   I want to get the class name from the child (subclass)deatils. We have part & document as a class for the base class Item.  I have sublass called “XYZ” and details of it  like number, type etc , i am able to read it.  But in my code i need to check for  only Part type class not the Document type. Since i am reading the CO first to get  Affected Item and iterate to get item deatils.  while iteration only i want to check that the Affected item is of Document type and skip its check in my code. below code is available in the user guide . But i do not want to check it from the admin user deatils. IAgileClass[] classes = m_admin.getAgileClasses(IAdmin.CONCRETE); for (int i = 0; i < classes.length; i++) { if (classes[i].getTargetType() == IItem.OBJECT_TYPE) { System.out.println(“Class Name : ” + classes[i].getName()); System.out.println(“ID : ” + classes[i].getId()); } } }

Agile User Asked on June 6, 2022 in Product Collaboration.
Add Comment
1 Answer(s)

Personally, I usually check this by fetching the IAgileClass of the affected item, and then using the isSubclassOf method:

ITable affectedItems = ichg.getTable(ChangeConstants.TABLE_AFFECTEDITEMS);

Iterator it = affectedItems.Iterator();


     IRow row =(IRow)

     IAgileClass subcls = row.getReferent().getAgileClass();



     else if(subcls.isSubclassOf("Parts"){





Agile User Answered on June 6, 2022.

Thanks!  It will help me

on June 8, 2022.
Add Comment

Your Answer

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