Hi,
I am trying to get the list of all the manged objects within a project, the first method just works fine but the other does not, here is the code sample, I am using, please suggest.
Working Code:
ip = f.getManagedObjectsByType( rp, "PkAppMessage");
for (int i=0;i < list.size();i++) {
ManagedObject mo = (ManagedObject) list.get(i);
AttributeData[] at = ((ContentInstance) mo).getAttributes();
for (int a=0;a<at.length;a++) {
log( prefix+" attrib: "+at[a].getName()+"="+at[a].getValue());
} }
Problem Code:
ip = f.getManagedObjects(rp);
for (int i=0;i < list.size();i++) {
ManagedObject mo = (ManagedObject) list.get(i);
AttributeData[] at = ((ContentInstance) mo).getAttributes();
for (int a=0;a<at.length;a++) {
log( prefix+" attrib: "+at[a].getName()+"="+at[a].getValue());
} }
Regards,
Markus