Options

Manage OnFindRecord Trigger of a Factbox

Troubles_In_ParadiseTroubles_In_Paradise Member Posts: 588
edited 2011-06-21 in NAV Three Tier
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!
~Rik~
It works as expected... More or Less...

Answers

Sign In or Register to comment.