AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 04.07.2014, 08:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
mscrmblog: Setting the List in ReadOnly mode to disable most buttons on the ribbon
Источник: http://mscrmblog.net/2014/07/04/sett...on-the-ribbon/
==============

Another requirement from the customer is at the Archive Centre no one should be able to upload/delete any documents through the UI.

There is a property that can be set on the list to disable the Ribbon bar and commands.

public override void FeatureActivated(SPFeatureReceiverProperties properties) { var web = properties.Feature.Parent as SPWeb; web.AllowUnsafeUpdates = true; var documentList = web.Lists["Archived Documents"]; documentList.ReadOnlyUI = true; documentList.Update(); web.Update(); }



Источник: http://mscrmblog.net/2014/07/04/sett...on-the-ribbon/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
mscrmblog: Disable Automatic Document Property Promotion on a List Blog bot Dynamics CRM: Blogs 0 25.06.2014 05:22
Gareth Tucker: Dynamically Disable Ribbon Buttons in Dynamics CRM Blog bot Dynamics CRM: Blogs 0 26.11.2013 10:11
Gareth Tucker: Adding Record Creation Buttons to the CRM 2011 Ribbon Blog bot Dynamics CRM: Blogs 0 12.01.2012 15:11
Gareth Tucker: Editing Ribbon Buttons in CRM 2011 Blog bot Dynamics CRM: Blogs 0 24.08.2011 09:11
mscrmblog: Customize Marketing List (List Member View) Blog bot Dynamics CRM: Blogs 0 13.08.2009 15:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 18:38.