Hi All!
I have a little strange situation. I have a form with one table (TEST) with 6 records. In DS of that form (TEST_ds) I added init with lines
<code>
super();
this.query().dataSourceName('TEST').addRange(fieldnum(TEST,id)).value(queryvalue('2'));
</code>
Then I added also to this DS a method "test" with
<code>
display str test()
{
print "test";
return "test";
}
</code>
Then I added a field with data source TEST and method test to grid.
After opening a form I get exactly one record - very good, but "test" method is called 4 times.
Is it a bug on old Axapta version or I can change it to method "test" run only once?
I am asking because I have other, bigger form, where one of column is calculated for one record over 3 sec. On that form once record is shown finally but method is calculated multiple, 16 times for the same itemid, but others value of joining table records. After analyses I discover above and do very basic test describe above also what confirm that generating of record doesn't take 3 sec, but 16*3.
Thanks for your suggestions!
*This post is locked for comments
I have the same question (0)