As for your case #1 (content/client calling server) :
-MRNOEDIT -INCLUDE TEST/server.fex
As for case #2 (server calling content/client) :
I don't know how you can perform such a thing and why you would like to.
The client is the "top" layer of the IB configuration/installation which exist to "display" the information to the user. When the server exist to perform the task/report/db access.
Even when you have all your code done in the content (client side), on execution it calls the server
So why would you like to have the "performer" (server) call the "displayer" (client) ?
The "relationship" is the client calling the server, not the opposite.
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007