dominoGuru.com

Your Development & Design Resource

Still trying to get @SetViewInfo to work - status update!

Failure... I'm close - so close - and that's the really annoying part! I think it's a matter of focus with the @SetViewInfo (and other like-View UI-commands) - the cursor/user focus needs to be on the target view for the commands to work - and that's what I'm missing here. And, after a quick look in the developerWorks/Notes.net forums, I find that I'm not alone here. Scary thing is, we tried the same exact thing - to no avail.

See - if you need to open a view from an external database (meaning, you're in Database1 and need to open a view in Database2) but you want said external view to show in your current database's frameset - well, you can't get there with Formula. If you could, you would hopefully be able to use the @SetViewInfo to trim down the list of returned documents... but I think I might have a hack/method of doing this until IBM (if ever) can address this functionality request. Sending a keyboard command to set the focus on the view - from Database2 - that displays in the NotesView of Database1 (if you're still following the example from above), and then running my @SetViewInfo-and-like code.

Now, when navigating a frameset from the keyboard, an F6 (or Shift+F6) will navigate from frame to frame in a Frameset. As my Frameset has only two frames, I don't have to worry about it - a single call to the keyboard's F6 should do the trick - so I used a modified agent to perform my F6-navigation through my frames. Now - here's the kicker - it worked. Sending an F6 keypress with this agent (modified to send an F6 instead of the TAB) sent the focus to the intended frame - but when I added my @SetViewInfo - that code seemed to execute before my agent could properly send the F6 keypress. So today, schedule-willing, I'll get around to playing with the timing of this and see if I cannot indeed get the F6+@SetViewInfo to work properly from a Frameset - I'll keep you all informed!


About the author: Chris Toohey

Thought Leadership, Web & Mobile Application Development, Solutions Integration, Technical Writing & Mentoring

A published developer and webmaster of dominoGuru.com, Chris Toohey specializes in platform application development, solutions integration, and evangelism of platform capabilities and best practices.



More from dominoGuru.com


dominoGuru.com is powered by IBM Notes Domino XPages & hosted by Prominic.NET

Contact Us

Use our Contact / Feedback form or one of these email addresses:

Creative Commons License

Except where otherwise noted, dominoGuru.com by Chris Toohey is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.