GetRows being called infinitely on customised form

Our Chart Tracker form, in it’s base implementation, works perfectly fine - we can right-click–>open with on the fields that have respective “Like” values.

However, we have created a customisation that simply removed the binding from the datagrid to the business object (epibinding changed from GLJrnDtl to none), and then changed the BAQ source from a view to a UDF (bearing in mind that the UDF returns a table of the same schema as the view). This dropped all of our context menu open with options, understandably - there was no more “Like” property.

Setting the “Like” field on the JournalNum to GLJrnDtl.JournalNum doesn’t work (as it requires JournalCode, FiscalYear, and BookID aswell). So we rebound the datagrid to the GLJrnDtl and we have all the right-click context menu options once again.

This is where the issue arises - when I open a Journal Tracker instance, it opens perfectly fine - I can continue on that form, browsing all the tabs, etc. The moment I close it, I can see via SQL Profiler that _ZFW_GLJrnDtl_GetRows is being called infinitely - it returns the result, but then re-runs that same query over and over again until Epicor crashes.

Is there something that is set when referring to a view that is not set in the elements when using a UDF?

Any help is hugely appreciated.