.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan
Santhakumar Munuswamy
Asad Ali
Fauzul Azmi
Post New Web Links

How to Add&Update the value of manage metadata field in Silverlight using sharepoint client object m

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :SharePoint
 

How to Add&Update the value of manage metadata field in Silverlight using sharepoint client object model ??

This is my code :

ClientContext clientContext = ClientContext.Current;
                Web oWebsite = clientContext.Web;
                ListCollection collList = oWebsite.Lists;
                ListItem oListItem;

                List oList = clientContext.Web.Lists.GetByTitle("Employees");

                oListItem = oList.AddItem(new ListItemCreationInformation());
                oListItem["Title"] = "My new item";

oListItem["Geography"] = "Kroea";//This is MetaData Field

oListItem.Update();

 

the oListItem["Geography"] = "Kroea" must be formatted like oListItem["Geography"] = "2;#Kroea",that code will be worked.

The "2


View Complete Post


More Related Resource Links

How to Add&Update the value of manage metadata field in Silverlight using sharepoint client object m

  

How to Add&Update the value of manage metadata field in Silverlight using sharepoint client object model ??

This is my code :

ClientContext clientContext = ClientContext.Current;
                Web oWebsite = clientContext.Web;
                ListCollection collList = oWebsite.Lists;
                ListItem oListItem;

                List oList = clientContext.Web.Lists.GetByTitle("Employees");

                oListItem = oList.AddItem(new ListItemCreationInformation());
                oListItem["Title"] = "My new item";

oListItem["Geography"] = "Kroea";//This is MetaData Field

oListItem.Update();

 

the oListItem["Geography"] = "Kroea" must be formatted like oListItem["Geography"] = "2;#Kroea",that code will be worked.

The "2

Video: SharePoint 2010: Silverlight Client Object Model

  
In this video you will learn how to use the SharePoint client object model to program a Silverlight application against SharePoint data. (Length: 9:03)

Video: Developing Silverlight Applications by Using the SharePoint 2010 Client Object Model

  
This demonstration shows how to use the client object model from a Silverlight application. (Length: 11:15)

Client Object Model - update metadata

  
Is there a way that I can update the metadata for a document in a document list using a UniqueId without having to speciify the library name? If I know the library name and the ID I know how to update the metadata but what I was hoping was that there would be a way of doing it using a UniqueId without knowing exactly which Library the document is in.

How to assign value to managed metadata field from client object model?

  

I am working on the project that is based on Client Object Model which should be able to create/update document sets form client side with possibility to fully manage column values. I've managed so far to manipulate from client most of field values but i'm still struggling with managed metadata fields. I know that there isn't any support for this type of field in CSOM so I used TaxonomyClientService which is available from server side and managed to retrieve data necessary for displaying field info. I also discovered that value for this field should be assigned in string form like [WssId]#[TermName]|[TermGUID] to be valid. My problem is how to retrieve WssId. I know it can be found in TaxonomyHiddenList of site collection but since it contains only values that were used in site collection so far it doesn't represent full solution for my problem. Any help would be appreciated.

Thanks in advance..


Silverlight Application using Sharepoint as a datasource using the Client Object Model

  

Hi,

In my scenario i have a Silverlight application hosted in ASP.NET. I want to push/pull data from a sharepoint site using the Client Object Model. Is this possible?

Notice that i don't want my Silverlight app as a web part...it is hosted in asp.net and just uses Sharepoint 2010 as a data source. Will the Client Object Model work here or are sharepoint web services the only way out??. I can host both the SL app and the sharepoint site in the same domain if required...

Please advice

Cennest

www.cennest.wordpress.com

 

 


How to update workflow task and terminate workflow using silverlight client object model.

  

Hi,

I have created a sequential workflow using visual studio. I also created a content type inherited from the workflow-task content type. Workflow creates a task-item in the task list. I want to update the workflow task using the silverlight client object model. I find on the internet and WorkflowTask.AlterTask() method to update the workflow task item. But I didn't find the equivalent of WorkflowTask.AlterTask(). Can any one help me to update the workflow task from the silverlight client object model?

I also want to terminate the workflow instance using silverlight client object model, but i didn't find any way to terminate the workflow using client object model?


SharePoint 2010 site using FQDN and Silverlight Client object model issues

  

I am working a FQDN installation of SP2010 site and I am having touble connecting to it from Silverlight, when my Silverlight app is running outside that SP2010.
Just to include the note, that if I use the CLR client object model, from a Console Application, I am able to connect to the FQDN SP 2010 site, and get all data I need. Using the CLR and monitoring with fiddler there are two consequent requests made: first GET to http://my_sp2010_site_fqdn/_vti_bin/sites.asmx, then POST to http://my_sp2010_site_fqdn/_vti_bin/client.svc/ProcessQuery and Everything works fine.
However when it comes to the Silverlight Client I have troubles.
If I put my silverlight application in a web part inside my site, it works. If I put it on a regular site, outside SP - it does not work and following behavior is observed:

There is initial request sent to
http://my_sp2010_site_fqdn/_vti_bin/sites.asmx
but there is no consequent request to http://my_sp2010_site_fqdn/_vti_bin/client.svc
That second request does not even show up in fiddler.

private ListItemCollection _projects;
...

ClientC

How to Get ListItems count in all the lists of a SharePoint site through Silverlight Client object m

  
Hi All, I need to get the count of the ListItems in all the lists in my sharepoint site. This is my coding

 How much ever i try I'm getting an exception " The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested."

Using Silverlight Client Object Model outside Sharepoint ?

  

Is there any way to make the Silverlight Client Object work with SharePoint 2010, if the Silverlight Application is not hosted inside the SharePoint itself? So far I was able to make it work only if I host my Silverlight inside SharePoint, and I can't make it work in a stand-alone Silverlight Application. I have clieantaccesspolicy file within the sharepoint site I want to connect to, but the client itself does not work. There is initial request sent to
http://my_sp2010_site_fqdn/_vti_bin/sites.asmx
but there is no consequent request to http://my_sp2010_site_fqdn/_vti_bin/client.svc and my RequestFailed handler is hit with following exception:

e.Exception is SecurityException:
   at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
   at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryGetResponseAsyncCallback(IAsyncResult asyncResult)
  
Inner Exception is:
System.Security.SecurityException  
   at System.Net.Browser.BrowserHttpWebReque

Accessing SharePoint 2010 Data with the Silverlight Client Object Model (Visual How To)

  
Learn how to use the SharePoint 2010 managed client object model to read and write data in SharePoint sites from Silverlight applications.

Video: Accessing SharePoint 2010 Data with the Silverlight Client Object Model

  
Watch a short video that shows how to use the SharePoint 2010 managed client object model to read and write data in SharePoint sites from Silverlight applications.

Sample: Accessing SharePoint 2010 Data with the Silverlight Client Object Model (Visual How To)

  
Explore code that shows how to use the SharePoint 2010 managed client object model to read and write data in SharePoint sites from Silverlight applications.

SharePoint Batch Update Auto Increment Field Value

  

Hello All,

I am making use of SharePoint List Batch Updating methodology in order to update the items in bulk. I build the query dynamically for each and every item using StringBuilder and process the data ultimately using 'ProcessBatchData' Method.

Now, I have a requirement where I have to increment a particular field value in the query while iterating through each item for building the query. How can I auto-increment a field value for each item in the batch query?


Regards, Raghuraman.V CALAMITY IS THE TOUCHSTONE OF A BRAVE MIND

Client Object Model Resource Center | SharePoint 2010

  
Are you creating client applications that access SharePoint data remotely? Find overviews, guidelines, and programming tasks for all three flavors of the SharePoint Foundation client object model: .NET managed, Silverlight, and ECMAScript.

Creating Custom SharePoint 2010 Field Types and Controls with Visual Studio 2010 and Silverlight 3

  
Learn how developers can create rich experiences in SharePoint Server 2010 publishing sites using Microsoft Silverlight 3.

Quick Note: Building WPF Applications by Using the SharePoint 2010 Client Object Model

  
Learn how to create a Windows Presentation Foundation (WPF) application that uses the SharePoint 2010 client object model to retrieve data from a SharePoint Web site.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend