Es posible que alguna vez necesitemos cargar los datos en una tabla de forma dinámica, en función de una serie de parámetros que introduzcamos previamente. Llegado ese momento este post os puede ayudar.
La estructura de nuestra tabla tendrá, más o menos, la siguiente composición de controles:
el código que necesitaremos es el siguiente. Os lo pongo en C# y en VB:
C#
string myNamespace = NamespaceManager.LookupNamespace("my");
using (XmlWriter writer = MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:group1", NamespaceManager).AppendChild())
{
writer.WriteStartElement("group2", myNamespace);
writer.WriteElementString("field1", myNamespace, "Cell 1");
writer.WriteElementString("field2", myNamespace, "Cell 2");
writer.WriteElementString("field3", myNamespace, "Cell 3");
writer.WriteEndElement();
writer.Close();
}
VB
Dim myNamespace As String = NamespaceManager.LookupNamespace("my")
Using writer As XmlWriter = MainDataSource.CreateNavigator().SelectSingleNode( _
"/my:myFields/my:group1", NamespaceManager).AppendChild()
writer.WriteStartElement("group2", myNamespace)
writer.WriteElementString("field1", myNamespace, "Cell 1")
writer.WriteElementString("field2", myNamespace, "Cell 2")
writer.WriteElementString("field3", myNamespace, "Cell 3")
writer.WriteEndElement()
writer.Close()
End Using
14/11/07
6/11/07
Servicios Web en Sharepoint
Estos son los Servicios Web de los que podemos disponer en Sharepoint y que nos pueden ahorrar mucho trabajo a la hora de programar diferentes funcionalidades para nuestro SharePoint:
Administration Service http:///_vti_adm/admin.asmx
Alerts Service http:///_vti_bin/alerts.asmx>
Document Workspace Service http:///_vti_bin/dws.asmx
Forms Service http:///_vti_bin/forms.asmx
Imaging Service http:///_vti_bin/imaging.asmx
List Data Retrieval Service http://_/_vti_bin/dspsts.asmx
Lists Service http:///_vti_bin/lists.asmx
Meetings Service http://_vti_bin/meetings.asmx
Permissions Service http://_/_vti_bin/permissions.asmx
Site Data Service http:///_vti_bin/sitedata.asmx
Site Service http:///_vti_bin/sites.asmx
Users and Groups Service http://_/_vti_bin/usergroup.asmx
Versions Service http:///_vti_bin/versions.asmx
Views Service http:///_vti_bin/views.asmx
Web Part Pages Service http:///_vti_bin/webpartpages.asmx
Webs Service http:///_vti_bin/webs.asmx
Administration Service http:///_vti_adm/admin.asmx
Alerts Service http:///_vti_bin/alerts.asmx>
Document Workspace Service http:///_vti_bin/dws.asmx
Forms Service http:///_vti_bin/forms.asmx
Imaging Service http:///_vti_bin/imaging.asmx
List Data Retrieval Service http://_/_vti_bin/dspsts.asmx
Lists Service http:///_vti_bin/lists.asmx
Meetings Service http://_vti_bin/meetings.asmx
Permissions Service http://_/_vti_bin/permissions.asmx
Site Data Service http:///_vti_bin/sitedata.asmx
Site Service http:///_vti_bin/sites.asmx
Users and Groups Service http://_/_vti_bin/usergroup.asmx
Versions Service http:///_vti_bin/versions.asmx
Views Service http:///_vti_bin/views.asmx
Web Part Pages Service http:///_vti_bin/webpartpages.asmx
Webs Service http:///_vti_bin/webs.asmx
Suscribirse a:
Entradas (Atom)