Dynamic data?

May 3, 2008 at 4:29 PM

In the example, we see that the values are hard coded in the _loadChartModel method as follows:

double, _chartYValues = {{135235, 155535, 141725},
{106765, 131725, 127868},
{108456, 119326, 139326},
{136765, 147265, 184349},
{107868, 113968, 174349},
{103019, 119145, 182080},
{149037, 156071, 187799},
{133013, 169140, 186010},
{139994, 186871, 158003},
{191246, 180196, 153177}};

Now in the past, when I would write managed code, it would be server side, where I could easily access my data. If I understand correcetly, in this circumstance, even though the code is managed, it is going to run client side, where I assume it will be unable to access server-side resources such as a database. Can anyone suggest how I might dynamically populate the values of this control with values from my database? Is the only solution to create a serverside web service and use that client side?


May 5, 2008 at 9:25 PM
That's pretty accurate. You're on the client side w/ SL, your data is on the server. The only way to bridge that gap is through a web service. I don't have any links handy, but I stumbled across a person writing a CRUD web service. Not sure if they're good or not, but they exist.
May 8, 2008 at 3:13 PM
Thank you...