Hi guys!
Working with: NAV 2009 R2
Refering to this post:
viewtopic.php?f=32&t=47131
I created a simple list page and a factbox (both based on the customer table, linked via SubformLink -> "No."=Field("No.")).
In the previous post, jreynolds (last but one replay) said that, when a record in the repeater of the main page is selected, the OnFindRecord trigger of the factbox is fired. He's right!
He suggests to program this trigger in order to show what you want in the factbox, but if I insert some code in it, the factbox doesn't show anything!
the following is the code I inserted in the factbox:
OnFindRecord(Which : Text[1024]) : Boolean
FILTERGROUP(4);
message(getfilter("No."));
FILTERGROUP(0);
Now I took a look to OnLineHelp in order to understand what this trigger does (I never used it), but I really can't get how to use it!
Overrides the default form behavior and enables you to specify which record you want to display when the form opens.
[Ok]:= OnFindRecord(Which)
My question is how can I specify the record to show in this factbox (if it's possible, because I'm not sure I understood correctly the meaning of this trigger) through OnFindRecord trigger?
Thx all in advance!
Answers
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
It works as expected... More or Less...
for example: if I select the record with id 1000 I would the factbox to show information of the record 2000.
is it possible?
It works as expected... More or Less...
you can try
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Damn! It doesn't work.
It works as expected... More or Less...
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
It works as expected... More or Less...
can you simply try with
from other customer like 1000 or 3000..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
you're right, now works!
the last thingh I'd like to try is to change values shown in factbox if the sourceExpr of fields aren't fields of a record variable but variable like string code etc...
It works as expected... More or Less...
end of tests... now I try in a real project.
thx mohana for helping me!
It works as expected... More or Less...
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav