I'm trying to create a factbox on a page which is run using the warehouse receipt lines table. The factbox is generated using comments on the comment line table with a specific comment type. This functionality all works as i can display a page with the expected lines on through the use of a button. I'm trying to change this to be displayed in a factbox. In the pciture below the function "SetFactbox" is called when the main card page is opened. This than calls my factbox page to set the global variable to that record. This is then used to generate the comments (the bit that does work). How can I then make this so it displays in the factbox, it currently returns blank.
*This post is locked for comments