KDrago
asked on
Bring tab to front on Workspace
Hello -
I was wondering if there was any way programatically to bring focus to an open tab on the Workspace.
Let's say I have a "Projects" database open. I have it open to a form which contains an embedded view. This view shows all of my assigned tasks. Now I get an email with a link to this same form because a new task was assigned to me. If I forget I have the db open and click the link in the email I would like the open form to come to the forefront.
Thanks!
I was wondering if there was any way programatically to bring focus to an open tab on the Workspace.
Let's say I have a "Projects" database open. I have it open to a form which contains an embedded view. This view shows all of my assigned tasks. Now I get an email with a link to this same form because a new task was assigned to me. If I forget I have the db open and click the link in the email I would like the open form to come to the forefront.
Thanks!
Hi KDrago,
I think there's no way to do that using Lotus Script or C/C++ API (only backend).
You can try with key press simulations (using Ctrl + Tab to switch tabs of workspace).
Hope this helps,
Marko
I think there's no way to do that using Lotus Script or C/C++ API (only backend).
You can try with key press simulations (using Ctrl + Tab to switch tabs of workspace).
Hope this helps,
Marko
I didn't realize that was the default behavior in Notes but I just tried it and I see what you mean. That seems silly to me.
Anyway, I'm pretty sure you'll be able to do this using the EditDocument method in Lotusscript. See the designer documentation. There is a parameter called newInstance (R6 and above only) that will tell the code to try to open an existing instance of the document.
Anyway, I'm pretty sure you'll be able to do this using the EditDocument method in Lotusscript. See the designer documentation. There is a parameter called newInstance (R6 and above only) that will tell the code to try to open an existing instance of the document.
KDrago,
I ment you need to switch workspace tabs, not document tabs (but, by mistake, told you correctly what the keyboard shortcut is).
Marko
I ment you need to switch workspace tabs, not document tabs (but, by mistake, told you correctly what the keyboard shortcut is).
Marko
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
KDrago,
and yes, CTRL is &H11
Hope this helps,
Marko
and yes, CTRL is &H11
Hope this helps,
Marko
Uh, I can be wrong: >>If I forget I have the db open and click the link in the email I would like the open form to come to the forefront.
<< what is formatting the link? Geeez... let's create LOTS OF CODE instead of fixing the link!!!! :))
If you send a regular link, you can add target="_SELF", etc. to the link if it's a web link. Normally, these links are constructed for both Notes and WEB
Web side is easy, add a target.
Notes side, well, instead of URL + Notes link, maybe send BUTTON (such a concept) that, as Happy says, doesn't open a new instance.
So, decide in your application how you want the link to arrive. If you want it to open in the same instance of a window already open, then you're going to have to send both a URL and a button -- one for web, another for client.
make sense?
<< what is formatting the link? Geeez... let's create LOTS OF CODE instead of fixing the link!!!! :))
If you send a regular link, you can add target="_SELF", etc. to the link if it's a web link. Normally, these links are constructed for both Notes and WEB
Web side is easy, add a target.
Notes side, well, instead of URL + Notes link, maybe send BUTTON (such a concept) that, as Happy says, doesn't open a new instance.
So, decide in your application how you want the link to arrive. If you want it to open in the same instance of a window already open, then you're going to have to send both a URL and a button -- one for web, another for client.
make sense?
ASKER
I apologize for the delay...just returned to this now. Thanks for your help!
ASKER