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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 11.07.2012, 20:46   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
If you have a recordreference and want to use the value of a field in the recordreference, you can use it in this way:



TheRecordReference.FIELD(10).VALUE



You might even do something as this



SomeFieldReference.SETRANGE(TheRecordReference.FIELD(10).VALUE);



BUT for some reason, it can happen this crashes the NAV client. I had the problem with 50SP1  Build 30488 (I don’t know about more recent versions of NAV and even less in case you are in RTC). The weird part is that it doesn’t always happen. Recompiling the object doesn’t help. It might help adding some commands before the statement. So I think it is more a compiler-error.



But there is a way to completely avoid the problem. Don’t use TheRecordReference.FIELD(10).VALUE directly, but first put the field you need into a field-reference and then use the VALUE of that field-reference. Something like this:



SomeOTHERFieldReference := TheRecordReference.FIELD(10);

SomeFieldReference.SETRANGE(SomeOTHERFieldReference .VALUE);



Читать дальше
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 


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

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

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