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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 02.11.2018, 14:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
d365technext: Form Data Source Field Method Override D365FO
Источник: http://d365technext.blogspot.com/201...-override.html
==============


Form Data Source Field Method Override D365FO



In this demo I will show to create extension class of form data source Field class and override method thorough COC.

Here is the annotation code to create COC


[ExtensionOf(formDataFieldStr(FormName, DataSourceName,DataFieldName))]




In this demo we are using HcmWorker form and creating Extension of DirPerson Data source field Personal Title..


[ExtensionOf(formDataFieldStr(HcmWorker, DirPerson,PersonalTitle))]


In actual code you can find the method in Hcmworker form




[DataField]
class PersonalTitle
{
publicCommon lookupReference(FormReferenceControl_formReferenceControl)
{
returnDirUtility::buildAffixReferenceControlLookup(_formReferenceControl, DirNameAffixType::PersonalPrefix);
}



}




Here is the code through this we create extension.


[ExtensionOf(formDataFieldStr(HcmWorker, DirPerson,PersonalTitle))]
finalclassDemo_Extension
{

}




Here is the code through this we override the method.




[ExtensionOf(formDataFieldStr(HcmWorker, DirPerson,PersonalTitle))]
finalclassDemo_Extension
{
publicCommon lookupReference(FormReferenceControl_formReferenceControl)
{
next lookupReference(_formReferenceControl);
returnDirUtility::buildAffixReferenceControlLookup(_formReferenceControl, DirNameAffixType::PersonalPrefix);
}



}


Now perform build in sync on your module. enjoy






Источник: http://d365technext.blogspot.com/201...-override.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
ievgensaxblog: D365FOE. How to override form data source field lookup method. Blog bot DAX Blogs 0 10.01.2018 05:11
dynamicsaxtraining: Vendor returns Blog bot DAX Blogs 0 11.10.2012 00:11
dynamicsaxtraining: Purchase Blog bot DAX Blogs 0 11.03.2012 05:25
CRM DE LA CREME! Some more useful javascripts for MS CRM Blog bot Dynamics CRM: Blogs 0 04.05.2010 11:05
wiki.dynamicsbook: Changes Made in Navision Attain 3.60 Blog bot Dynamics CRM: Blogs 0 02.09.2008 13:23
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 00:43.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.