Custom Start Page Task Summary

Discussions related to SoftPro Select user interface development.

Moderator: Phil Barton

Post Reply
MattW
Posts: 46
Joined: Tue May 26, 2015 5:17 pm

Custom Start Page Task Summary

Post 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?
Graham Campbell
Posts: 61
Joined: Fri Jul 01, 2011 10:06 am
Location: Raleigh, North Carolina
Contact:

Re: Custom Start Page Task Summary

Post 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();
Graham Campbell
SoftPro Software Engineer
Post Reply