Are you open to doing this in a webviewer? Looks and feels like a portal but has way more power. Data is passed back and forth via JSON Object. Haven't done any of this within FM natively because the webviewer has so many design possibilites along with being lightning fast.
You going to be at DevCon? Maybe we could touch base there and I can show you what we're doing with it.
The webviewer gives you heaps of control as you have the power of any/every web technologies including PHP calls back to the database you are working in.