|
By Udayakumar Ethirajulu , juu ya Novemba 26, 2009 zifuatazo Snippet code ni kutumika kutafuta orodha ya maktaba hati.
SPWeb _web = SPContext.Current.Web;
SPListCollection ListColl = _web.Lists;
foreach (SPList _lst katika ListColl)
{
kama (_lst.BaseTemplate == SPListTemplateType.DocumentLibrary)
Novemba 26, 2009 | Tags: Moss 2007, SharePoint 2007, SharePoint Object Model | Jamii: Moss 2007, SharePoint Object Model |
By Udayakumar Ethirajulu , juu ya Novemba 8, 2009
Kujenga Rasilimali faili kutumia Visual Studio IDE
Nakala faili rasilimali katika 12 mizinga ya rasilimali folder
GetLocalized njia kutoka SPUtility kusoma maadili kutoka faili rasilimali
Syntax:
SPUtility.GetLocalizedString(“$Rasilimali:<<ResourceFileName,ResourceKeyName>>”, “<<ResourceFileName>>”, muda mrefu);
Mfano:
SPUtility.GetLocalizedString(“$Rasilimali:MyResources,FIRSTNAME”, “MyResources”, muda mrefu);
Chanzo sampuli:
Novemba 8, 2009 | Tags: Moss 2007, SharePoint 2007, SharePoint Object Model | Jamii: Moss 2007, SharePoint Object Model |
By Udayakumar Ethirajulu , juu ya Oktoba 21, 2009
Bidhaa Uppdatering au Item Updated Tukio katika SharePoint 2007 hutokea mara mbili, kama zinahitaji chaguo Checkout ni kuwezeshwa kwa ajili ya maktaba hati.
Nimeona workaround yafuatayo kutoka Support Microsoft kwa suala hili.
Kuangalia thamani ya vti_sourcecontrolcheckedoutby katika BeforeProperties na AfterProperties, kama maadili ni wote null kisha tukio […]
By Udayakumar Ethirajulu , juu ya Oktoba 3, 2009
Darasa SPAlerCollection inaweza kutumika kupata Collection Alert kwa mtumiaji.
Snippet chini code ni kutumika kwa kusoma alerts wote waliosajiliwa kwa ajili ya watumiaji wa ukusanyaji tovuti.
tuli GetAlerts binafsi utupu()
{
SPSite currSite = SPSite mpya(“http://Uday”);
SPWeb currWeb = currSite.OpenWeb();
SPUserCollection […]
By Udayakumar Ethirajulu , juu ya Oktoba 1, 2009 chini ya mistari ya Snippet code ni update xml infopath rekodi(file)
SPWeb _web = SPContext.Current.Web; SPList _list = _web.Lists[“SampleFormLib”];
MemoryStream myInStream = MemoryStream mpya(item.File.OpenBinary()); XmlTextReader msomaji = XmlTextReader mpya(myInStream);
XmlDocument doc = mpya XmlDocument(); doc.Load(msomaji);
reader.Close(); myInStream.Close();
XmlNamespaceManager nameSpaceManager = XmlNamespaceManager mpya(doc.NameTable); nameSpaceManager.AddNamespace(“yangu”, “http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-06-11T12:44:57“);
doc.DocumentElement.SelectSingleNode(“yangu:Hali ya”, nameSpaceManager).Ndani Nakala = “Kuokolewa”; […]
By Udayakumar Ethirajulu , juu ya Juni 12, 2009
Ukijaribu update xml InfoPath faili kwa njia ya mfano kitu katika matukio / WebParts au kwa kwa kutumia yoyote.
Wakati execting Item.Update() itakuwa na kusababisha kosa chini ya. Wakati uppdatering InfoPath xml faili ListItem katika faili na kitu ListItem kupata kukatika.
Item.File.Update() kutatua suala yako.
StackTrace […]
By Udayakumar Ethirajulu , juu ya Februari 16, 2009 nguvu halisi ya Ofisi ya SharePoint Server 2007 na Windows SharePoint Huduma 3.0 ni kwamba wanaweza kuwa bila kukoma customized kukidhi mahitaji mbalimbali ya biashara. Protean asili ya SharePoint ni mara yake ya kipengele nguvu zaidi na wake wengi formidable; utata wa SharePoint mazingira yako inaweza kuongeza kwa amri ya […]
By Udayakumar Ethirajulu , juu ya Septemba 17, 2008 I got hii hapa chini wakati uppdatering profile kitu kwa njia ya mfano.
Updates ilipopiga kwa sasa juu ya kupata maombi ya. Kuruhusu taarifa za GET, kuweka 'AllowUnsafeUpdates’ mali kwa SPWeb
Add web.AllowUnsafeUpdate = kweli; kutatua suala hili.
By Udayakumar Ethirajulu , juu ya Juni 28, 2007 Hi Devs,
Chini ni Code Mfano kwa update orodha Sharepoint maudhui programmatically kwa kutumia SharePoint Object Model.
SPSite Site = mpya SPSite(“http://kwenye localhost:21000”); SPWeb Mtandao = Site.OpenWeb(); SPList Orodha = Web.Lists[“Anwani ya Kitabu”]; SPListItem ListItem = List.GetItemById(0);
string FullName = string.Empty;
FullName = ListItem[“FIRSTNAME”].ToString() + ListItem[“Jina la familia”].ToString(); SPListItem[“FullName”] = FullName; ListItem.Update();
|
|