This is a migrated thread and some comments may be shown as answers.

Sales Dashboard - Help Understanding

3 Answers 87 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
jfkrueger
Top achievements
Rank 1
jfkrueger asked on 17 Jun 2011, 05:25 PM
I've got another post out there but it's getting too long and I keep figuring something out and then asking a new question, so I figured it would be best just to start clean. I'm trying to get my own version of the sales dashboard working in vb.net. I am new to Silverlight so I am struggling with a few of the concepts and how things are working in the demo. I do have the code. I think if I could understand a few of these larger concepts I would be much better off and not have to ask as many questions. :-)

So I have gotten to the point where I have the Shell project, the Common project, and one module (the listbox control for salesperson selector). I have been unsuccessful trying to get the listbox control to work with the service proxy but I do have the control working when I have a direct reference to the service and I run that control seperately (in it's own test page). However, when I run the shell project the background comes up, the left region (salesperson selection region) is displayed, but the listbox control (representatives module) does not get loaded into the region and the breakpoints in that project never get loaded. So what I don't understand is how in the shell.xaml file this code works:

<common:DashboardControl Regions:RegionManager.RegionName="RepresentativesRegion"
                                 Title="Sales Representatives"
                                 Grid.Row="1"
                                 Grid.RowSpan="2"/>

How does the DashboardControl know to load the RepresentativesModule into this region? I don't see any reference to the Regpresentatives Module or control anywhere in the common project where the DashboardControl.xaml resides. Any help with how this all works is greatly appreciated.

Thanks!

3 Answers, 1 is accepted

Sort by
0
jfkrueger
Top achievements
Rank 1
answered on 17 Jun 2011, 09:20 PM
Okay I have this issue solved. I see how the module is tied in through the bootstrapper, it just wasn't loading due to some namespace conflicts. Once I got those all figured out it is working nicely with the salesperson listbox populated. I couldn't get it to work using the proxy so I had to actually add the service to the module but that is an issue for another day. Now what I need to figure out is how I would pass a value from the shell application to the representatives module. Say for example I needed to pass the company ID of the currently logged in company so as to return the salespeople for that company. I can pass the company ID to the shell program using the init params but how do I then pass that on to the representatives module so as to return the correct salespeople?

I have looked into and tried local messaging but that doesn't work and doesn't seem to fit for this situation. Once again, thanks for any insight.
0
jfkrueger
Top achievements
Rank 1
answered on 27 Jun 2011, 08:58 PM
Still stuck on this after 10 days...anyone??

Thanks!
0
Kiril Stanoev
Telerik team
answered on 28 Jun 2011, 02:16 PM
Hi Joe,

Please take a look at the reply I posted on your other thread and let me know what your opinion is. We'd be glad to further assist you.

Greetings,
Kiril Stanoev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
jfkrueger
Top achievements
Rank 1
Answers by
jfkrueger
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Share this question
or