Показать сообщение отдельно
Старый 08.06.2017, 21:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
stoneridgesoftware: Extension Model: Creating a Static Table Method in Dynamics 365 for Operations
Источник: https://stoneridgesoftware.com/exten...or-operations/
==============

Creating table static methods for some tables was straight forward prior to the release of Microsoft Dynamics 365 for Operations (AX7), and arguably it still is if you are overlaying. Although this article is not intended to distinguish between over layering and extensions, I feel it is important enough to include some key points in this post.

Creating table methods that are static, while using the extension model are a little different. In this scenario, I will create a new method to validate that there is an entry in the external comment field in the table: TSTimeSheetLineWeek.

static class TSTimesheetLineWeek_Extension { /// /// Don't forget your comments /// /// /// Don't forget your comments /// /// /// Don't forget your comments /// public static boolean validateExtNotes(TSTimesheetLineWeek _tstTimeSheetLineWeek) { int i; boolean ret = true; for(i = 1; i
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.