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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 17.09.2018, 20:13   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
a33ik: Function SysOperationDataContractInfo::newParameterInfo has been incorrectly called
Источник: http://daxonline.org/1623-function-s...ly-called.html
==============

Problem

DictMethod, when it is running without debugger, does not correctly fetches metadata of inherited methods on a child class.
Following code:
static void VKDictMethodTest(Args _args){ DictMethod dictMethod; str parmName; int parmIndex = 1; dictMethod = new dictMethod(UtilElementType::ClassInstanceMethod, classNum(AssetProposalAcquisition), 'buildRange'); parmName = dictMethod.parameterName(parmIndex); if (parmName) { info(strFmt("ParmName: %1", parmName)); } else { throw error("incorrect"); }}
As can be seen from hierarchy browser the method buildRange is available at AssetProposal class.
Depending on the debug mode option, the execution of code above will give different results.

Debug mode: No
It does not able to fetch first parameter name.
Debug mode: When breakpoint
ParmName: _items
Impact


SysOperation framework uses DictMethod to prepare parameters for method execution
\Classes\SysOperationServiceController\getDataContractInfoObjectsInternal
<div>protected Map getDataContractInfoObjectsInternal(){ SysDictClass dataContractClass; DictMethod dictMethod; int parameterCount; int i; Object dataContractObject; SysOperationDataContractInfo contractInfo; Map dataContractInfoObjects; dataContractInfoObjects = new Map(Types::String, Types::Class); dictMethod = this.getServiceOperation(); if (dictMethod) { parameterCount = dictMethod.parameterCnt(); for (i = 1; i
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
NAV Team: Extensibility for the Microsoft Dynamics NAV Tablet Client Blog bot Dynamics CRM: Blogs 0 09.10.2014 15:00
a33ik: CRM 4.0 - function which returns current user lookup Blog bot Dynamics CRM: Blogs 0 25.07.2011 03:40
CRM DE LA CREME! Some useful CRMform jscripts Blog bot Dynamics CRM: Blogs 0 02.09.2009 10: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, время: 08:37.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.