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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 18.08.2015, 11:44   #6  
syl is offline
syl
Участник
Аватар для syl
 
236 / 21 (1) +++
Регистрация: 10.06.2015
Адрес: Киев
Цитата:
Таким образом, есть версия, что вы передаете не все поля ключа замены для таблицы AgreementClassification.
Тоесть мне надо еще передавать tableNum для таблици AgreementClassification? Но данное поле не отображается в списке, я выжу единственное поле Name...

Код класса AgreementClassificationKey
X++:
#AifTableNaturalKeyDataContainerTypes
[AifDataContainerTypeAttribute(#TableNaturalKey_AgreementClassification)]
class AgreementClassificationKey extends AfStronglyTypedDataContainer
{
    #define.Name('Name')
    #define.AgreementRelationType('AgreementRelationType')

}

public boolean existsAgreementRelationType()
{
    return this.exists(#AgreementRelationType);
}

public boolean existsName()
{
    return this.exists(#Name);
}

public RelationType parmAgreementRelationType(RelationType _value = 0)
{
    if (!prmisdefault(_value))
    {
        this.set_Attribute(#AgreementRelationType, _value);
    }

    return this.get_Attribute(#AgreementRelationType);
}

public Name parmName(Name _value = '')
{
    if (!prmisdefault(_value))
    {
        this.set_Attribute(#Name, _value);
    }

    return this.get_Attribute(#Name);
}
правильно ли будет в данном случае изменить класс таким образом:
X++:
public RelationType parmAgreementRelationType(RelationType _value = tableNum(SalesAgreementHeader))
{
    if (!prmisdefault(_value))
    {
        this.set_Attribute(#AgreementRelationType, _value);
    }

    return this.get_Attribute(#AgreementRelationType);
}

Последний раз редактировалось syl; 18.08.2015 в 12:00.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Ошибка в проекте AIF web services kpoxa DAX: Программирование 2 07.05.2015 09:13
AIF: Microsoft Dynamics AX Services and Windows Azure Service Bus Blog bot DAX Blogs 0 24.07.2013 03:13
daxdilip: How to: Configure Dynamics AX AIF Services to listen for SSL Requests (https) Blog bot DAX Blogs 0 23.01.2011 10:12
Dianne Siebold: AIF Top Ten Blog bot DAX Blogs 1 22.04.2008 11:19
Русская локализация Axapta 3 ? SlavaK DAX: Администрирование 59 01.07.2003 22:38

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 12:11.