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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 31.03.2008, 11:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,477 / 846 (79) +++++++
Регистрация: 28.10.2006
Two Tables with Two Relations
Источник: http://alexvoy.blogspot.com/2008/03/...relations.html
==============

Just to clarify to myself and maybe someone else how relations on tables work I created this demo project Demo2TablesRelations.xpo.

There are two tables Orders2 and Collections with two relations defined on Orders2 that work as dynalinks for Collections.


When an user chooses an item from Collection all records in the last are filtered in regards with CollectionType previously chosen on Orders form.


To change or add new records to Collection one can open the appropriate form of this table by pressing Collection button on Orders form but the relation should be cleared in Init method of Collection form.

if (element.args() && element.args().record().TableId == TableNum(Orders2))
{
Collection_ds.query().dataSourceNo(1).clearDynalinks();
}


Finally, to stand up once, I added the filter option by CollectionType.





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

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Setting security for temporary tables without modifying the application em# DAX in English 8 27.03.2009 19:42
gatesasbait: System-generated find() and exist() methods on tables Blog bot DAX Blogs 0 06.08.2008 00:05
Axapta Lessons: Exporting Tables and Class definitions Blog bot DAX Blogs 0 28.10.2006 18:22
Karl Tolgu: New properties on tables, maps and views in Dynamics AX 4.0 Blog bot DAX Blogs 0 28.10.2006 16:40
Как не использовать relations на таблицах demetra DAX: Программирование 13 14.07.2006 11:00

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

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

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