Out Of The Box Sharepoint (?)

December 1, 2011

Infopath-fields and custom list-columns

Filed under: Uncategorized — Peter Kruisman @ 11:22 am

I blogged before about Infopath-fields and custom list-columns values from a workflow. It proved to be even more challenging and resulted in a code behind solution. As noted before you can retrieve the ID of the form using a dataconnection:
– Formcode.cs
XPathNavigator secunDD = DataSources[“ItemID”].CreateNavigator();
XPathNavigator ID = secunDD.SelectSingleNode(“/dfs:myFields/dfs:dataFields/dfs:DUF/@Id”, NamespaceManager);

I pass this ID to an other class referencing Microsoft.SharePoint. With SPLIST SPITEM and CAML I got hold of the field values
– SPList splijst = web.Lists[“ListName”];
– Squery = string.Format(“<Where><Eq><FieldRef Name=’ID’ /><Value Type=’Counter’>{0}</Value></Eq></Where>”, ID);
– spcollectieItems = splijst.GetItems(query);
– item = spcollectieItems[0];
– VariableToReturnToFormcodeCS = ( item["FieldName"] == null)? "" : item["FieldName"].ToString();

June 9, 2011

Sharepoint LMS

Filed under: Uncategorized — Peter Kruisman @ 9:38 am

In 2008 I blogged about the Sharepoint LMS. I suspected then that it was a Joomla clone which was commented by a representative of the company Elearningforce that “It is native SharePoint coding and was started because Microsoft asked us to”.  In this recording of Kelvyn Hicks at HVA in the Netherlands the integration of the LMS with Sharepoint 2007/ 2010 and other Microsoft products is presented.

Blog at WordPress.com.