Skip to Content
0
Former Member
May 04, 2010 at 08:13 PM

Retrieve CodeLink of PCD iView

67 Views

I have written a JSPDynPage application to list all IViews in the PCD. For each iView in the list, I want to display several attributes. I am successfully retrieving "last changed by" as well as "quicklink", but I have not been able to retrieve "CodeLink". The call for CodeLink returns a nullPointer. See code below. Any thoughts on how to successfully retrieve the "CodeLink" attribute? Thanks in advance!

try {

this.setLastChangedBy(

sr.getAttributes().get("com.sap.portal.pcd.gl.LastChangedBy").get().toString());

} catch (Exception e) {

this.setLastChangedBy("");

}

try {

this.setQuicklink(

sr.getAttributes().get("com.sap.portal.navigation.QuickLink").get().toString());

} catch (Exception e) {

this.setQuicklink("");

}

try {

this.setCodeLink(

sr.getAttributes().get("CodeLink").get().toString());

} catch (Exception e) {

this.setCodeLink(e.toString());

}