New answers tagged event-handlers
0
public override void ItemUpdating(SPItemEventProperties properties)
{
SPSecurity.RunWithElevatedPrivileges(delegate()
{
if ((properties.ListTitle == "Fahrzeuge") || (properties.ListTitle == "Räume"))
{
string currentTitle = properties.ListItem["Title"].ToString();
string newTitle = ...
2
There's a 30 second execution cutoff in SharePoint Online (not sure about wave 15 yet). Have a look at your stopwatch, at the 30s mark the code will die without throwing an error. It probably works as a sandbox solution on your dev machine because it is faster.. Yes I have experienced this before.
0
I finally found a solution.
I'm still unable to display a , so I used a PeopleEditor as explained here : http://karinebosch.wordpress.com/sharepoint-controls/peopleeditor-control/
Then, in my aspx.cs file, here is how I get the selected user :
PeopleEditor peManager = (PeopleEditor)i.FindControl("peManager");
peResponsable.AutoPostBack = true;
...
0
If you some way to identify the item in the calendar (if the project title is unique, or you have some other primary key) then:
you can create a hidden field called 'EventCreated' or something
then inside your workflow have a condition that checks if an event is created
if it was then run an update list item query on your unique value
(see: ...
1
You need to add a column to the first calendar that stores a unique key of any related item in the team calendar. You could use the SharePoint ID of the first calendar, for example. Add a column to the Team calendar called "ParentID". Let the workflow find an item with that ParentID = current Item ID in the Team calendar. If that item is found, the workflow ...
0
Please, try the following code:
SPUser user = web.EnsureUser("{user login}");
item["Manager"] = user;
item.Update();
Top 50 recent answers are included