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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 24.02.2015, 15:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
SysDictCoder: Can’t define abstract or final methods on abstract table
Источник: http://feedproxy.google.com/~r/sysdi...3/I-EzJucz8hw/
==============

It seems Ax doesn’t allow you to use abstract or final on abstract tables. When adding abstract public myMethod() to an abstract table (e.g. EcoResProduct), you get this compile error:

Conflicting access modifier given.The error message doesn’t really make sense because the only access modifier specified is public. I’m not sure if this is intended behaviour or an issue with the compiler. There’s a whitepaper that mentions you can’t declare a table as final but it doesn’t say anything about the methods. In any case, a more meaningful error message would help.

This was discovered on Ax 2012 R2 CU7 but we could reproduce it in the Ax 2012 R3 CU8 demo machine.

To enforce overrides on derived tables you can still use the old school method like so:

public void myMethod(){ throw error(Error::missingOverride(funcName()));}


Источник: http://feedproxy.google.com/~r/sysdi...3/I-EzJucz8hw/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
SysDictCoder: Of arrays and methods Blog bot DAX Blogs 0 13.12.2010 15:11
kamalblogs: Exists methods don’t need table declaration in Dynamics Ax Blog bot DAX Blogs 4 16.07.2010 13:52
Dynamic Methods Microsoft CRM: Managing the AsyncOperationBase table entries Blog bot Dynamics CRM: Blogs 0 14.09.2009 21:05
axaptapedia: Table Methods Generator Blog bot DAX Blogs 0 13.02.2009 02:05
comRows.HorizontalAlignment() Omeo DAX: Программирование 9 26.04.2004 12:13
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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