on 07-25-2014 7:57 AM
Hi Guru,
I am trying to get the hit counts from the report who have viewed , i followed some blog in sdn and created successfully.
Now i am getting the hit counts when the documents viewed by user, But i need to get user id who has viewed the document through code.
So kindly provide me piece of code to retrieve user id who viewed the documents
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Govardan,
Thanks for the code.
I tried to add the security api to my KM portal Application by creating extlib dc, but when I add com.sap.security.api.sda to that DC its showing deprecated and i am unable to add it.
Is there is anyway to add com.sap.security.api.sda to my KM application?
Regards,
Ragav
hi ragavendra ,
Im not able to share the screen shots due to security reasons ,i.e im not able to upload any kind of file from system, but i can share the code that i m using .
select your dc, right click->development component->show in ->component properties
in the dependency tab , click on add , there you just select this component
"com.sap.security.api.sda"
------------------------------------------------------------------------------------------------------------------------------------------------
try
{
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
}
catch(Exception e)
{
wdThis.handleException("Error *************, Please try after sometime or Kindly Contact Support Desk",e);
}
----------------------------------------------------------------------------------------------------------------------------------------------
Regards
Govardan
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.