Click here to Skip to main content
14,176,878 members

SharePoint

 
AnswerRe: Unable to change Variation Label Name in Sharepoint 2013 Pin
Bhargava Consultant8-Jul-14 2:43
memberBhargava Consultant8-Jul-14 2:43 
QuestionYoutube embed link in iframe not able to play in Sharepoint 2013 WebPart Pin
KaushalJB18-Jun-14 1:18
professionalKaushalJB18-Jun-14 1:18 
AnswerRe: Youtube embed link in iframe not able to play in Sharepoint 2013 WebPart Pin
Ibrahim Khatri22-Jun-14 21:43
memberIbrahim Khatri22-Jun-14 21:43 
Questionsharepoint 2010 conditional formatting in discussion board not working Pin
Ayan Chalki12-Jun-14 19:45
memberAyan Chalki12-Jun-14 19:45 
Questionhow to make this filtration in drop down list SharePoint list Pin
wael.shazly11-Jun-14 0:56
memberwael.shazly11-Jun-14 0:56 
QuestionHow to do Azure Integration with SharePoint Online (Office 365) Pin
Virendrak5-Jun-14 17:23
memberVirendrak5-Jun-14 17:23 
QuestionCustomizing the "Items Matching a Tag" WebPart to Open Selected Results Within The Same Frame (WebPart) Pin
Member 1083502521-May-14 7:31
memberMember 1083502521-May-14 7:31 
QuestionSharepoint 2010. Resource Calendar - add new item with resource Pin
fxrobot14-May-14 23:07
memberfxrobot14-May-14 23:07 
Hi,

I'm having some difficult adding a resource to when adding a new item using C#.
I opened a new Calendar with Resource Reservation option enabled.
I also added "Room1" to the resources list in the site.
part of my code :

using (SPSite site = new SPSite("http://sps/mysite"))
 {
     using (SPWeb web = site.OpenWeb())
     {
         SPList list = web.Lists["Rooms"];
         if (list != null)
         {
             SPListItem item     = list.Items.Add();
             item["Title"]       = "New Resource sched..";
             item["Description"] = "check resource sched..";
             item["Resources"]   = "??"; //<- what to put here???
             item["Start Time"]  = DateTime.Now.AddDays(2);
             item["End Time"]    = DateTime.Now.AddDays(3);
             item["Category"]    = "Business";
             item["fAllDayEvent"]= false;

             item.Update();
         }
        else
         {
            System.Console.WriteLine("List does not exists");
            System.Console.ReadLine();
         }
     }

 }

what do I need to write in : item["Resources"] ?
writing "=Room1" doesn't work and I probably need to link the "Room1" item in the resources list.

appreciate your help////
AnswerRe: Sharepoint 2010. Resource Calendar - add new item with resource Pin
Ayan Chalki15-Jun-14 19:40
memberAyan Chalki15-Jun-14 19:40 
QuestionWhat's the best Architecture for this case in SharePoint 2013 Portal Pin
Maher Elsayed3-May-14 1:59
memberMaher Elsayed3-May-14 1:59 
AnswerRe: What's the best Architecture for this case in SharePoint 2013 Portal Pin
Member 109951416-Aug-14 0:23
memberMember 109951416-Aug-14 0:23 
QuestionHow to merge two domain on Sharepoint 2010 Pin
trunghieu0725-Apr-14 0:14
membertrunghieu0725-Apr-14 0:14 
QuestionOrderBy on SPListItemCollection Pin
trunghieu0725-Apr-14 0:09
membertrunghieu0725-Apr-14 0:09 
AnswerRe: OrderBy on SPListItemCollection Pin
Member 99266858-May-14 17:11
memberMember 99266858-May-14 17:11 
AnswerRe: OrderBy on SPListItemCollection Pin
Kannan Karthikeyan11-Nov-14 4:20
memberKannan Karthikeyan11-Nov-14 4:20 
QuestionSome trouble with creating a group on feature activation Pin
Aptiva Dave10-Apr-14 10:05
memberAptiva Dave10-Apr-14 10:05 
QuestionAbout SharePoint 2010 workflows Pin
BHUPATHI NAIDU9-Apr-14 1:49
memberBHUPATHI NAIDU9-Apr-14 1:49 
AnswerRe: About SharePoint 2010 workflows Pin
Richard MacCutchan9-Apr-14 3:06
protectorRichard MacCutchan9-Apr-14 3:06 
QuestionHow to set the _CheckinComment with CSOM? Pin
Member 92461551-Apr-14 2:51
memberMember 92461551-Apr-14 2:51 
QuestionNeed help/example using Sharepoint web services Pin
turbosupramk328-Mar-14 1:35
memberturbosupramk328-Mar-14 1:35 
AnswerRe: Need help/example using Sharepoint web services Pin
Eddy Vluggen25-Apr-14 4:30
mveEddy Vluggen25-Apr-14 4:30 
QuestionWiki Site in Sharepoint 2010 Pin
Deeman12316-Mar-14 9:14
memberDeeman12316-Mar-14 9:14 
AnswerRe: Wiki Site in Sharepoint 2010 Pin
Richard Deeming17-Mar-14 2:36
mveRichard Deeming17-Mar-14 2:36 
AnswerRe: Wiki Site in Sharepoint 2010 Pin
vbmike28-Mar-14 4:00
membervbmike28-Mar-14 4:00 
Questionpreview documents in documents library Pin
Member 40596485-Mar-14 1:49
memberMember 40596485-Mar-14 1:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web01 | 2.8.190526.1 | Last Updated 17 May 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid