Skip to Content
0
Former Member
Jul 20, 2008 at 08:35 AM

get URL, code link properties of iview

112 Views

Hello SDN,

I have few iviews in a folder. I have a program which iterates through all the objects in folder and if the object is an URL iview, i want to open it in a new window using "window.open(Url)" Two questions i have,

to check if the object is an URL iview, I am using this code

String path = "<path of the object>";

IPcdContext targetobject = (IPcdContext) initialContext.lookup(path);

Object attr4 = iattrs.get("CodeLink").get().toString();

and i want to compare it with the "com.sap.portal.httpconnectivity.urliviews.runtime"

but i get attr4 as "null".

although i know that it is a URL iview, how do i get the actual URL in the URL iview. what property should i access and how?

could someone please help?

thank You