Questions tagged [events]

In computing, an event is an action that is usually initiated outside the scope of a program and that is handled by a piece of code inside the program.

Filter by
Sorted by
Tagged with
7
votes
4answers
8k views

Javacript only executed on first page load

I have javascript code included in my sharepoint site. When I load the page the first time, it is executed, but when I load it the second time, it is not running. It get's loaded in correct order but ...
5
votes
1answer
29k views

Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance

I'm running a SharePoint 2010 environment consisting of one Web Front End Server and one Database Server. When I view the event logs on the Web Server I see several errors with the Event ID 6482: ...
5
votes
2answers
1k views

SP 2010 JavaScript events

I want to hook into certain events on a SharePoint 2010 site, specifically the modal dialog open and close events. Does SharePoint 2010 trigger any events for these kinds of actions? If so, how do I ...
5
votes
1answer
7k views

What is the scope of DisableEventFiring()?

When I call DisableEventFiring() what events are blocked? All events? On the current item? All events using the current EventReceiver? What happens if two threads change one item and one ...
5
votes
1answer
1k views

how can i override the onclick event for events/items on a Calendar using JavaScript?

Right now when you click on an event on the calendar it selects it. I want to override that behavior. I can't seem to find what event to override. Any ideas? I know I can iterate through each event/...
5
votes
1answer
103 views

Migrate recursive checkbox of calendar from sharepoint 2007 to 2013 programatically

I am trying to migrate SharePoint calendar from 2007 to 2013 programatically. Here is my code. using (ClientContext clientcontext = new ClientContext(targetURL)) { clientcontext.Credentials = ...
5
votes
1answer
152 views

Is there an event when a workflow is added or removed from a list

I need to perform some tasks (in this case, add/remove content types) when a workflow is associated/disassociated with a given list. Is there an event that I can listen for/hook into? I am using ...
4
votes
4answers
5k views

which one is better considering performance, workflow or event receiver?

Using events like ItemAdded, ItemUpdated which one has the good performance on custom list. What can be preferred considering there are large lists?
4
votes
2answers
338 views

How to stop Update event from firing when adding a document to a library

When adding a new document, both Add and Update events trigger my event receivers. I have an Add and an Update event receiver. Is there a way to avoid the Update event?
4
votes
1answer
428 views

Chrome is not able to work when I click Enter button

If enter key is pressed and then search button clicked event is called. My chrome doesn't work . IE is OK . How do I fix ? Thanks in advance $('#txtSearch').keypress(function(e){ if(e.keyCode==13) ...
4
votes
1answer
797 views

How to call jquery method in different page event like pageload, ispostback, page refresh, onsubmit

In my master page I am calling the jquery method on pageload event. It will do some truncation operation in a SharePoint page. The problem is, if I have add new item to the SharePoint form and if I ...
3
votes
3answers
8k views

RSVP list for Sharepoint

What is the best way to implement RSVP list for SharePoint? How would I limit the number of RSVP for an event? Do I still need to use InfoPath for UI and Logic? Never implemented RSVP event list ...
3
votes
2answers
2k views

Attach an event receiver to profile property update

Do someone know if it's possible to attach an event receiver to profile updates? The goal would be to update an external system (such as a CRM) when a user is updating his profile.
3
votes
3answers
7k views

DisableEventFiring using PowerShell

How can I call DisableEventFiring using PowerShell? C# code like this : Type typeInfo = typeof(SPEventReceiverBase); MethodInfo disable = typeInfo.GetMethod("DisableEventFiring", BindingFlags....
3
votes
4answers
498 views

Is there any event when restoring a SPWeb from the Site Recycle Bin

With SharePoint 2010 SP1 the Site Recycle Bin feature was introduced. When a site is deleted it appears in this recycle bin. From there the user can restore the site. Now, my problem is that I need ...
3
votes
2answers
1k views

ULS Log event email notification

Is it possible to configure Sharepoint such that it emails me whenever an event with exception severity occurs? If yes then how do I configure it?
3
votes
3answers
705 views

Add file watermark as it's uploaded

I've been trying to add a watermark to files as they are uploaded to SharePoint. I tried using several events: ItemAdding, ItemUpdating, ItemCheckedIn. In ItemUpdating and ItemCheckedIn the file is ...
3
votes
5answers
2k views

How to make Grouped View work with the $(document).ready event?

I have a list that is grouped by date: Normally the list is collapsed, when I open one date, items under it are shown, like: [+] 2010-01-01 [+] 2010-01-02 [-] 2010-01-03 item1 item2 ... I ...
3
votes
3answers
2k views

Calculate number of pages in the document in document library

In my SharePoint Server 2010, I have a document library which contails word and pdf files. For each file in the library, I want to display the number of pages in the file as a column. I tried but ...
3
votes
1answer
439 views

Upload a file into new document upon folder creation

I have a document library in which I want to store folders (people). Each folder have some metadata (person's properties). Then in each such folder I will hold documents (files) associated with this ...
3
votes
0answers
354 views

Gantt View and Javascript Events [closed]

I'm displaying a Gantt view in a page in like this: <Module Name="DefaultBlank" Url="" Path=""> <File Path="EmployeeWorkspacePages\default.aspx" Url="default.aspx" > <...
3
votes
2answers
2k views

OnWorkflowItemChanged not firing when using SPListItem.Update()

I am experiencing a very weird behavior: After using SPListItem.Update() the OnWorkflowItemChanged is triggered (so the title is misleading), but sends the workflow into a sleep state it never wakes ...
2
votes
3answers
6k views

How do I trigger onchange from a default SharePoint 2010 date field?

I am currently running a function on change when a user changes the value of a choice field. This function uses the date (previously selected) to filter items for another drop-down list. However, in ...
2
votes
3answers
2k views

Update column status based on time

I'm creating a SharePoint 2010 application called HR Learning And Development. Basically it's an application to manage every employee trainings. Much like a college environment. I have a SharePoint ...
2
votes
2answers
6k views

Suggestions for SharePoint event attendee management

I want to manage attendees attending a number of events in SharePoint. The idea I have, and I believe IW site is the same, is to: Create a list for events - basic custom list. Create a list for ...
2
votes
1answer
63 views

Fire a workflow on item fetching

Is there a way to fire a workflow or event receiver for every item before its fetched from a list automatically? I need to update columns on every item every time a user enter the list or open a form. ...
2
votes
1answer
1k views

How to get download/edit count of a file in SharePoint library using javascript?

If a file in SharePoint library has been downloaded 5 times, then I need get that download count of the file. Additionally I need to get the same for counts of editing done for the file.
2
votes
1answer
845 views

Why are my external workflow events delivered twice?

I'm writing a workflow that uses pluggable workflow services to await an external event from an external program. My problem is that, no matter how I re-write it, the external event is raised twice, ...
2
votes
4answers
1k views

How can I know when user changes permission for an item?

Is there any event when user changes item's permission ? I tried to catch SPListItemUpdating event for a necessary list, but it didn't work. Or can I attach to Permission list to handle ...
2
votes
2answers
1k views

Sharepoint development without Visual Studio on server machine

Till now I was doing Sharepoint development with Sharepoint server and Visual Studio on same machine. Now there is a Sharepoint 2010 installed on my client machine with no Visual Studio installed. I ...
2
votes
1answer
84 views

ItemUpdated vs FieldUpdated

I have a user request where a Document Library with Content Approval turned on, wants the name of the person who approved the document. So I created an "Approver" column and want to create an Event ...
2
votes
2answers
993 views

How to add on event a PeoplePicker Programmatically to a WebPart

I want to add a people picker to my webpart according to an event. To make it simple I want to add it when I click a button. The code would be very simple, like this: protected void Button1_Click(...
2
votes
1answer
3k views

Loading script on every postback

I am trying to load a script (that remembers the clicked nodes for a xsltlistview in a jquery cookie) on every postback. The events when i postback should be: 1. save clicked nodes in cookie 2. ...
2
votes
2answers
192 views

Creation of a “Attend” button under each Event

I would like to ask if somebody could advise me how to create an "Attend" button in the Event form which appears when clicking on an Event. The goal is that there is a list of participants visible ...
2
votes
3answers
2k views

Sorting a group in an Events Calendar

I've a custom list called Events which pulls back all events that are created within a calendar and I'm grouping the events by a column called Month. I'm then sorting them by the month of the Start ...
2
votes
2answers
1k views

Prerender executing twice

I have some prerender code that is being used to get information from another list to add into the display of the main list. I am puzzled - the prerender code executes twice. (function () { var ...
2
votes
2answers
205 views

How to add an event to a quicklaunch item in SharePoint?

I want to add an event to one of my quicklaunch items in SharePoint, but I don't know how to do that. Or maybe to link the item to a page that would do what I want and then close and then come back ...
2
votes
3answers
1k views

Which javascript event is fired when remove person from people picker?

I want to handle the javascript event whenever the person is removed from the PeoplePicker control in new form of custom list. If any person is removed then corresponding department value should be ...
1
vote
4answers
5k views

How can I call a custom JavaScript function after a form has validated?

I have a form for submitting events to our calendar. What I want is to call a function once the form has validated. Something like this: User edits item User clicks save button Form validates ...
1
vote
3answers
4k views

Event Receiver in SharePoint using ItemAdded and ItemUpdated

I have an Event Receiver that is supposed to fire when a SPListItem is added or updated in a SPList that is a SharePoint Calendar. I'm using two methods, ItemAdded and ItemUpdating. When I add a new ...
1
vote
3answers
2k views

SharePoint 2007 Calendar event type

Anyone know what a calendar item with an eventtype of 5 means? I think its to do with specific instances of a recurring event but am not sure and can't seem to find a definitive list anywhere that ...
1
vote
1answer
127 views

Detecting change in users/groups on web

I want to execute some code when the users/groups with access to a web changes (addition and removal of users/groups). What are my options?
1
vote
3answers
2k views

How to get absolute previous url in event receiver?

I have a root site list which I am displaying on several sub-sites using CQWP based on a custom filter and entering the list values from sub-sites itself to the root site list. So I am trying to ...
1
vote
3answers
562 views

Hide ContentTypes based on ListItem value

Users seems to have a hard time picking the right document template when the "New" list contains more then 50 items. As one of lists on the web contains a SPChoiceField it should be possible to limit ...
1
vote
1answer
695 views

How to show events in SharePoint Online home page

I just want to display FY, 19 Calendar Events in the SharePoint Online Modern page home page. Any Idea
1
vote
1answer
89 views

How to handle DeleteItem in external list

We have an external list bound to data source by the WCF service. It displays a metadata of "tasks", and for every "tasks" we have in another document Library a special folder. When user selects 'edit'...
1
vote
1answer
64 views

Event or notification when a View is added to a List

Is there an event or notification or some way to execute a piece of code as soon as a new View is added to a specific List? I need to modify this newly added View (more specifically I need to edit ...
1
vote
1answer
149 views

What are the critical success factors to pulling off an SP Community event like SharePoint Saturday?

With most of my experience being in vendor driven events, I am wondering what everyone thought the critical success factors are for running community driven event such as a SharePoint Saturday (ie. ...
1
vote
1answer
33 views

Enabling an attachments field when creating an event in SharePoint Online?

I have my site configured with a basic out of the box events app, where the user can click 'add event' and fill in the details of it. When filling in this info, I want the user to be able to attach ...
1
vote
1answer
457 views

SharePoint Online - Registration on Event Calendar

I am trying to build a event calendar that allows users to register to events. Columns for this calendar will be Title, Location, Date, Occupancy limit(Number). This will be filled by event manager ...