Показать сообщение отдельно
Старый 30.03.2009, 12:41   #11  
Bakai Madybaev is offline
Bakai Madybaev
Участник
 
201 / 16 (1) ++
Регистрация: 22.04.2008
Цитата:
Сообщение от vital.mih Посмотреть сообщение
А подскажите, плиз, неопытному куда вставлять код создания функции? Вызов то понятно на событии...
Если вы говорите о форме объекта, то:

Раздел "Параметры" - > Меню "Настройка" -> "Настроить объекты" -> 2-м щелчком открываете нужный объект (сущность/entity) -> В открывшемся окне меню "Формы и представления" -> из списка выбираем "Форма" -> В открывшейся форме выделяем нужное поле -> Справа кнопка "Свойства" -> Вкладка "События"

ЗЫ: возможно не совсем понял вопрос - так что чем полнее и подробнее ваш вопрос на форуме, тем выше вероятность, что вам помогут.
И почитайте SDK - вещь полезная.
Цитата:
Adding Scripts to the Form or Field Events
Add scripts to a form or field event by pasting code into the Event Property Details form in the Microsoft Dynamics CRM Web application.

In the Navigation Pane, click Settings, click Customization, and then click Customize Entities.
Open the entity that contains the form, and then click Forms and Views.
In the list, double-click Form.
To add a script to a form:
Click Form Properties.
On the Events tab, Click OnSave or OnLoad, and then click Edit.
– OR –

To add a script to a field:

Double click the field
On the Events tab, click Edit.
Select the Event is Enabled check box to enable the event and enter the body of the script.
On the Dependencies tab, in the Available Fields list, select any fields you referenced in the script, and then click >> to move the selected fields to the Dependent fields List.
Test your script in the three modes: create, update, and read-only:
On the Preview menu, click Create Form, Update Form, or Read-Only Form.
Click Save and Close to close the form
When your customizations are complete, publish your customizations.
To publish the customizations for the current entity, on the Actions menu, click Publish.

Последний раз редактировалось Bakai Madybaev; 30.03.2009 в 13:34.