Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Event Handler in sharepoint

  Asked By: Garrett    Date: Jan 03    Category: Sharepoint    Views: 814

I need some help, I have two websites in SharePoint one in English and the other
in French.
what I need to do is that, when ever item added or updated or deleted in one of
these sites, it should be updated in the other one !
I mean, if I have added a new announcement in the English site, then i need some
event to be fired and add that announcement in the French site, same thing goes
for event Calendars, custom lists, attachment document ... etc.
and if I opened that announcement again and update its content, then I need that
event to be fired again and update it in the other site.
how can we do that ?



10 Answers Found

Answer #1    Answered By: Otis Blackwell     Answered On: Jan 03

Any Thoughts ??????????????????????????

Answer #2    Answered By: Virendar Chaudhari     Answered On: Jan 03

Web service.............................

Answer #3    Answered By: Mitchel Villarreal     Answered On: Jan 03

As a developer, I would recommend developing an event handler solution to do
this. You can use the SharePoint object model to do all of this.  Just make
sure that when you update the other site, use elevate privileges.

Answer #4    Answered By: Ranu Badhan     Answered On: Jan 03

So you're not using variations then?


Answer #5    Answered By: Irene Moss     Answered On: Jan 03

I'm not sure where is your problem.

Do you want to synchronize to entire site ? Or just some contents with filter.
Can you explain what you need fonctionnaly ?

Technically ,You can write your event handler as any other one.
When need to create a list item in another site, use :

Using (SPSite site = new SPSite("http://myurl/site/subsitefrench")
Using (SPWeb web = site.OpenWeb())
/// create your listitem

Let me know if it help.

Answer #6    Answered By: John Scott     Answered On: Jan 03

I have English site and French site, both sites have the same structure (list,
doc lib, calendars ... etc), what I want again is that I need
to synchronized both sites, what ever I do in one of them then it should
be reflected automatically in the other one (Add, Edit, Delete).

Answer #7    Answered By: Donald Torres     Answered On: Jan 03

I think that the suggestion from Nicolas is a valid one and I suggested
web services.

Nicolas idea is best in light of the request. Add those event receivers to
each and every list.

Answer #8    Answered By: Courtney Scott     Answered On: Jan 03

what kind of webservices ? do you have some samples ?

Answer #9    Answered By: Jagdeep Hor     Answered On: Jan 03

Check out SPServices, though I think your best bet is to go with event handlers.

Answer #10    Answered By: Aja Howe     Answered On: Jan 03

Any details on how they are set up. Are they completely different Web
applications or did you utilize the multilingual publishing capabilities?

Didn't find what you were looking for? Find more on Event Handler in sharepoint Or get search suggestion and latest updates.