I have a portal and column names above it (text elements).
Hiding of portal, fields in portal and text is conditioned with isEmpty ( $$modifying).
On format load $$modifying is set to "" ==> portal and text not visible.
A button activates a script to show data in the portal and $$modifying is set to "Y".
A button on each record in the portal activates a script to choose a record which sets $$modifying to "" again.
After Refresh Window text above portal and records in portal are not shown (OK), *but* portal frame is shown.