Scheduling Deski / FullClient with prompts on BOXI R2 with C#
Complete solution to scheduling a Deski / FullClient report with prompts on Business Objects XI R2 with C# SDK.
SessionMgr oSessionMgr = new SessionMgr();
EnterpriseSession oEnterpriseSession = oSessionMgr.Logon(“user”, “pass”, “cmsname”, “secEnterprise”);
EnterpriseService oEnterpriseService = oEnterpriseSession.GetService(“InfoStore”);
InfoStore oInfoStore = new InfoStore(oEnterpriseService);
InfoObjects ios = oInfoStore.Query(String.Format(“Select * From CI_INFOOBJECTS Where SI_NAME = ‘{0}’ and SI_INSTANCE = ‘false’”, name));
InfoObject io = ios[1];
if (io is FullClient)
{
FullClient fullClient = (FullClient) io;
fullClient.SchedulingInfo.RightNow = true;
fullClient.FullClientFormatOptions.Format = CeFullClientFormat.ceFullClientFormatExcel;
int idx = 0;
foreach (FullClientPrompt o in fullClient.FullClientPrompts)
{
o.Values.Clear();
foreach (string c in PARAMS[idx])
{
o.Values.Add(c);
}
idx++;
}
oInfoStore.Schedule(ios);
}
Enjoy!















(1 votes, average: 4.00 out of 5)