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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 27.01.2013, 22:18   #1  
Kent is offline
Kent
Участник
 
46 / 10 (1) +
Регистрация: 24.01.2007
Two datasources, two grids
Hi,

I have two tables: t1 (main table), t2 (related table).

I should show on form only t1 and t2 records, where for t1 related t2 records exist,

Normaly I could use InnerJoin, but I have two grids: t1, t2.

I tried:
1. InnerJoin shows the same count of resords for t1, how much records exists for t2.
2. OuterJoin return all t1 records, even related records not exist in t2
3. ExistJoin return correct redords for t1, but records without values for t2.

Is here some solution?
Старый 28.01.2013, 02:26   #2  
lvan is offline
lvan
Участник
Аватар для lvan
Лучший по профессии 2014
 
856 / 82 (4) ++++
Регистрация: 15.04.2011
Записей в блоге: 1
You need Delayed (the default type of join) between t1 and t2
Additionally you will need to adjust the t1 query (e.g. in the t1 datasource init method, look for examples in standard forms) in the code and add "Exist t2" condition that you need.

p.s. consider changing the design, it looks kinda wrong - this type of joins should never came up in normal developments.

Последний раз редактировалось lvan; 28.01.2013 в 02:30.
Старый 28.01.2013, 12:15   #3  
Kent is offline
Kent
Участник
 
46 / 10 (1) +
Регистрация: 24.01.2007
Цитата:
Сообщение от lvan Посмотреть сообщение
You need Delayed (the default type of join) between t1 and t2
Additionally you will need to adjust the t1 query (e.g. in the t1 datasource init method, look for examples in standard forms) in the code and add "Exist t2" condition that you need.

p.s. consider changing the design, it looks kinda wrong - this type of joins should never came up in normal developments.
Hi. Yes, I know, this is not regular design in Ax, but it is customer request.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
daxmusings: Forum: Advanced Display Method Querying Joined Datasources Blog bot DAX Blogs 0 11.10.2011 09:11
Методы таблицы в DataSources (DAX4) Qaz Qwerty DAX: Программирование 2 16.06.2008 10:11
Refreshing DataSources on Form Blog bot DAX Blogs 3 07.05.2008 23:09
Kashperuk Ivan: Find all reports with datasources innerjoined 1:n Blog bot DAX Blogs 2 09.03.2008 14:05
Drag and Drop grids из одной формы в другую Sveta1978 DAX: Программирование 2 11.12.2007 18:46

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

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

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