![]() |
#1 |
Участник
|
Ever happened that your form/page does not show records (or only one) and you are sure that it works on the real table and you don’t have ANY filters (nor by code, nor by properties) on it?
IF yes THEN Continue reading ELSE Continue reading anyway! Generally it is because you have some code in the above-mentioned trigger (and also some others) so the default-behaviour is NOT run but your code should handle the behaviour you want/need. Even putting a commented line will disable the default-behaviour. Why this post? Well maybe you didn’t know about it, and now you do too. But this is not the real reason of this post. I found out something I didn’t know yet. I had this problem, was sure I was working on the real table, not having any filters and was sure I had nothing (not even a blank) in the those triggers. So was I going nuts or what? Or maybe NAV was nuts and thought there was some code/comment on 1 of the lines and didn’t show it? So, I exported the form as text and opened it to see what was in it. And I found that one of those triggers had a local variable in it! Removing that local variable fixed it! That was on a NAV2009R2 version. I also checked NAV2013 because I wanted to know if the pages had the same problem and I can confirm they have! I also tried putting a local textconstant instead of a local variable and it also generated the problem. Conclusions (yes! 2 of them!):
Читать дальше
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|