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?
Custom Start Page Task Summary
Moderator: Phil Barton
-
- Posts: 61
- Joined: Fri Jul 01, 2011 10:06 am
- Location: Raleigh, North Carolina
- Contact:
Re: Custom Start Page Task Summary
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();
Graham Campbell
SoftPro Software Engineer
SoftPro Software Engineer