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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 09.01.2007, 02:17   #1  
gb is offline
gb
Участник
 
42 / 15 (1) ++
Регистрация: 31.03.2005
? InventTable form is empty
Hello,

I have a strange behaviour of InventTable form in my development environment ( AX3 + sp2 + KR2)

When I open this form it shows no records, although, InvnetTable, InventTableModule, and InventItemLocation have all records. If I disable innerJoin on InventItemLocation datasource then I get all records on the form and an error message thrown by kernel:

"Query does not contain 5 data source(s)."

If I disable InnerJoin on Purch datasource then I again get all the records and four similar error messages:

"Query does not contain 2 data source(s)."
"Query does not contain 3 data source(s)."
"Query does not contain 4 data source(s)."
"Query does not contain 5 data source(s)."

Same form works fine in Production and Testing environment.
Has anybody seen this? Any suggestions?

Thanks,
gb
Старый 09.01.2007, 15:39   #2  
slava09 is offline
slava09
Участник
Аватар для slava09
MCBMSS
Дети Юза
1C
 
1,642 / 237 (11) ++++++
Регистрация: 06.03.2003
Адрес: Украина, Киев
Have you records in InventItemLocation where field InventDimId = 'Axapta' for each record in InvnetTable ?
Have you 3 records in InventTableModule for each record in InvnetTable ?
Старый 09.01.2007, 16:15   #3  
kashperuk is offline
kashperuk
Участник
Аватар для kashperuk
MCBMSS
Соотечественники
Сотрудники Microsoft Dynamics
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии 2011
Лучший по профессии 2009
 
4,361 / 2084 (78) +++++++++
Регистрация: 30.05.2004
Адрес: Atlanta, GA, USA
The explanation for the messages you are getting is simple:
All operations with the datasources on the InventTable form are performed using the method dataSourceNo(), so in order for the form to work properly you must have 5 datasources connected.

As for the error with the missing records, I think it has to be due to one of your previous modifications.
Have you added more datasources to the form?
And do check what slava09 wrote in his post above - the InventDimId for the records in InventItemLocation has to equal the one specified in method findOrCreateBlank of InventDim table (by default, it is 'Axapta')
Старый 09.01.2007, 16:24   #4  
gb is offline
gb
Участник
 
42 / 15 (1) ++
Регистрация: 31.03.2005
Yes, that is all in place..
The form was working fine before. Something happened a few days ago and it stopped working properly. Interesting thing is that if I add new record to InventTable, then it will show up in the form, but all existing records are not shown. I compared new records in InventTable and InventTableModule and InventItemLocation and they all look similar.
Старый 10.01.2007, 20:28   #5  
gb is offline
gb
Участник
 
42 / 15 (1) ++
Регистрация: 31.03.2005
I found my problem and solution. The globalIventDimId was set to default Axapta, while we use DIM000001 as an "empty" dim Id.
Clearing the cache resolved the issue.
Regards,
gb
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
dax-lessons: Problem when creating a dynamic form with ActiveX control & Solution :) Blog bot DAX Blogs 0 30.04.2008 16:05
Axapta Lessons: Trapping keystrokes in a Form Blog bot DAX Blogs 13 01.11.2006 18:16
Программно записи в InventTable djoker DAX: Программирование 8 02.12.2004 16:59
Говорят вышел SP2 для Axapta 3. Кто нибуть что знает на эту тему? soin DAX: Прочие вопросы 10 13.10.2003 10:43
Не отображается товары в Form\InventTable! Zelenhof DAX: Программирование 6 15.01.2003 17:55
Опции темы Поиск в этой теме
Поиск в этой теме:

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

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

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

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