I'm trying to make the fields in a factbox visible/not visible depending on the values in the source table.
For example; if the source code is "extern", the field should be visible in the factbox and otherwise the field shouldn't be.
I created boolean global variables and set those in the Visible properties of the fields and I set those global variables to FALSE in the OnInsert trigger of the factbox. Next I put code in the OnAfterGetRecord trigger of the factbox to set the variables to TRUE depending on the condition (with a CASE statement).
Right now all fields are not visible, so the code in the OnInsert trigger works. But the code in the OnAfterGetRecord isn't and I don't know how to proceed.
Is it possible what I'm trying and if so how can it be done?