Hi,
I am trying the following code snippet from help.sap.com. I have included the coresponding jar(com.sap.portal.ivs.api_iview_api.jar) to my class path. But the method instantiateDescriptor() can't be called on IiViews object. Could anybody please suggest some solution to proceed further.
IiViews iViewSrv = (IiViews)
PortalRuntime.getRuntimeResources().getService(IiViews.KEY);
INewObjectDescriptor IVtoCreate = (INewObjectDescriptor)
iViewSrv.instantiateDescriptor(CreateMethod.NEW,
"par:/applications/myProject/components/myComponent",
request.getUser());
Regards,
Manoj