Hi Guys,
I have around 400-500 users in our system.
All of them want their Infoview homepage to be Public Folder tree structure.
I browsed through this link http://scn.sap.com/docs/DOC-6324. But this is for changing the viewer properties.
Below is the code from the comments section.
<%@ page import = "com.crystaldecisions.sdk.plugin.desktop.user.*,
com.crystaldecisions.sdk.occa.infostore.*,
com.crystaldecisions.sdk.framework.*,
com.crystaldecisions.sdk.exception.SDKException"
%>
<%
String username = "Administrator";
String password = "password";
String cmsname = "cms name";
String authtype = "secEnterprise";
IEnterpriseSession oEnterpriseSession = null;
try
{
oEnterpriseSession = CrystalEnterprise.getSessionMgr().logon(username, password, cmsname, authtype);
IInfoStore oInfoStore = (IInfoStore)oEnterpriseSession.getService("","InfoStore");
String query = "select * from ci_systemobjects where si_name='administrator' and si_progid='CrystalEnterprise.User'";
IUser adminUser = (IUser)oInfoStore.query(query).get(0);
String adminInfoViewPref = adminUser.getProfileString("desktopsettings");
query = "select * from ci_systemobjects where si_progid = 'CrystalEnterprise.User' and si_name not in ('administrator', 'guest')";
IInfoObjects oInfoObjects = oInfoStore.query(query);
if(oInfoObjects.size() < 1)
out.println("no users found!");
else
{
for(int i=0; i < oInfoObjects.size(); i++)
{
IUser oUser = (IUser)oInfoObjects.get(0);
oUser.setProfileString("desktopsettings", adminInfoViewPref);
}
oInfoStore.commit(oInfoObjects);
}
}
catch(SDKException e)
{
out.println(e.toString());
}
finally
{
if(oEnterpriseSession != null)
oEnterpriseSession.logoff();
}
%>
I get the below error:
com.crystaldecisions.sdk.exception.SDKServerException: Active Directory Authentication failed to get the Active Directory groups for the account with ID "7BD5F274041E0E42893F9CFAB1FE146D:C3MARTI;CN=poh1393, etc . . .
What i want to achieve is the Public Folder list should be displayed as the homepage for all the users.
Can someone help me out with this code or provide me a working code?
Thanks a lot
Shreyas