View location-enabled Sharepoint List in ArcGIS API for Silverlight App

1133
5
04-26-2011 09:12 AM
BenKoostra
New Contributor II
I have created a location-enabled list in Sharepoint using ArcGIS Mapping for Sharepoint. The layer displays fine in a map web part on a Sharepoint page.

I would like to display this Sharepoint list data as a layer in a Silverlight web mapping app using the ArcGIS API for Silverlight.

Is it possible to connect to the REST service for the Sharepoint list? Could you then plot the points as a featurelayer using the Silverlight API?

Any guidance, ideas, suggestions?
0 Kudos
5 Replies
ElitsaBaklova
New Contributor II
Hi bkoostra_rjc,

If you want to consume your Sharepoint data from within the Silverlight API, you can do this today via the Sharepoint 2010 Client Object Model and your own custom graphics layer implementation.

Sharepoint 2010 Client OM: http://msdn.microsoft.com/en-us/library/ee857094.aspx

Sharepoint Client OM allows you to build queries and execute them against your Sharepoint server, so to get all the items within a list you only need add the two Silverlight dlls and call GetItems(camlQuery) as shown in the link below:

http://msdn.microsoft.com/en-us/library/ee857094.aspx#SP2010ClientOM_Using_CAML_Query_List

Once you get your list items, you can populate your layer with graphics and assign the coordinates and attributes.

There are some future plans on having a Sharepoint layer type out-of-the-box, or at least a public code sample, but we can make no promises at this stage.

Hope this helps,
Elitsa Baklova
0 Kudos
DanielDillard
New Contributor II
Hi Elitsa,

I have read through the links you provided above.  I think I have a good grasp on how this works for a standalone Silverlight application. 

Could you point me in the right direction for consuming a location-enabled SP list from a Map Web Part Command?
0 Kudos
BenKoostra
New Contributor II
Elista,

Thanks for the information and suggestions. Glad to hear that this is on the radar for future development efforts. A public code sample would be useful.

I also found this article specifically relating to using the SharePoint Client Object Model in Silverlight applications - http://msdn.microsoft.com/en-us/library/gg512146.aspx.

Thanks again.
0 Kudos
GarrettMoeller
New Contributor III
Thank you - this is very helpful.

The task that I am attempting is to take the Query by Buffer Sample:
http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#BufferQuery

And instead of it using a map service, use the generated locations from the Sharepoint list.
Would I call out to the list, itself, or the selected layer?

Here is the string that needs tweeking (from the Query by Buffer sample) - assistance using the following code would be great!

_queryTask = new QueryTask("http://sampleserver.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/Parcels/MapServer/...");
_queryTask.ExecuteCompleted += QueryTask_ExecuteCompleted;
_queryTask.Failed += QueryTask_Failed;
0 Kudos
BrianRusso
New Contributor II
I'm interested in this also. I noticed in version 3 of the viewer the tooltip for Browse actually says 'Enter the URL to a SharePoint, ...' but it doesn't seem to work so I'm assuming it's a copy/paste of the string from the SharePoint plugin (?)

Anyone made progress on this?
0 Kudos