Page 1 of 1

Custom Start Page Task Summary

Posted: Wed Dec 02, 2015 1:29 pm
by MattW
We have built a custom start page to replace the default one. This custom page is a WinForm control rather than a web page and for the most part loads successfully.
One issue we are having is getting the Task Summary to load correctly.
I modeled as best I could based off of the default page however it constantly fails to find WorkflowSummary throwing an exception that the value does not exist.
Below is the code being used to get this:

var envICE = _spServer.GetService<IEnvICE>();
dynamic ot = envICE.GetObject("OrderTracking");

var summary = ot.WorkflowSummary;
summary.Refresh();

What would be the appropriate way to get this information to rebuild "Task Summary" in a WinForm rather than a webpage?

Re: Custom Start Page Task Summary

Posted: Fri Dec 04, 2015 7:40 pm
by Graham Campbell
I think you likely just have the wrong object. Try it this way:

Code: Select all

var envICE = _spServer.GetService<IEnvICE>();
dynamic workflow = envICE.GetObject("Workflow");

var summary = workflow.WorkflowSummary;
summary.Refresh();