Quantcast
Channel: SCN : Popular Discussions - SAP Enterprise Portal: Content Management and Collaboration
Viewing all articles
Browse latest Browse all 1826

Using PDK reading an Excel file from KM Folder.

$
0
0

Hi Guru's,

When i tried to read excel from KM, i am getting error because of IUser type.

//com.sapportals.portal.security.usermanagement.IUser  - is used 
IUser user =(IUser)request.getUser();
IResourceContext resourceContext = new ResourceContext(user);     
IResourceFactory factory =     ResourceFactory.getInstance();
RID rid = RID.getRID("/documents/test/tests.xls");
ResourceContext context = new ResourceContext(user);

 

The error is as follows:

types com.sapportals.portal.prt.session.IUserContext and com.sapportals.portal.security.usermanagement.IUser are incompatible; both define getFax(), but with different return type com.sapportals.portal.security.usermanagement.IUser user =(com.sapportals.portal.security.usermanagement.IUser)request.getUser(); ERROle with -deprecation for details.

Any solution to overcome this?

 

Thanks in advance,

Ram


Viewing all articles
Browse latest Browse all 1826

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>