Hello,
Does anyone have any idea how to link a factbox via the RecordID?
The factbox that will be linked, has a field called "Record ID" of the type Text.
For Example, I want to have a factbox on the Customer List. And this factbox can only contain the records where the RecordID-field is the same as the RecordID of the Customer.
Thanks!
0
Comments
try to create a list based on customers, and a factbox based on customers, too.
Example:
Customer list - onaftergetrecord
Customer Factbox - setsourcetable(VAR Customer: Table 18)
Althought this modification is pointless, in my opinion it should work without problems, but it behaves strange (difficult to explain, try it
It acts even stranger if you set the list to be a worksheet :shock:
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
My case is a little different. The fact box is unbound, so it has no Source Table. And therefore no SourceTableLink from the main Page.
I need a way to tell that Fact Box / Sub Page what it needs to display, but with no events firing as I move through the record list, I'm not sure it's possible with NAV code. I've tried OnAfterGetRecord, OnFindRecord, OnNextRecord...I can't figure out any trigger that will fire as you move from one record to the next.
Surely there is a solution here...
[Edit] Essentially it only fires for the first line in the list whenever the list is loaded. So OnOpenPage, or when you filter to a new set of values
http://www.mibuso.com/forum/viewtopic.php?f=5&t=20084
and it worked fine in nav2009sp1.
Now, it seems like the onafter is fired over and over when you open (and probably close, i don't remember) the page, but not when you brows the list(!!onaftergetrecord of card pages work fine, if i remember well).
i thought to report this to MS, but honestly, it's hard to explain because of my basic english skills
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
P.S.: don't lose your time with currpage.UPDATE, altought i think you've already tried
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
1. The OnAfterGetRecord trigger is fired as the user moves through the rows of a repeater for a
Worksheet type page. However, it does not seem to fire for other page types. Perhaps you can use a worksheet instead of a list.2. If you link the FactBox to the main page (via the SubformLink property) then the OnFindRecord trigger on the FactBox will fire as the user moves through the rows of the repeater on the main page. You may be able to program the OnFindRecord trigger to do what you need; information about the current record on the main page can be determined by the filters set in filter group 4 on the FactBox.
never tried this, thanks for the hint, i'll try it the next time
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
It will fire even if it is not linked. Even if it was linked, though, at that point you would already know the source data and you wouldn't have a generic FactBox anymore.
It uses a generic fact box to do most of the work. You should be able to get the idea of how it works from the code and documentation.