Forum Replies Created
-
AuthorReplies
-
September 24, 2006 at 11:52 pm in reply to: Using GroupWise.CloseWindow() to close a message window #7750
Thanks, I think this will work.
After testing I will let you know the result.
Greetings,
Jan CromwijkThanks for the answer.
I will try it with the login or multilogin method.
Greetings,
Jan CThanks for your answer.
Unfortunately I know this already.The thing I do not know at this moment is:
How can I get the sent-items of an account when that account is not active in the current GroupWise window?(without switching visibly to that account). the account can be a mainaccount or a proxied.Greetings,
Jan CromwijkThanks for your suggestion.
It works, but it is not exactly the solution I am looking for. Because:
– when making a proxy account of the main account is disabeling the advantage I make of using the quick messages collection for quickly finding the last sent item.
– the current active groupwise window gets the proxied account so when switching to the proxied account I got two groupwise windows with the same account.I wish I could say to my program, for this message you must use this account and for another message you must use that account.
Greetings,
Jan CromwijkHi, you understood my question correct.
Only my issue is a little bit more complicated.I have 2 GW mainwindows open
1. the mainaccount mailbox (Jan Cromwijk)
2. a proxied mailbox (test)This are the steps I am walking:
– I am creating an e-mail in the mainaccount mailbox window
– when creating it I am switching to the window with the proxied mailbox
(Client.clientstate.currentaccount.proxied = true)
– Then I go directly back to my message without activating the mainaccount window
(Client.clientstate.currentaccount.proxied STAYS true)
– After finishing the message I sent it.
On the ‘before send event’ a small applet gets the accountname related to the message
sAccountName = GroupWise.ItemGetText(“X00”, itfFrom)
Utilities.TransferData = sAccountName
– The applet I wrote to sort send e-mails to the right projectfolder starts on ‘the after send’ event.
– It looks if the account is proxied and sees it is proxied so it goes looking in the proxied account for the folder to sort to.
BUT
The message is created in the main account, thus it must get the folders in the mainaccount.To fix this issue I read out the Utilities.TransferData to a sAccountName
Then I want to check to following:
– is the current accountname the same as the accountname in the variable
– if it is different then activate the correct mailbox to get the correct folderlist.When I use the code you suggest then switching to the proxied account (test) works fine. But when switching to the mainaccount I got a message that I have no rights to proxy to that account.
Another not wished effect is that the currently active window gets the proxied account so when switching to the proxied the window with the mainaccount is switched to the proxied so I have two windows with the proxied account.I hope you understand the issue and can help me to solve this adventure.
Greetings,
Jan CromwijkThanks, the code to proxy to an account works good.
But, it does not work to switch to the main account (thats normally not proxied).Greetings,
Jan CThanks!
quote:
set oAccount = oMsg.parent
msgbox oAccount.owner.displayname & vbcrlf & oAccount.owner.emailaddress
Works good!
quote:
Originally posted by Support 1:
A script terminates at the end of sub Main.
Are the used forms from the applet also unloaded at that time?
Greetings,
Jan CromwijkThanks
I will review the scopes of my variables.
Thanks for your good explanation.
I have an question raised by your answerquote:
Deallocation is automatic on termination of the script.
When is the termination of the script?
– At the end of the sub main
OR
– When closing GWGreetings,
Jan Cromwijk -
AuthorReplies