RTFM
Once in a while, when trying to solve a tough problem, I'll literally sit and read the Designer Help, scrolling through @function and Lotuscript documentation, looking for ideas.
So this morning, I got quite a thrill when I stumbled across @Command(SwitchForm). According to the help...
Changes the form used to display the current document.
Unlike the venerable ViewSwitchForm, this one happens immediately.
So I thought to myself, "gee, if I could determine that a document was in an embedded context, I switch it to an alternate form, and that would simulate having embedded view/editor combinations actually respecting form formulas!" I immediately got to work on a proof-of-concept. After all, if you work with advanced interface design in Notes, that's practically the Holy Grail.
Alas, after two hours of messing with it, it turns out that SwitchForm doesn't work in embedded contexts. Tragically, this is not documented. And I'm not terribly surprised that it doesn't work, but it sure would have been nice if it said so in the help (and I was looking at Notes 8's help.) Still, nice effort Damien!
Amusingly, when I went to see if I could find anyone else encountering a similar issue on the 'net, I get this...
Ummm, I most certainly DID NOT mean that!!!!


Comments
Posted by Brian Green At 11:04:09 PM On 03/08/2007 |