Posts

Showing posts from 2013

Sharepoint 2010 : Nintex 2010 custom Inline function

Image
Nintex - as new technology to me - is a nice, easy, and simple workflow engine, that is very useful and fast to learn. and as any other technology there is always a room for expandability. For me the case was I needed a piece of code to be run often and not only in custom forms, the best approach I have found is to use a custom inline function. Nintex has several built-in inline functions, and to add extra custom one , lets follow these steps: Develop a static class with static function to use as inline function, usually it will be a class in the Sharepoint project which after deploying it will be registered in the GAC, otherwise you will have to register it in the GAC ( it has been discussed in previous post ) . The resulted code will be something like this: namespace  Project.TestNameSpace {      public   static   class  TestInlineF...

Project Server 2010 : Server Event Handlers (Part 2)

Image
Now we have wrote the business logic code, and registered the dll in GAC (in Part 1 ), we will register this event handler association in Project Server Application, so that when an event is raised, our function will be triggered. lets open server side event handler from Server Settings under Operational policies chose Server Side Event Handler , this will open the following page: Figure 1 Chose the event that we need to trigger our function on, in our example from the previous post it will be Project on Creating; locate the Project parent and Creating event, it will list all the registered associations (if there are any). to add new association click on New Event Handler which will open the following page: Figure 2 the Display Information section is for the name and description that appears in the list. the System Information section is to fill the dll information from GAC, as below: Assembly Name: which is the dll's name in this format ddlName, Version=1.1....

Project Server 2010 : Server Event Handlers (Part 1)

Image
Server Event handlers are the expansion points for Project Server 2010, to register a custom event handlers with project server's events, Project Server raises pre-events and post-events when Project Server Interface (PSI) methods change business objects such as Project, Task, Resource, or Timesheet. When you associate an event handler with an event, Project Server runs the event handler when that particular event occurs. To start with event handlers development, you need to create new Class Library Project, from File > New > Project and select Class Library template (Figure 1) Figure 1 Delete the default class file class1.cs and right click on the project Add > New Item select class and rename it to ProjectEventHandler.cs , that will create new class file with a class called ProjectEventHandler . Add public access modifier to make this class accessible. Add these Project Server 2010 reference, right click on the project > Add Reference on the browse ta...