Наш сайт 1
Сайт российского сообщества Sharepoint
Построен с использованием Windows Sharepoint Services для обмена информацией
между разработчиками, администраторами, партнерами и заказчиками.
Сайт создается преимущественно на базовом функционале платформы Sharepoint и
с помощью доступных готовых решений от партнеров и разработчиков. В
разделе Статьи размещаются статьи с описанием -
Как это было сделано? Надеемся что информация на
этом сайте поможет вам в ваших проектах.
|
|
|
Наш сайт 2
- Зарегистрируйтесь на сайте с использованием вашего LiveID, для этого
нажмите на Вход, в верхнем правом углу
- Подпишитесь на RSS тех списков, которые вам интересны
- Ознакомьтесь с платформой Sharepoint на страницах Wiki -
для заказчиков,
разработчиков или
администраторов
- Размещайте свои комментарии, предложения по улучшению, решения, статьи,
вопросы! :)
- Настройте отображение первой страницы с помощью интересующих вас
веб-частей, уберите ненужные - уже можно свернуть эту веб-часть.
|
|
| | Microsoft SharePoint Team Blog | | |  | December 2009 Cumulative Update Packages for SharePoint Server 2007 and Windows SharePoint Services 3.0
| | |  | Operating System Requirements of SharePoint 2010
We've seen some confusion in the newsgroups and elsewhere on the versions and editions of Windows that SharePoint 2010 will run on. This post is meant to clarify some of the most common questions we have seen. SharePoint 2010 will support only 64-bit (x64) versions of Windows Server 2008 SP2 and Windows Server 2008 R2. SharePoint will not install at all on 32 bit Windows, or any earlier version of Windows such as Windows Server 2000 or Windows Server 2003. SharePoint is not supported on 'Server Core' installations of Windows Server 2008 and R2. The Server Core installations of Windows server do not contain some of the components required for SharePoint to be configured or run. To make developing for SharePoint 2010 easier, it is possible to install SharePoint on 64-bit versions of Windows Vista SP2 and Windows 7. Note that running production environments on these OSes are not supported and it will not be possible to upgrade deployments running on client versions of Windows to future versions of SharePoint. Instructions on installing SharePoint 2010 on client versions of Windows are a bit more involved and we recommend reading the instructions at http://msdn.microsoft.com/en-us/library/ee554869(office.14).aspx. | Windows version/edition (64 bit only) | SharePoint 2010 support | | Windows Server 2008 R2 Foundation | No | | Windows Server 2008 R2 Standard | Yes | | Windows Server 2008 R2 Enterprise | Yes | | Windows Server 2008 R2 Datacenter | Yes | | Windows Web Server 2008 R2 | No | | Windows HPC Server 2008 | No | | Windows Server 2008 R2 for Itanium-based systems | No | | Windows Server 2008 Standard | Yes | | Windows Server 2008 Enterprise | Yes | | Windows Server 2008 Datacenter | Yes | | Windows Web Server 2008 | No | | Windows Storage Server 2008 | No | | Windows Small Business Server 2008 | Yes* | | Windows Essential Business Server 2008 | Yes* | | Windows Server 2008 for Itanium-based systems | No | | Windows Server 2008 Foundation | No | | Windows Vista | Developer-only** | | Windows 7 | Developer-only** | * Small and Essential Business Server editions of Windows install SharePoint as an optional component. ** Support for specific editions of Windows 7/Vista are yet to be finalized, but are likely to be 'Business'/'Professional' editions and above. The list above is meant for informational purposes only. The official list of system requirements for SharePoint 2010 is located at http://technet.microsoft.com/en-us/library/cc262485(office.14).aspx and includes additional details on prerequisites and other optional components. Umesh Unnikrishnan Program Manager, SharePoint  | | |  | Try System Center Operations Manager Management Packs for SharePoint Server 2010 Beta and SharePoint Foundation 2010 beta
Management Packs allow users to monitor SharePoint 2010 with System Center Operations Manager. SharePoint Foundation Management Pack and SharePoint Server 2010 Management Pack enables monitoring of SharePoint Foundation 2010, SharePoint Server 2010, Search Server 2010 (These is separate management pack for FAST search), Project Server 2010 and Office Web Apps. Once management pack is imported to System Center console, based on console configuration it automatically discovers what SharePoint bits or servers are installed in the environment that is being monitored and start monitoring those components. These 2010 management packs will be released to System Center Operations manager catalog and will also be released to web along with SharePoint 2010 RTM. Out of box experience SharePoint Management Packs monitors all prominent services, Shared Services, SharePoint Health Analyzer rules, Web Applications and SharePoint Servers. In SharePoint 2010 you can use it to monitor both physical (servers and services running on those servers) and logical (Shared Services, Web Application etc.) of SharePoint. You can monitor multiple farms, and even fix some issues automatically by running out of box tasks. You can also write your own tasks using System Center Wizard or Windows PowerShell script to enable this self-healing. Primary takeaway of SharePoint 2010 MP is depth and breadth of monitoring and rapid detection and resolution. Here’re the improvements compared with the previous product. | | Management Packs for Windows SharePoint Services 3.0 and Microsoft Office SharePoint Server 2007 | Management Packs for SharePoint 2010 | Change | | Discoveries | 5 | 16 | ↑300% | | Classes | 10 | 133 | ↑1293% | | Monitors | 28 | 240 | ↑300% | | Rules | 235 | 107 | ↓45% | | Reports | 27 | 9 | ↓33% | | SPHA Rules | NA | 100+ | ↑100% | | TechNet KAs | NA | ~150 | ↑100% | These numbers illustrate significant improvements over 2007 management pack. 1200% and 300% change in number of classes and discovery represents improvement in depth and breadth of monitoring. Change in number of monitors indicates improvement in granularity of monitoring that enables quick isolation of issues. Detailed knowledge articles represent rapid diagnosis and resolution. Did you also notice knowledge articles are on TechNet, which means we will be able to improve these articles based on your feedback even after release! In 2007 you can just monitor, one farm with multiple servers and some services. Diagram view below reflects a typical 2007 monitoring. Anything that is crossed was not available in 2007 management pack and remaining had limited depth of one additional level. In 2010 you can monitor multiple farms, multiple servers, services, shared services, SharePoint Health Analyzer rules (Which saves you a trip to central admin which also means that System Center Operation Manager console is your one stop shop for all monitoring requirements) and web applications. Server Monitoring Service Monitoring Share Service Monitoring SharePoint Health Analyzer monitoring (One stop shop for both native and external monitoring) Web Application Monitoring Download Management Pack Beta for SharePoint 2010 SharePoint Foundation 2010: http://www.microsoft.com/downloads/details.aspx?FamilyId=43d5ee9a-b9a6-441d-a35e-8a7b9b15e20c SharePoint Server 2010: http://www.microsoft.com/downloads/details.aspx?FamilyId=c8a9d749-b7a8-412a-b2db-f3e464ed3fcf  | | |  | SharePoint 2010 List View Blog Series: Part 2 - Using the New SharePoint Lists
Hi! I'm Jason Morrill, another Program Manager on the SharePoint team. I wanted to write a bit about what it feels like to use SharePoint lists with the new user experience. If you've got a SharePoint site sitting around, I'd encourage you to open it in another window and follow along as I talk about things. Let's start by just browsing to a document library with no content. The first thing you'll notice is that we've moved some of the navigation and menus around. The stuff right in the middle (Site Name > Document Library > All Documents) is your current location. You can click on the Site Name to get back home, and you can click on the view name (All Documents) to switch to another view. Above the title, you see there's a black row - this is where you go to access all your commands. I’ll talk more about that later. Below the title, you see the list view items. Right now there are no items, so let's fix that. To add an item to this library, you can click on the Add document button in the view. That button will always be available at the end of the current page, if you want to quickly add documents to this library. When you click it, you’ll notice that instead of navigating the entire page, we just put up a dialog asking you where you want to upload. This makes it faster to load and also easier to understand what’s going on. For this post, I actually want to upload multiple files – so go ahead and click on Upload Multiple Files. You’ll see something like this: You can drag files onto the blue rectangle to add them to your upload list, or you can click on Browse for files instead to find the files in a windows dialog. Once you’ve picked them, click Ok and they will start uploading. When the page refreshes, you’ll see lot of items in the view. If you hover over one, you’ll notice that the row gets highlighted: You can click on the dropdown arrow in the middle of the row to see a menu of commands for this document. However, you can also click anywhere else on the row (well, anywhere that’s not a link) to select the document. This will automatically open a menu of all the available commands for the selected document: This menu is where you can find all the commands in SharePoint. Sometimes, it will open automatically (like when you select an item). But, if you want to open it manually, you can always click on one of the tab names. Once it is open, you can look through the various available tabs by clicking on their names. The names generally describe the thing the command affects, so if you click on Library you are looking at commands you can perform on the Document Library. Commands on the Documents tab are relevant to the currently selected document or documents. When the ribbon opened, you might have noticed that it covered up the page title. We did that to save space, but if you ever want to get back to the page title, you can just click on Browse: Changing ribbon tabs won’t change what items you have selected, so it’s always safe to click around looking for the command you want. Now, go ahead and click back on the Documents tab and look through the available commands. You’ll notice that you can do all the familiar SharePoint actions from here. Go ahead and click on Edit Properties, and you’ll see the form pop up in another dialog. You can make whatever changes you want, click Save and we’ll drop you right back on the same page again, quick and easy. In addition to just selecting one item, you can select multiple items. To do that, just click on the check box that appears on the left of each row when you hover over it: Not all commands work on multiple items, and you’ll notice that the ribbon has greyed out commands that can’t be used. This multiple selection makes it easy to delete, check in and check out many files at once. Once you’ve added enough items, the view will start to page. This means that you’ll need to click on the next page arrow at the bottom of the view to see more of what’s in the list: You can control the number of items shown on each page from the Modify View page, which can be accessed from the Library tab (just to the right of the Documents tab we were looking at earlier): In addition to modifying the current view, the Library tab also allows you to switch views and use the datasheet. You can also create new columns, connect the lists to client applications – like Excel, Windows Explorer or SharePoint Workspaces – and customize the list’s forms, workflows or other settings. By looking through those commands, there’s obviously a lot more that can be done with SharePoint lists. But, with what I’ve shown above, you should be able to get around your lists and libraries with relative ease. Good luck!  | | |  | Planning for Upgrade from SharePoint Portal Server 2003 to SharePoint Server 2010
In order to upgrade to SharePoint Foundation 2010 or SharePoint Server 2010, you must first be running Windows SharePoint Services 3.0 at SP2 or Microsoft Office SharePoint Server 2007 at SP2, respectively. For customers running prior versions of SharePoint, including Windows SharePoint Services 2.0 and SharePoint Portal Server 2003, this means that you must first upgrade to Windows SharePoint Services 3.0 SP2 or Microsoft Office SharePoint Server 2007 SP2 prior to upgrading to 2010 versions. Windows SharePoint Server 3.0 with SP2 is available as a free download, and trial versions of Microsoft Office SharePoint Server 2007 are available and supported for use in this upgrade/migration process: SP2 Slipstream Downloads and Trial Versions Windows SharePoint Services 3.0 (32-bit) with SP2 http://www.microsoft.com/downloads/details.aspx?FamilyId=EF93E453-75F1-45DF-8C6F-4565E8549C2A Windows SharePoint Services 3.0 (64-bit) with SP2 http://www.microsoft.com/downloads/details.aspx?familyid=9FB41E51-CB03-4B47-B89A-396786492CBA Microsoft Office SharePoint Server 2007 Trial Version (32-bit) with SP2 http://www.microsoft.com/downloads/details.aspx?FamilyId=2E6E5A9C-EBF6-4F7F-8467-F4DE6BD6B831 Microsoft Office SharePoint Server 2007 Trial Version (64-bit) with SP2 http://www.microsoft.com/downloads/details.aspx?familyid=3015FDE4-85F6-4CBC-812D-55701FBFB563 Please note that the trial product versions are licensed for 180 days of use from the date of installation. Upgrade Method This upgrade process should be done using the Database Migration approach documented in the following links: Windows SharePoint Services and Microsoft Office SharePoint Server 2007 Determine upgrade approach (Office SharePoint Server) http://technet.microsoft.com/en-us/library/cc263447.aspx Determine upgrade approach [Windows SharePoint Services] http://technet.microsoft.com/en-us/library/cc287821.aspx SharePoint Foundation 2010 and SharePoint Server 2010 (pre-release documentation) Determine upgrade approach (SharePoint Server 2010) http://technet.microsoft.com/en-us/library/cc263447(office.14).aspx Determine upgrade approach (SharePoint Foundation 2010) http://technet.microsoft.com/en-us/library/cc287821(office.14).aspx Note that this method is referred to as “Database attach upgrade” in pre-release documentation Please note that there are manual steps involved in this upgrade path in order to maintain some configuration information, as documented in the links above. Example Upgrade Sequence The upgrade documentation above should be referenced for full detail and information, but the following illustrates an example of an upgrade sequence for moving from Office SharePoint Server 2007 to SharePoint Server 2010. 1. Prepare Farms a. Set up a small, temporary farm running Office SharePoint Server 2007 b. Set up full SharePoint 2010 farm and verify that it is configured and running correctly 2. Upgrade content from 2003 to 2007 a. Detach the content databases from the 2003 farm and take the 2003 farm offline b. Attach the content databases to the 2007 farm and upgrade them c. Verify the content has upgraded and that the 2007 farm is working correctly 3. Upgrade content from 2003 to 2007 a. Detach the content databases from the 2007 farm b. Attach the content databases to the SharePoint Server 2010 farm and upgrade them in parallel c. Verify the content has upgraded to SharePoint 2010 and is working correctly 4. Start serving requests on the SharePoint Server 2010 farm Again, this is just an example for illustration: for full detail, including all steps and important considerations, please review the existing and pre-release documentation linked above. Additional Information and Notes Please note that SharePoint Server 2010 Beta cannot be upgraded to the final release version (RTM). Any use of these steps or guidelines with any pre-release version of SharePoint 2010 should be for testing/evaluation only. This upgrade path will necessarily mean a move from 32-bit OS architecture to 64-bit OS architecture. Windows SharePoint Services 2.0 and SharePoint Portal Server 2003 were supported only on 32-bit operating systems, as opposed to SharePoint Foundation 2010 and SharePoint Server 2010, which are supported only on 64-bit operating systems. The database platform selected for Microsoft Office SharePoint Server 2007 or Windows SharePoint Services 3.0 should be consistent with the planned platform for Microsoft SharePoint Server 2010 or Microsoft SharePoint Foundation 2010. For example, if SQL Server 2008 will serve as the database software for the Microsoft Office SharePoint Server 2007 or Windows SharePoint Services 3.0 trial versions you should maintain that version for Microsoft SharePoint Server 2010 or Microsoft SharePoint Foundation 2010 to avoid downgrade support limitations such as SQL Server 2008 to SQL Server 2005. For additional information on SQL Server 2008 downgrade rights see: SQL Server 2008 Licensing Frequently Asked Questions http://www.microsoft.com/sqlserver/2008/en/us/licensing-faq.aspx  | | |  | How to set Replication Directory Changes
| | |  | Walkthrough of creating a SharePoint 2010 external list using Visual Studio 2010 Beta
There are a bunch of SharePoint features in Visual Studio 2010 Beta. You may have already heard about them from reading the blog Short Overview of SharePoint Features in Visual Studio 2010 or by other means. Today I want to introduce one of them, Business Data Connectivity (BDC) designer, which is available in the project template Business Data Connectivity Model. If BDC is new to you, here is a short description. BDC is one of two most important architectural components of Microsoft Business Connectivity Services (BCS) which enables users to read and write data from external systems—through Web and Windows Communication Foundation (WCF) services, databases, and Microsoft .NET Framework assemblies—from within Microsoft SharePoint 2010 and Microsoft Office 2010 applications. This MSDN webpage Business Data Connectivity (BDC) Service has a more descriptive version. Visual Studio 2010 helps a SharePoint developer to develop, debug and deploy .NET assemblies as external data sources to SharePoint. In the following paragraphs, I will walkthrough with you how to create your first SharePoint external list using Visual Studio 2010. In order to make this walkthrough work on your machine, you need to install SharePoint 2010 Public Beta* and Visual Studio 2010 Beta2#. *: Please read Setting Up the Development Environment for SharePoint Server before the installation. If you are using SharePoint Foundation 2010 you will need to create a Feature Event Receiver to enable the import of BDC models. How to create a Feature Event Receiver will be covered in a future blog post. #: Please make sure Microsoft SharePoint Development Tools component is selected when installing. It is chosen by default if you choose Full installation. Let’s start the journey. 1. Create a new BDC Model project. (Main menu: File -> New -> Project…). In the left column of the New Project dialog, you are able to find node 2010 under tree view Visual C# -> SharePoint. Similarly you can find same node under Visual Basic -> SharePoint. In the middle column of the dialog, you should be able to see Business Data Connectivity Model listed as one of the project templates. See the screenshot as follows. Here I am creating BDC Model project in Visual C#. You are able to do the same things in Visual Basic.
 2. After clicking [OK] button in the New Project dialog, the SharePoint Customization Wizard dialog will be displayed. In this dialog you can customize the local site you want to target and trust level for the SharePoint solution. Since a BDC model is deployed to a farm, a collection of one or more SharePoint servers and one or more SQL servers, only “Deploy as a farm solution” option is enabled. Here is the screenshot of the dialog.
 3. When you click [Finish] button in the SharePoint Customization Wizard dialog, the BDC Model project will be created. There are four main UI panes that help you manage the BDC model visually. They are the BDC Designer Surface, BDC Method Details Pane, BDC Explorer, and Properties Browser. a. The BDC Designer Surface allows editing entities, identifiers, methods, and associations between entities. And you can do that either from toolbox or context menus. b. The BDC Method Details pane, where its name is already self-explanatory, lets you edit everything related to a method, from the method itself, its parameters to its parameters’ type descriptors, from method instances to filter descriptors, etc. c. BDC Explorer lists and organizes metadata objects in the BDC model in a tree view. It lets you to browse and search metadata objects in a graphical way and allows you to copy/cut/paste type descriptors between different parameters or type descriptors. d. Properties Browser gives you a familiar way of editing components and attributes of BDC Models. We use it to supplement the functions offered by the other three panes and list all the attributes for a particular metadata object for editing. Here is a typical layout of a BDC Model project as described above.  4. If you notice, there is already a default entity generated for you when the project is created. This default entity also has an identifier and two methods ReadItem and ReadList created. One is a Finder method that is to return a collection of data. The other is a Specific Finder method that is to return a specific entry based on the input parameter(s). 5. Now let’s deploy to the SharePoint server. You can either click the deploy menu item in main menu (Build -> Deploy Solution), or in the context menu of the project or the solution. In the output you will see several activities happening including packaging, solution retraction/addition, deployment, etc. 6. Let’s open the target site and see if our model has been successfully deployed. Open the target site with any browser supported by SharePoint, like Internet Explorer 8. Create an external list based on the model we just deployed. Here are the steps to create an external list in case you are new to it. a. In main menu: Click Site Actions -> More Options… b. On the Create dialog, select External List, click [Create] button in the right column c. On the next external list create form, type a name for the list. Check ‘Yes’ to display the list on the Quick Launch for easy access. Then click to select the model we just deployed in the External Content Type Picker form. Click [Create] on the external list create form. Now the Hello World list is displayed.  In the main menu under List Tools -> Items, you may find only “View Item” option is enabled. Guess why? Yes, it is because the default entity only has a Finder method to view the entire list and a Specific Finder method to view a specific item. In our next blog in this series, we will show you how to add more functions like Add, Update and Delete to the list as well as pull data from external data sources.  | | |  | Beta Language Packs for SharePoint Foundation 2010 Beta and SharePoint Server 2010 Beta are now available for download
| | | | | | Разработка на платформе Sharepoint | | |  | Практика использование WSS 3.0 в рамках предприятия
В докладе продемонстрированы возможности технологии SharePoint, приобретенные и опробованные на практике, в реальных условиях предприятия. Представлен пример описывающий простоту и легкость создания самостоятельных решений с использованием бесплатной версии продукта WSS 3.0. Стратегия примера направлена на демонстрацию возможностей как разработчикам, так и ИТ-специалистам. | | |  | Test-Driven SharePoint Development
В докладе показан пример TDD разработки веб-части под платформу SharePoint, так же приведен пример хостинга Dynamic Languages Runtime на примере IronPython | | |  | Платформа SharePoint: решение типовых бизнес-задач
SharePoint – это прежде всего платформа создания веб-приложений, которая может быть использована в решении множества задач. В докладе показывается, как создать простую систему поддержки обращений пользователей на основе бесплатного шаблона HelpDesk. | | |  | Ударим PowerShell'ом по SharePoint'у
Использование SharePoint API из PowerShell. PowerWebPart 2.0. Создание и работа с полями и списками. | | |  | Бизнес-интеллект. Использование Excel Services в построении ваших бизнес-моделей
В докладе подробно рассказывается о технологии Excel Services, а также рассматривается практическое применение данной технологии в построении распределённых бизнес-приложений. | | |  | Создание рабочего процесса в SharePoint (одобрение / отклонение документа )
Доклад знакомит слушателя с понятием рабочего процесса в SharePoint, предлагая несложный пример организации документооборота с использованием переменной рабочего процесса. Показано, как настраивается рабочий процесс для одобрения или отклонения документа рецензентом в SharePoint Designer, и как он затем тестируется в браузере. | | |  | Платформа SharePoint: автоматизации процессов и решение задач документооборота
Одной из наиболее востребованных задач в ИТ является автоматизация процессов и реализация функций документооборота. Платформа SharePoint обладает такой функциональностью, и в докладе дается общая информация о Workflow Foundation. Демонстрируются возможности WF для согласования документов с помощью визуального инструмента SharePoint Designer. | | |  | Silverlight 2, WCF и SharePoint – веселее вместе!
Технология Microsoft SharePoint позволяет разработчику использовать уже готовую платформу для хранения информации, распределения доступа к ней, создания пользовательских интерфейсов, инфраструктуры для развертывания решений, а также программных интерфейсов и веб-сервисов. Если реализовать веб-части Silverlight, взаимодействующие с веб-сервисами SharePoint, то можно создавать очень мощные веб-приложения. Посмотрите, как это делается. |
|
|
| | Sharepoint изнутри | | |  | Рецепт передачи параметров веб-части в ascx, если ascx не компилируется в dll
Разбираем распространенный случай. Вы имеете пользовательский элемент управления (ascx) который лежит у вас в папке ...\Template\CONTROLTEMPLATES и не компилируется в сборку, а компилируется "на лету". Теперь надо малой кровью создать веб-часть, которая загрузит в себя этот элемент управления и передаст ему необходимые параметры.
У меня получился следующий результат:
public class TestWebPart : System.Web.UI.WebControls.WebParts.WebPart{
private int pageSize = 25;
[WebBrowsable( true),
Personalizable(PersonalizationScope.Shared),
DefaultValue( "25"),
Category( " "),
FriendlyNameAttribute( "- "),
XmlElement(ElementName = "PageSize")]
public int PageSize{get{return pageSize;}set{pageSize = value;}}
protected override void OnInit(EventArgs e){
base.OnInit(e);
this.ExportMode = WebPartExportMode.All;
UserControl ctrl = LoadControl("~/_controltemplates/TestUserControl.ascx", new object[1] { PageSize });
if (ctrl != null){this.Controls.Add(ctrl);}
}
private UserControl LoadControl(string UserControlPath, params object[] constructorParameters){
List<Type> constParamTypes = new List<Type>();
foreach (object constParam in constructorParameters) constParamTypes.Add(constParam.GetType());
UserControl ctl = Page.LoadControl(UserControlPath) as UserControl;
ConstructorInfo constructor = ctl.GetType().BaseType.GetConstructor(constParamTypes.ToArray());
if (constructor == null){throw new MemberAccessException("The requested constructor was not found on : " + ctl.GetType().BaseType.ToString());}else{constructor.Invoke(ctl, constructorParameters);}
return ctl;
}
}  | | |  | К вопросу про то, как писать код?
| | |  | Sharepoint User Group
Группы пользователей — очень популярный формат общения людей, работающих в сфере информационных технологий. Он предполагает регулярные встречи участников и обмен опытом. Теперь у нас стало еще на одну группу больше. И эта группа полностью посвящена платформе Sharepoint.
Russian SharePoint User Group – это площадка для собраний единомышленников, работающих с продуктами и технологиями SharePoint.
Это не официальное, то есть не организуемое сотрудниками Microsoft собрание. Организаторы обещают, что встречи RUSUG будут проводиться раз в три-четыре недели. Запланированы доклады MVP по SharePoint, в том числе — из других стран. Кроме того, ожидается участие сотрудников Microsoft Consulting Services, работающих с технологией SharePoint.
Темами ближайших встречь будет новая платформа — SharePoint 2010.
Более точную информацию ищите на сайте организаторов.  | | |  | Отправлем уведомление о встрече по e-mail (Outlook 2007 meeting appointment)
Недавно столкнулась с задачей отправлять пользователю не обычное письмо, а meeting appointment для Outlook 2007.
Класс MailMessage позволяет добавлять в письмо различные представления. В том числе и календарь и html представление. Но для того, чтобы добавить такое представление нужно сгенерировать хитрый текст. Вот что из этого вышло:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Mail;
using System.Security.Principal;
using System.DirectoryServices;
using System.Net;
namespace TestProj
{
public class Appointment
{
public Appointment(){}
public void EmailAppointment(DateTime StartDate, DateTime EndDate, String Location, String OrganizerName, String OrganizerEmail, String Summary, String Subject, MailAddressCollection AttendeeList)
{
MailMessage Mail = new MailMessage();
//html
System.Net.Mime.ContentType HTMLType = new System.Net.Mime.ContentType("text/html");
AlternateView HTMLView = AlternateView.CreateAlternateViewFromString(GetHTML(StartDate, EndDate, Location, OrganizerName, OrganizerEmail, Summary, Subject, AttendeeList), HTMLType);
// calendar
System.Net.Mime.ContentType CalendarType = new System.Net.Mime.ContentType("text/calendar");
CalendarType.Parameters.Add( "method", "REQUEST");
CalendarType.Parameters.Add( "name", "meeting.ics");
AlternateView CalendarView = AlternateView.CreateAlternateViewFromString(GetCalendar(StartDate, EndDate, Location, OrganizerName, OrganizerEmail, Summary, Subject, AttendeeList), CalendarType);
CalendarView.TransferEncoding = System.Net.Mime.TransferEncoding.SevenBit;
Mail.AlternateViews.Add(HTMLView);
Mail.AlternateViews.Add(CalendarView);
Mail.From = new MailAddress(OrganizerEmail);
foreach (MailAddress attendee in AttendeeList)
{
Mail.To.Add(attendee);
}
Mail.Subject = Subject;
SmtpClient Server = new SmtpClient("server1", 25);
Server.Send(Mail);
}
private string GetHTML(DateTime StartDate, DateTime EndDate, String Location, String OrganizerName, String OrganizerEmail, String Summary, String Subject, MailAddressCollection AttendeeList)
{
string bodyHTML = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\">\r\n<HTML>\r\n<HEAD>\r\n<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\r\n<META NAME=\"Generator\" CONTENT=\"MS Exchange Server version 6.5.7652.24\">\r\n<TITLE>{0}</TITLE>\r\n</HEAD>\r\n<BODY>\r\n<!-- Converted from text/plain format -->\r\n<P><FONT SIZE=2>Type:Single Meeting<BR>\r\nOrganizer:{1}<BR>\r\nStart Time:{2}<BR>\r\nEnd Time:{3}<BR>\r\nTime Zone:{4}<BR>\r\nLocation:{5}<BR>\r\n<BR>\r\n*~*~*~*~*~*~*~*~*~*<BR>\r\n<BR>\r\n{6}<BR>\r\n</FONT>\r\n</P>\r\n\r\n</BODY>\r\n</HTML>";
return string.Format(bodyHTML,
Summary,
OrganizerName,
StartDate.ToLongDateString() + " " + StartDate.ToLongTimeString(),
EndDate.ToLongDateString() + " " + EndDate.ToLongTimeString(),
System. TimeZone.CurrentTimeZone.StandardName,
Location,
Summary);
}
private string GetCalendar(DateTime StartDate, DateTime EndDate, String Location, String OrganizerName, String OrganizerEmail, String Summary, String Subject, MailAddressCollection AttendeeList)
{
string DateFormatUsing="yyyyMMddTHHmmssZ";
string bodyCalendar = "BEGIN:VCALENDAR\r\nMETHOD:REQUEST\r\nPRODID:Microsoft CDO for Microsoft Exchange\r\nVERSION:2.0\r\nBEGIN:VTIMEZONE\r\nTZID:(GMT-06.00) Central Time (US & Canada)\r\nX-MICROSOFT-CDO-TZID:11\r\nBEGIN:STANDARD\r\nDTSTART:16010101T020000\r\nTZOFFSETFROM:-0500\r\nTZOFFSETTO:-0600\r\nRRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=11;BYDAY=1SU\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:16010101T020000\r\nTZOFFSETFROM:-0600\r\nTZOFFSETTO:-0500\r\nRRULE:FREQ=YEARLY;WKST=MO;INTERVAL=1;BYMONTH=3;BYDAY=2SU\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE\r\nBEGIN:VEVENT\r\nDTSTAMP:{8}\r\nDTSTART:{0}\r\nSUMMARY:{7}\r\nUID:{5}\r\nATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN=\"{9}\":MAILTO:{9}\r\nACTION;RSVP=TRUE;CN=\"{4}\":MAILTO:{4}\r\nORGANIZER;CN=\"{3}\":mailto:{4}\r\nLOCATION:{2}\r\nDTEND:{1}\r\nDESCRIPTION:{7}\\N\r\nSEQUENCE:1\r\nPRIORITY:5\r\nCLASS:\r\nCREATED:{8}\r\nLAST-MODIFIED:{8}\r\nSTATUS:CONFIRMED\r\nTRANSP:OPAQUE\r\nX-MICROSOFT-CDO-BUSYSTATUS:BUSY\r\nX-MICROSOFT-CDO-INSTTYPE:0\r\nX-MICROSOFT-CDO-INTENDEDSTATUS:BUSY\r\nX-MICROSOFT-CDO-ALLDAYEVENT:FALSE\r\nX-MICROSOFT-CDO-IMPORTANCE:1\r\nX-MICROSOFT-CDO-OWNERAPPTID:-1\r\nX-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:{8}\r\nX-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:{8}\r\nBEGIN:VALARM\r\nACTION:DISPLAY\r\nDESCRIPTION:REMINDER\r\nTRIGGER;RELATED=START:-PT00H15M00S\r\nEND:VALARM\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n";
bodyCalendar = string.Format(bodyCalendar,
StartDate.ToUniversalTime().ToString(DateFormatUsing),
EndDate.ToUniversalTime().ToString(DateFormatUsing),
Location,
OrganizerName,
OrganizerEmail,
Guid.NewGuid().ToString("B"),
Summary,
Subject,
DateTime.Now.ToUniversalTime().ToString(DateFormatUsing),
AttendeeList.ToString());
return bodyCalendar;
}
}
}  | | |  | Материалы со встречи разработчиков в офисе Microsoft
Как и обещала, выкладываю материалы.
Встреча прошла не без технических проблем. Но в позитивном ключе. Это был мой первый раз на UserGroup. Думаю, что не последний.
Надеюсь вы узнали для себя что-то новое )
Презентацию и демо проект можно скачать тут: http://www.zshare.net/download/656659556d798df7/
Всем спасибо, кто был с нами!  | | |  | Встреча разработчиков в офисе Microsoft, посвященная дню программиста
16 сентября с 19.00 до 22.00 абсолютно безвоздмездно в Крылатских холмах в офисе Microsoft состоится очередная встреча Mocковского сообщества .Net разработчиков.
Мой доклад первый по счету и, как всегда, про Sharepoint.
"Разработка веб-сайтов на Sharepoint В докладе покажут, что не каждый рожденный ползать не может летать. Посмотрите на SharePoint не только со стороны построения внутренних порталов и документооборота, но и со стороны создания привлекательных веб-сайтов, удобных для пользователей и администраторов. Посмотрите на то, как до неузнаваемости изменить такой привычный внешний вид портала и сделать сверкающий и привлекательный веб-сайт."
Подробности ищите тут: http://mdna.ineta.ru/Events/EventMultiSessionInfo.aspx?Id=344d0f01-4ac4-4f5b-89ae-35b66f8f5e3c  | | |  | Веяния времени. У меня теперь тоже есть twitter
Держалась, держалась и тоже завела себе Twitter. Если что, можно спрашивать меня о чем-нибудь важном или интересном.  | | | | | | Блоги на ITcommunity | | |  | Каких возможностей мне не хватает в SharePoint 2010 BCS
В данной заметке я решил немного поразмышлять о том, чего же мне не хватает в BCS при планировании основных сервисов приложений, руководствуясь стандартными для SharePoint практиками. Большинство из этих ограничений связаны с природой сервисов BCS, а именно тем, что данные не находятся в локальном хранилище, соответственно не могут полностью контролироваться с помощью сервисов SharePoint.
Итак, [...]   | | |  | SharePoint 2010 как платформа для стартапа
Важность социальных сетей очевидна – очень убедительные цифры представлены в ролике Social Media Revolution Причем все чаще в этой сфере ищут решения своих задач представители бизнеса. Этот факт прекрасно понимают и в Microsoft. SharePoint уже давно зарекомендовал себя в бизнес-среде. И в новой версии SharePoint 2010 функционал для взаимодействия пользователей существенно расширен. SharePoint – прежде всего платформа приложений и базового функционала порой бывает недостаточно для решения специфичных задач...   | | |  | Тренинг по SharePoint 2010 в Москве, 5 февраля
| | |  | SharePoint 2010: Примеры работы с BCS
Введение
Предлагаю рассмотреть несколько примеров работы с SharePoint 2010 Business Connectivity Services.
Все ресурсы, связанные с Business Connectivity Services можно найти на Business Connectivity Services Resource Center. Кстати на нём же можно скачать замечательный постер-шпаргалку по технологии.
Для работы с рассматриваемыми примерами предлагаю вам скачать SharePoint 2010 SDK.
Adventure Works Web Service
В данном примере показана реализация стандартного asp.net asmx [...]   | | |  | Может ли .NET Reflector 6 помочь разработчику SharePoint?
Сегодня наконец-то дошли руки до Reflector 6 Pro Beta. Если вы ещё не слышали, то я повторюсь, что эта версия рефлектора умеет дебажить внешние сборки в Visual Studio. Конечно же меня в первую очередь заинтересовала возможность дебага Microsoft.SharePoint.dll
При первом запуске рефлектора, он автоматически установит плагин в студию. Далее с помощью появившегося пункта меню можно подгрузить [...]   | | |  | Воспоминания: Портал ТНК-BP
Разбирая “архивы”, нашел старое видео case study по корпоративному порталу ТНК-BP. Тот проект был моим первым настоящим боевым крещением в SharePoint. Портал успешно функционирует по сей день, активно используется и непрерывно развивается. Это приятно. P.S. Этим постом я заодно тестирую Silverlight Streaming    | | |  | Виртуальная машина SharePoint Server 2010 Beta 2, Visual Studio 2010 Beta 2 и Exchange Server 2010
В период вынужденного затишья хочу порадовать хорошей новостью.
Стала доступна готовая виртуальная машина с SharePoint Server 2010 Beta 2.
Если точнее, то для загрузки доступны две виртуальные машины, призванные работать совместно. Второй машиной можно пользоваться, когда необходимо работать с почтой или с Exchange 2010 в целом совместно с SharePoint 2010. Список же развернутых и сконфигурированных продуктов впечатляет:
- Windows Server 2008 R2

- SQL Server 2008 SP2
- SharePoint Server 2010 Beta 2
- Project Server 2010 Beta 2
- Office Web Applications Beta 2
- FAST Search for SharePoint 2010 Beta 2 (попробуйте!)
- Office 2010 Beta 2
- Visual Studio 2010 Beta 2
- Microsoft Exchange Server 2010
- Microsoft Office Communication Server 2007 R2
- Microsoft Office Communicator 2007 R2
Отличная среда для тестирования и демонстраций...   | | | | | | Новости Russian Sharepoint UG | | |  | Мы переехали на новый домен
Основной текст: Наконец, мы сделали это! Мы переехали на новый отдельный домен http://rusug.net!
Можно начинать поздравлять с этим событием. Есть ещё некоторые замечания, над устранением которых мы работаем. Возможно вы заметите ещё какие-то ошибки, тогда обязательно напишите нам об этом в специальной теме.
Опубликован: 03.02.2010 12:17 |
|
|
| | TechNet Magazine | | |  | Inside SharePoint: Using Kerberos for SharePoint Authentication
January 2010
Kerberos is one of the more popular authentication options in the enterprise. Read this article to see how to get the most out of Kerberos in a SharePoint environment. | | |  | SharePoint изнутри: Подготовка к выпуску SharePoint 2010
Ноябрь 2009
Подготовка к выпуску SharePoint 2010 означает ознакомление с вариантами обновления и миграции, а также действиями, которые необходимо предпринять, чтобы подготовить ИТ-среду. В данной статье Пав Черны дает советы и практические рекомендации. | | |  | Inside SharePoint: Protect SharePoint Data
October 2009
Pav Cherny looks at the data-protection strategies and options available with SharePoint, focusing on the most issues and how to resolve them. | | |  | Inside SharePoint: Securing External SharePoint Communications
September 2009
Protecting SharePoint from the bad guys involves understanding your topology and layering solutions. | | |  | Inside SharePoint: Improving SharePoint Performance
August 2009
Pav Cherney presents an overview of key SharePoint architecture components, describes how they can lead to common performance issues, and discusses how to resolve and troubleshoot problems. | | |  | Geek of all Trades: Microsoft's New Certifications: What They Are, Why They Matter
August 2009
With the Microsoft Certified Systems Engineer credential being retired for all iterations but Windows Server 2003, a new certification program has been created. Greg Shields explains how this new certification path helps to better identify where your skills lie. | | |  | Inside SharePoint: SharePoint Security Hardening
July 2009
SharePoint security hardening requires an end-to-end approach that addresses the full spectrum of security dependencies and risks within and across server farms. Pav Cherny discusses how deploying NAP with IPsec enforcement is an effective way to harden your SharePoint infrastructure. | | | | | | Sharepoint Magazine | | |  | Avoid Newbie Mistakes: 10 Steps to Successful SharePoint Deployments
A common word that keeps popping up around SharePoint deployments is “Governance,” as if it will help you avoid chaos and have a more successful deployment. The answer is, when executed properly, it can. | | |  | SharePoint’s Branding Limitations, Part 4
Not all graphical designs for a portal will work in a SharePoint environment. There are a couple of limitations the Graphical Designer must know. A Graphical designer needs to know the scope of the graphical design.
This article will give the graphical designers more insight into the effect of these design decisions. | | |  | SharePoint’s Branding Limitations, Part 3
Not all graphical designs for a portal will work in a SharePoint environment. There are a couple of limitations the Graphical Designer must know. A Graphical designer needs to know the scope of the graphical design.
This article will give the graphical designers more insight into the effect of these design decisions. | | |  | SharePoint’s Branding Limitations, Part 2
Not all graphical designs for a portal will work in a SharePoint environment. There are a couple of limitations the Graphical Designer must know. A Graphical designer needs to know the scope of the graphical design.
This article will give the graphical designers more insight into the effect of these design decisions. | | |  | SharePoint’s Branding Limitations, Part 1
Not all graphical designs for a portal will work in a SharePoint environment. There are a couple of limitations the Graphical Designer must know. A Graphical designer needs to know the scope of the graphical design.
This article will give the graphical designers more insight into the effect of these design decisions. | | |  | Partner Spotlight : Tam Tam
Tam Tam is a full-service internetbureau.We link concept, design and technique such way that online questions of our customers are filled in successfully. In this we are ambitious, but also simply complete Dutch. We are proud of our top position in the Netherlands, our employees AND customers. | | |  | SharePoint Magazine Partner Spotlight
SharePoint Magazine is excited to introduce a new program for Microsoft Partners |
|
|
| | Форум на GDN | | |  | Простые вопросы знатокам
Имеется список клиентов.
В поле "услуги" к одной записи о клиенте можно добавить несколько значений услуг.
Соотв. услуги берутся из списка, где каждому наименованию присвоена цена.
Задача, получить в Списке "Результаты" сумму всех услуг, назначенных клиенту.
Естественно, что рабочий процесс справляется с суммированием 1 значения без проблем, а вот множественные значения он почему-то не воспринимает.
Подскажите в чем проблема.
--------------------------
Имеется список клиентов.
Клиентов можно добавлять в этот список, но хотелось бы иметь такую фишку...
- Иметь выпадающий список со всеми клиентами, а если еще и с фильтром побуквенного ввода...
- Иметь поле, которое добавляло бы нового клиента, если его нет в списке.
|ид|ФИО|прочая инфа|
Тоесть что-то вроде подстановки уже имеющихся ФИО из этого же списка при помощи выпадающего списка, а если клиент новый - то через ввод нового.
Делается для оптимизации работы.
Курсач сдавать нужно, а вот эти проблемы так и повисли, решение со скриптами -...круто, но что-то не получилось.
Юзал
Не получилось.
Если кто поможет разобраться с проблемами - буду очень благодарен, время жмёт.
.Благодарю за внимание. | | |  | SaharePoint Изменение состояния задачи
Всем привет! В списке задач, когда кликаеш на какойнибудь задаче появляетеся список: Просмотреть элемент; Изменить элемент...
Как в этот список добавить пукт "Завершить задачу"? | | |  | Форма выборки из списка
Добрый день!
Необходимо создать форму выборки данный из списка по определенному значению. Те имеется какая то форма с текстовым полем и кнопкой. При вводе данных в это поле выдается таблица со строки удовлетворяющими фильтру. Важно чтобы фильтр срабатывал именно по кнопке.
Есть ли примеры реализации, что можно сделать в этом случае?Возможно ли использовать infopath? | | |  | Право только на просмотр содержимого document library
Друзья,
проконсультируйте пожалуйста, как можно реализовать следующее требование. Мне нужно дать возможность некоторой группе пользователей смотреть содержаимое document library. То есть они должны видеть все папки и файлы, ходить по дререву этих папок. Но не должны иметь возможность открыть и посмотреть сами документы.
Следующий шаг - мне нужно будет дать части из них возможность смотреть и документы, но только в определенных папках. То есть ходить можно везде, но документы смотреть только, например, своего регионального подразделения. Это легко реализуемо, если конечно как-то хитро это не отстрелить на первом этапе.
Можно как-то реализовать только просмотр структуры document library без возможности просмотра самих документов на MOSS 2007?
Спасибо. | | |  | Механизм "Оповестить меня" в WSS\MOSS 2007
Здравствуйте!
Имею ситуацию - есть 2 домена почты user1@md1.ru и user2@md2.ru оба домена хостятся на сервере smtp.md1.ru в настройках MOSS 2007 указан домен почты md1.ru и сервер почты smtp.md1.ru.
Дык вот, когда у пользователя sharepoint в профиле прописан ёмыл = user@md1.ru - все работает, а когда у другого пользователя прописан ёмыл - user@md2.ru - то оповещения не ходят, причем в стандартных местах никаких ошибок не пишет.
Никто не знает как диагностировать проблему? или в каких логах посмотреть? | | |  | Список Контакты в Sharepoint и Outlook 2007. Новые поля.
Доброго времени суток !
В WSS 3.0 есть стандартный список - Контакты.
Этот список легко подключается к Outlook 2007
Но возникла потребность в создании дополнительных полей доступных как через браузер, так и через оутлук.
Вот с этим проблемы.
Как можно создать поле чтоб оно было доступно при просмотре контактов и через подключенные контакты в Outlook 2007 и через форму на узле ? | | |  | Графики в SharePoint
Каким образом можно строить всевозможные графики на стороне sharepoint на основе допустим списка? Может быть существуют некие сторонние разработки?
А вабще хотелось бы построить график на основе данных поступающих из внешней системы(с помощью подключения к внешнему источнику данных). | | | | | | Хабрахабр | | |  | Microsoft SharePoint / Семь стартапов за неделю на платформе Sharepoint 2010
Важность социальных сетей очевидна, причем все чаще в этой сфере ищут решения своих задач представители бизнеса. Этот факт прекрасно понимают и в Microsoft. SharePoint уже давно зарекомендовал себя в бизнес-среде. И в новой версии SharePoint 2010 функционал для взаимодействия пользователей существенно расширен.
Sharepoint это платформа приложений и возможность для стартапов быстро реализовать идею и сразу получить рынок пользователей Sharepoint для распространения. В январе прошел конкурс, где стартапам предложили за одну неделю создать приложение на платформе SharePoint.
| | |  | Microsoft SharePoint / Использование лямбд для построения CAML-запросов в SharePoint'е
Статья от коллег, SharePoint-разработчиков.
Это статья написана для тех разработчиков SharePoint-based продуктов, которые время от времени сталкиваются с необходимостью делать выборки из одного и/или нескольких списков SharePoint'а — что, в принципе, случается практически всегда :-). В этой статье я рассмотрю несколько способов реализаций таких выборок с их достоинствами и недостатками. В конце статьи, я дам пример использования недавно опубликованного проекта Camlex.NET ( http://camlex.codeplex.com/), который кажется мне наиболее удобным для этого случая. Итак…
| | |  | Microsoft SharePoint / [Ссылка] Виртуальная машина SharePoint Server 2010 Beta 2
Майкрософт наконец выложила 2 VHD виртуальных машин с SharePoint Server 2010 Beta. Помимо собственно SharePoint машины включают и другие продукты, которые обычно используют совместно: Exchange Server 2010, Office Communication Server 2007 R2, Office 2010 Beta 2 и т.д.
Для разработки установлена Visual Studio 2010 Beta 2. | | |  | Microsoft SharePoint / SharePoint 2010: Business Connectivity Services
Введение
В данной статье я хочу рассказать об одной из самых, на мой взгляд, полезных возможностях в SharePoint 2010. Речь пойдёт о BCS: Business Data Conectivity Services. BCS с точки зрения вариантов использования представляет собой некоторый аналог того, что было известно в MOSS 2007 как BDC (Business Data Catalog). Однако в новой версии SharePoint эти сервисы намного повзрослели. Так в чём же концептуальная разница:
| | |  | Microsoft SharePoint / SharePoint 2010 Beta доступен для закачки TechNet и MSDN подписчикам
Дождались, наконец-то SharePoint Server 2010 Beta доступен для скачивания
подписчикам TechNet и MSDN.
https://msdn.microsoft.com/en-us/subscriptions/securedownloads/default.aspx
Напоминаю вам, что доступен он только в x64 редакциях, а так же есть Русская
редакция.
| | |  | Microsoft SharePoint / REPL WebPart для SharePoint
Intro
 Сегодня я расскажу о прототипе первого компонента под ярлычком Sapphire. Это REPL WebPart. Эта веб-часть предназначенная для производства оперативных изменений на серверной стороне SharePoint, так же для удаленного исполнения скриптов и тестирования некоторых кусков кода.
PreBody
Производство данной веб-части было инициированно в довольно таки частых потребностях исполнения серверного кода с достаточной оперативностью, в недоступности средств разработки под рукой.
Здесь есть небольшая презетнация, в которой я постарался отобразить принципы работы Repl WebPart: Sapphire Environment Repl WebPart
В добавок к слайдам расскажу о том, что веб-часть представляет собой классический хостинг Dynamic Languages Runtime языков, пока из которых доступен только Python.
| | |  | Microsoft SharePoint / Кратко о Patterns & Practices: SharePoint Guidance
Интро
В данной статье я хочу произвести обзор руководства под названием “SharePoint Guidance” от подразделения Microsoft patterns & practices. Данное руководство предназначено разработчикам/архитекторам SharePoint, в нём описаны основные принципы построения систем на данной платформе. Над руководством трудились выдающиеся представители разработки под SharePoint, а так же он упорно держится в списке самых активных проектов на CodePlex. Далее чуть подробнее.
| | | | | | DkmS's blog | | |  | Сюрпризик
Теперь – от поля SPFieldUser. Оказалось, что поведение поля существенно зависит от значения свойства AllowMultipleValues. Например, при значении true обращение к данным элемента списка с таким полем (item[fieldName]) приводит к получению объекта типа SPFieldUserValueCollection (как, собственно, и можно ожидать). Однако при значении AllowMultipleValues == false тип полученного объекта – вовсе не SPFieldUserValue, а String. Похоже, кто-то где-то лишний раз ToString() присобачил… Technorati Tags: Sharepoint | | |  | Забавное…
Выяснилось <здесь должна быть ссылка на форум GDN, но он упал и не поднимается >, что для сохранения результатов редактирования элемента списка пользователю требуется разрешение на …удаление. Проверить просто – чуть-чуть измените настройку уровня разрешений “Чтение”:  После этого попробуйте выполнить редактирование и сохранение под пользователем, имеющим такой уровень разрешений. Несколько весёлых минут…  Technorati Tags: Sharepoint | | |  | Visual Studio 2010 и Sharepoint 2007
Задался целью выяснить, можно ли обойтись одной Студией (желательно, 2010-й) для разработок (хотя бы, для модификаций имеющихся) – веб-частей, утилит, рабочих процессов и т.д. для текущей версии Sharepoint (до использования новой версии и разработок для неё когда ещё дело дойдёт…). Выяснилось, что новая Студия вполне спокойно относится к проектам, сделанным в Студии 2008 без использования VSeWss – их можно редактировать, компилировать и делать другие необходимые действия. Даже можно включить использование .NET 4.0, правда, исполняться полученный код не станет . При отладке нужно переключить версию отлаживаемого управляемого кода на 2.0 (по умолчанию используется 4.0, а они вместе отлаживаться не могут). Для разработок же под Silverlight новая Студия намного удобней – в неё включили часть функциональности Expression и отпала необходимость прыгать между приложениями. В общем, можно потихоньку переползать на Студию 2010 – по крайней мере, выглядит она “красивше”. Правда, новый Help 3.0 не нравится совсем: с запуском дополнительного web-сервера примириться ещё можно, но вот демонстрация материала в окне браузера раздражает очень сильно - вызывается не новый экземпляр браузера, а тот, который был запущен последним (правда, на собственное окно браузера почем-то внимания не обращается). [А я для удобства работы использую несколько рабочих столов и появление браузера с другого стола генерирует не очень печатные слова…]. Спишем пока что на бету. | | |  | Sharepoint 2010, установка
Да, интересное занятие получила Шарепойнт-тусовка с выходом бета-версии. Занятие сопровождается большой радостью – версия сразу на многих языках, русском в том числе. Пока что этим радость и исчерпывается . В общем, получить что-то работающее на моём компьютере удалось только с четвёртой попытки. Установка на Windows 7 (по инструкции с MSDN) началась довольно бодро, но установщик предложил выполнить обновление существующей версии WSS 2007. Пришлось отказаться – работать, всё же, на чём-то надо… Эксперименты продолжились на Server 2008 R2 в VirtualBox (почему-то Windows Virtual PC не признаёт 64-битных гостевых систем…) с памятью 2 ГБ. Так, установить office sharepoint server 2010 удалось, но открыть даже страницу Центра администрирования не получилось – явно ресурсов маловато. Установить office sharepoint foundation server 2010 (SPF, так теперь придётся WSS называть) привычным образом (как ферму с использованием своей установки SQL Server 2008) не получилось – мастеру настройки не понравилось, что предлагаемый ему пользователь не является доменным, а поднимать на виртуалке домен в мои планы пока что не входит… В итоге пришлось ограничиться “автономной” установкой SPF 2010. Чемпионских скоростей работы не наблюдается, но для экспериментов сойдёт… Одно хорошо – обнаружилась веб-часть “Веб-часть Silverlight”, с такой же практически функциональностью, что и SilverLight App Launcher. | | |  | Запуск SilverLight-приложений на страницах Sharepoint
В процессе глубоко научных попыток использовать SilverLight в пользовательском интерфейсе собственных разработок получилась веб-часть общего назначения для запуска SilverLight-приложений на Шарепойнт-страницах. Собрал туда разные идеи из блогов и др. источников и выложил вместе с исходниками. Может, ещё кому пригодится… | | |  | Маленький такой сюрпризик
Казалось бы, два определения свойства эквивалентны: 1: public StyleOfViewList ListViewStyle { 2: get { return listviewstyle; } 3: set { listviewstyle = value; } 4: } 5: StyleOfViewList listviewstyle = StyleOfViewList.GridStyle; и 1: public StyleOfViewList ListViewStyle { get; set; }Тип свойств – обыкновенное перечисление 1: public enum StyleOfViewList : byte { GridStyle = 1, PackedStyle = 2 }Действительно, Рефлектор показывает для обеих конструкций практически одинаковый код, да и опыт с документацией подсказывают, что должно быть без разницы, какую из конструкций использовать… И так оно и есть, пока вторая конструкция не использована в определении свойства веб-части (с атрибутом [WebPartStorage]) – такая веб-часть становится неработоспособной. Замена на первую конструкцию излечивает проблему. Нда… Technorati Tags: Sharepoint, Глюкалово | | |  | Очередная попытка, бесплодная…
В очередной раз пытаюсь найти решение возникшей на ровном месте задачи получения информации с удалённых узлов Шарепойнта. Собственно, особого разнообразия вариантов и нет – к неработающему способу обращения по механизму WebServices добавляется способ с использованием WCF. Смотрим, что получится: 1: string endPointUrl = url.TrimEnd("/".ToCharArray()) + "/_vti_bin/Lists.asmx"; 2: ListsSoapClient client = new ListsSoapClient("ListsSoap", endPointUrl); 3: client.ClientCredentials.Windows.AllowedImpersonationLevel = TokenImpersonationLevel.Impersonation; 4: client.ClientCredentials.Windows.AllowNtlm = true; 5: client.ClientCredentials.Windows.ClientCredential = new NetworkCredential(); 6: // from http://blogs.msdn.com/kaevans/archive/2009/03/10/calling-sharepoint-lists-web-service-using-wcf.aspx 7: client.Open(); 8: XmlNode tst = null; 9: try { 10: tst = client.GetListCollection(); 11: Console.WriteLine(string.Format("success: {0} bytes", tst.OuterXml.Length)); 12: } catch (Exception err) { 13: Console.WriteLine(string.Format("error: {0}", err.Message)); 14: } Результат, собственно, тот же, что в предыдущем опыте – локальные узлы (находящиеся на том же компьютере, откуда делается запрос, и на компьютерах, виртуальных или физических, в локальной сети) отдают данные как ожидается, при обращении к удалённым узлам (заведомо имеющим NTLM аутентификацию и разрешённый анонимный доступ) получаем исключение с сообщением “The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'”. Весьма информативно, да… Раскопки показывают, что народ с этим тоже пытается как-то бороться (безуспешно, впрочем), а корень зла описан в KB-статье. Оказывается, это борются так с “отражёнными атаками”, которые неизвестно, бывают ли, но средство борьбы надёжное – фиг прорвёшься. Что называется, лес рубят – щепки летят. В общем, фантазия иссякает… Осталось попробовать водрузить на сервер свой сервис и пытаться через него как-то передавать нужное, но это никак не поправит ситуации, когда удалённый сервер – чужой.
Technorati Tags: Sharepoint, Глюкалово | | | | | | Nick's blog | | |  | Новшества в SharePoint 2010
Составил я тут обзор новых функций, которые появятся в SharePoint 2010. Набор, думаю, не полный.
Когда стал выкладывать, то понял, что с выкладкой изображений имеются определенные проблемы, так что решил кинуть целым вордовским файлом.
Если Вы найдете еще какие вкусности, то кидайет их в комменты к этой статье. Буду рад содействию =). | | |  | SharePoint 4.0 откладывется. А также Как я ставил Windows 7
На днях вычитал в Инете не самую радостную новость. Выпуск нового SharePoint'а, включая WSS 4.0 и Office Server, откладывается. Ранее Microsoft собирались презентовать новый SP осенью этого года в Лос-Анджелесе. Но, по последним данным, выход откладывается на 2010 год. Вместе с этим откладывается и выпуск Office 14. Да и вообще, Microsoft обещает чуть ли не одновременно запустить Windows 7, Office 14 и SharePoint 4.0.
Кстати про Windows 7. Сегодня я, наконец-то, вошел в состав его тестировщиков, переустановив ось на своем ноутбуке. Где-то с пол года назад у меня рухнула моя XP на моем домашнем компьютере... | | |  | Windows Internal Database
Для всех, кто считал, что используя Windows SharePoint Services Вам придется рано или поздно раскошелиться на систему управления базами данных, есть отличная новость - появление Windows Internal Database.
Некоторые скептически относились к WSS, расценивая его, как способ повысить продажи SQL Server'а. Конечно же, WSS можно поставить на бесплатный SQL Server 2005 Express Edition. Но его главное ограничение заключается в ограничении максимального размера базы данных в 4 Гб. Конечно это лучше, чем MSDE с 2Гб, которое существовало в пору SQL 2000. Но, все же, заставляет постоянно думать о том, что начав использовать "бесплатный" WSS, будь уж добр раскошелься на SQL Server.
Теперь Microsoft положила конец этим страхам, выходом Windows Internal Database... | | |  | PerformancePoint войдет в состав SharePoint Server
На днях вычитал в одном из мсдн-блогов отличную новость.
PeformancePoint в скором будущем войдет в состав SharePoint Server'а. Это произойдет с выходом SP3 для PerformancePoint. К сожалению выход этого сервис пака запланирован лишь на лето это года. Похоже что это удивительное решение Microsoft связано с возникшим мировым финансовым кризисом. Хотя, если это и так, то объединение PerformancePoint'а с SharePoint'ом может немного припоздниться. Не смотрять ни на что, это, безусловно, отличная новость. Ведь PerformancePoint как продукт был довольно не дешевым и рассчитан в основном на руководителей компаний... | | |  | ChartPart для SharePoint
Не так давно наткнулся на одну новую веб-часть, созданную Wictor Wilén. Она позволяет создавать графики основанные на данных списков SharePoint. Виктор, предлагал другим помочь ему в создании локализаций этой веб-части. Я решил откликнуться на его призыв... И вот встречаем ChartPart For SharePoint с русской локализацией.
| | |  | Оповещения с динамическим получателем в SharePoint
  На форуме gotdotnet'а не раз
поднимался вопрос о том, как создать оповещение пользователю, указанному в том
или ином поле списка. Так, как это сделано, например, для списка задач, где
можно автоматически оповещать о создании задачи пользователя, которому эта
задача назначена.
  Зачастую
следовали ответы о создании Workflow или написании обработчика событий, который
будет делать SPUtility.SendEmail(... | | |  | Баг прав создания оповещения на элемент в SharePoint
Не так давно обнаружил один довольно забавный баг связанный с правом создания оповещения на элемент. По-моему, там даже несколько взаимосвязанных багов.
Почему-то, если у Вас есть право на создание оповещений на конкретный элемент списка, но нет права на создание оповещений на самом Web'е, при переходе на страницу создания оповещения на элемент Вы получите ошибку «Нет доступа». Вроде бы, не смертельно, ведь можно дать права на создание оповещений на Web, а для списков отменить наследование и не давать таких прав, хотя это, безусловно, не очень-то удобно... | | | | | | Grabar's blog | | |  | Доклад по PerformancePoint Server 2007 на сайте TechDays.ru
В докладе рассматриваются проблемы технологической организации управления эффективностью бизнеса в современных компаниях, и подробно демонстрируется их решение с помощью Microsoft PerformancePoint, как инструмента для построения цифровых панелей индикаторов.
http://www.techdays.ru/videos/1507.html | | |  | How to allow only Folder items to be created in the List root folder
Sometimes you need to prohibit creation of list items in the root folder of the list. For example, you invented some pretty looking, folder-based, issue cataloguing system, but end users create issues in list’s root folder no matter how hard you beg them not to.
Below you will find the code that looks into HttpContext for [...] | | |  | Move list item into a subfolder in the same list
Someone asked how to copy the list item into a subfolder on the same list. The code the guy provided that used SPListItem.CopyTo(url) did not work for him and was yelling the following:
Invalid URI: The format of the URI could not be determined.
The reason was the fact the guy used destination item property Url. This property [...] | | |  | Краткий обзор возможностей SharePoint 2010 для конечных пользователей
В этой статье я привожу вольный перевод информации доступной на английском языке в разделе “Обзор” на сайте SharePoint 2010
Новый пользовательский интерфейс
Ribbon, знакомый пользователям Office 2007 приходит в Sharepoint 2010. Без того близкий Офису, Шарепоинт стал еще на шаг ближе. Ribbon такойже настраиваемый и констекстно-зависимый, каким мы его привыкли видеть в Офисе. Противникам такой инновации можно не [...] | | |  | Get Free Typemock licenses – ASP.NET bundle launch
Unit Testing ASP.NET? ASP.NET unit testing has never been this easy.
Typemock is launching a new product for ASP.NET developers – the ASP.NET Bundle – and for the launch will be giving out FREE licensesto bloggers and their readers.
The ASP.NET Bundle is the ultimate ASP.NET unit testing solution, and offers both Typemock Isolator, a unit test tool and Ivonna, the Isolator add-on [...] | | |  | SharePoint: Разворачиваем среду для разработки – Часть 3
В третьей части я расскажу о процессе установки и настройке расширений SharePoint для Visual Studio (VSeWSS). В качестве примера, я буду использовать мартовскую CTP версию расширений – VSeWSS 1.3 CTP.
Расширения призваны облегчить и унифицировать процесс разработки приложений на платформе SharePoint. Облегчение разработки достигается за счет предоставления шаблонов и визардов для создания основных элементов, таких как [...] | | |  | ScreenFlow 1.5. Hands-on experience of screencasting utility for Mac OS X
During the month of April I had to record couple of screencasts for techdays.ru, a MSFT operated web site. The site is all about Microsoft technologies and so were my both screencasts.
I have to confess that I am a real newbee in screen cast authoring field so take my words with a grain of salt.
For [...] |
|
|
|
|
|
|