odd Add Note behavior 
Author Message
 odd Add Note behavior

I have a web page running from within outlook, and I use client-side
VBScript to add a new note, but when the new note pops up, it always goes
out of focus, behind outlook (deselected in task bar).

I create the object like this:

Set ol = CreateObject("Outlook.Application")
Set myNameSpace = ol.Application.GetNameSpace("MAPI")
set myFolder = myNameSpace.Folders("Public Folders").Folders("All Public
Folders").Folders("clients").Folders("Client Folder Name").Folders("Notes")
 set myItem = myFolder.Items.Add
 myItem.display

This does create the note, and will add it to the correct folder, but the
user clicks on a link to add the note, and then the note pops up, quickly
"hides", and the user has to click on the icon in the task bar to bring the
new note to the foreground.

Is there something I can do to make it stay on top?

Thanks,

--
Kris Rudin, MS, MCP
Aurora Consulting Group, Inc.



Mon, 04 Apr 2005 05:15:32 GMT  
 odd Add Note behavior
Is there any code after the last line posted in the same subroutine?

--
Patricia Cardoza
Outlook MVP
www.cardozasolutions.com

~Please post all replies to the newsgroup~

Quote:
> I have a web page running from within outlook, and I use client-side
> VBScript to add a new note, but when the new note pops up, it always goes
> out of focus, behind outlook (deselected in task bar).

> I create the object like this:

> Set ol = CreateObject("Outlook.Application")
> Set myNameSpace = ol.Application.GetNameSpace("MAPI")
> set myFolder = myNameSpace.Folders("Public Folders").Folders("All Public
> Folders").Folders("clients").Folders("Client Folder

Name").Folders("Notes")
Quote:
>  set myItem = myFolder.Items.Add
>  myItem.display

> This does create the note, and will add it to the correct folder, but the
> user clicks on a link to add the note, and then the note pops up, quickly
> "hides", and the user has to click on the icon in the task bar to bring
the
> new note to the foreground.

> Is there something I can do to make it stay on top?

> Thanks,

> --
> Kris Rudin, MS, MCP
> Aurora Consulting Group, Inc.



Mon, 04 Apr 2005 05:50:18 GMT  
 odd Add Note behavior
No, that's the end of the sub.

Kris



Quote:
> Is there any code after the last line posted in the same subroutine?

> --
> Patricia Cardoza
> Outlook MVP
> www.cardozasolutions.com

> ~Please post all replies to the newsgroup~


> > I have a web page running from within outlook, and I use client-side
> > VBScript to add a new note, but when the new note pops up, it always
goes
> > out of focus, behind outlook (deselected in task bar).

> > I create the object like this:

> > Set ol = CreateObject("Outlook.Application")
> > Set myNameSpace = ol.Application.GetNameSpace("MAPI")
> > set myFolder = myNameSpace.Folders("Public Folders").Folders("All Public
> > Folders").Folders("clients").Folders("Client Folder
> Name").Folders("Notes")
> >  set myItem = myFolder.Items.Add
> >  myItem.display

> > This does create the note, and will add it to the correct folder, but
the
> > user clicks on a link to add the note, and then the note pops up,
quickly
> > "hides", and the user has to click on the icon in the task bar to bring
> the
> > new note to the foreground.

> > Is there something I can do to make it stay on top?

> > Thanks,

> > --
> > Kris Rudin, MS, MCP
> > Aurora Consulting Group, Inc.



Mon, 04 Apr 2005 06:18:55 GMT  
 odd Add Note behavior
How's the sub called?

--
Patricia Cardoza
Outlook MVP
www.cardozasolutions.com

~Please post all replies to the newsgroup~

Quote:
> No, that's the end of the sub.

> Kris



> > Is there any code after the last line posted in the same subroutine?

> > --
> > Patricia Cardoza
> > Outlook MVP
> > www.cardozasolutions.com

> > ~Please post all replies to the newsgroup~


> > > I have a web page running from within outlook, and I use client-side
> > > VBScript to add a new note, but when the new note pops up, it always
> goes
> > > out of focus, behind outlook (deselected in task bar).

> > > I create the object like this:

> > > Set ol = CreateObject("Outlook.Application")
> > > Set myNameSpace = ol.Application.GetNameSpace("MAPI")
> > > set myFolder = myNameSpace.Folders("Public Folders").Folders("All
Public
> > > Folders").Folders("clients").Folders("Client Folder
> > Name").Folders("Notes")
> > >  set myItem = myFolder.Items.Add
> > >  myItem.display

> > > This does create the note, and will add it to the correct folder, but
> the
> > > user clicks on a link to add the note, and then the note pops up,
> quickly
> > > "hides", and the user has to click on the icon in the task bar to
bring
> > the
> > > new note to the foreground.

> > > Is there something I can do to make it stay on top?

> > > Thanks,

> > > --
> > > Kris Rudin, MS, MCP
> > > Aurora Consulting Group, Inc.



Mon, 04 Apr 2005 07:27:42 GMT  
 odd Add Note behavior
The code snippet I have included is in a sub called AddNote():

sub AddNote()
[code here]
end sub

I have a link on my web page that looks like this:
<a href="#" onclick="AddNote()">Add a Note</a>

Very basic and simple. Or, at least it seems to me...

Thanks for looking into this!

Kris



Quote:
> How's the sub called?

> --
> Patricia Cardoza
> Outlook MVP
> www.cardozasolutions.com

> ~Please post all replies to the newsgroup~


> > No, that's the end of the sub.

> > Kris


message

> > > Is there any code after the last line posted in the same subroutine?

> > > --
> > > Patricia Cardoza
> > > Outlook MVP
> > > www.cardozasolutions.com

> > > ~Please post all replies to the newsgroup~


> > > > I have a web page running from within outlook, and I use client-side
> > > > VBScript to add a new note, but when the new note pops up, it always
> > goes
> > > > out of focus, behind outlook (deselected in task bar).

> > > > I create the object like this:

> > > > Set ol = CreateObject("Outlook.Application")
> > > > Set myNameSpace = ol.Application.GetNameSpace("MAPI")
> > > > set myFolder = myNameSpace.Folders("Public Folders").Folders("All
> Public
> > > > Folders").Folders("clients").Folders("Client Folder
> > > Name").Folders("Notes")
> > > >  set myItem = myFolder.Items.Add
> > > >  myItem.display

> > > > This does create the note, and will add it to the correct folder,
but
> > the
> > > > user clicks on a link to add the note, and then the note pops up,
> > quickly
> > > > "hides", and the user has to click on the icon in the task bar to
> bring
> > > the
> > > > new note to the foreground.

> > > > Is there something I can do to make it stay on top?

> > > > Thanks,

> > > > --
> > > > Kris Rudin, MS, MCP
> > > > Aurora Consulting Group, Inc.



Tue, 05 Apr 2005 01:15:19 GMT  
 odd Add Note behavior
Possibly the # bookmark is making the link reference the page again (looking
for a #), after the sub has run to call the note?

Have you tried using a <input type=button onclick="AddNote()" value ="Add a
note">?  Does it do the same thing?

Stuart


Quote:
> The code snippet I have included is in a sub called AddNote():

> sub AddNote()
> [code here]
> end sub

> I have a link on my web page that looks like this:
> <a href="#" onclick="AddNote()">Add a Note</a>

> Very basic and simple. Or, at least it seems to me...

> Thanks for looking into this!

> Kris



> > How's the sub called?

> > --
> > Patricia Cardoza
> > Outlook MVP
> > www.cardozasolutions.com

> > ~Please post all replies to the newsgroup~


> > > No, that's the end of the sub.

> > > Kris


> message

> > > > Is there any code after the last line posted in the same subroutine?

> > > > --
> > > > Patricia Cardoza
> > > > Outlook MVP
> > > > www.cardozasolutions.com

> > > > ~Please post all replies to the newsgroup~


> > > > > I have a web page running from within outlook, and I use
client-side
> > > > > VBScript to add a new note, but when the new note pops up, it
always
> > > goes
> > > > > out of focus, behind outlook (deselected in task bar).

> > > > > I create the object like this:

> > > > > Set ol = CreateObject("Outlook.Application")
> > > > > Set myNameSpace = ol.Application.GetNameSpace("MAPI")
> > > > > set myFolder = myNameSpace.Folders("Public Folders").Folders("All
> > Public
> > > > > Folders").Folders("clients").Folders("Client Folder
> > > > Name").Folders("Notes")
> > > > >  set myItem = myFolder.Items.Add
> > > > >  myItem.display

> > > > > This does create the note, and will add it to the correct folder,
> but
> > > the
> > > > > user clicks on a link to add the note, and then the note pops up,
> > > quickly
> > > > > "hides", and the user has to click on the icon in the task bar to
> > bring
> > > > the
> > > > > new note to the foreground.

> > > > > Is there something I can do to make it stay on top?

> > > > > Thanks,

> > > > > --
> > > > > Kris Rudin, MS, MCP
> > > > > Aurora Consulting Group, Inc.



Tue, 05 Apr 2005 04:12:03 GMT  
 odd Add Note behavior
Good suggestion - but I found that you can call the Item.display method with
a parameter to make it modal (ie, stay on top):

myItem.display(true)

That seems to work spiffy!

Kris


Quote:
> Possibly the # bookmark is making the link reference the page again
(looking
> for a #), after the sub has run to call the note?

> Have you tried using a <input type=button onclick="AddNote()" value ="Add
a
> note">?  Does it do the same thing?

> Stuart



> > The code snippet I have included is in a sub called AddNote():

> > sub AddNote()
> > [code here]
> > end sub

> > I have a link on my web page that looks like this:
> > <a href="#" onclick="AddNote()">Add a Note</a>

> > Very basic and simple. Or, at least it seems to me...

> > Thanks for looking into this!

> > Kris


message

> > > How's the sub called?

> > > --
> > > Patricia Cardoza
> > > Outlook MVP
> > > www.cardozasolutions.com

> > > ~Please post all replies to the newsgroup~


> > > > No, that's the end of the sub.

> > > > Kris


> > message

> > > > > Is there any code after the last line posted in the same
subroutine?

> > > > > --
> > > > > Patricia Cardoza
> > > > > Outlook MVP
> > > > > www.cardozasolutions.com

> > > > > ~Please post all replies to the newsgroup~


> > > > > > I have a web page running from within outlook, and I use
> client-side
> > > > > > VBScript to add a new note, but when the new note pops up, it
> always
> > > > goes
> > > > > > out of focus, behind outlook (deselected in task bar).

> > > > > > I create the object like this:

> > > > > > Set ol = CreateObject("Outlook.Application")
> > > > > > Set myNameSpace = ol.Application.GetNameSpace("MAPI")
> > > > > > set myFolder = myNameSpace.Folders("Public

Folders").Folders("All

- Show quoted text -

Quote:
> > > Public
> > > > > > Folders").Folders("clients").Folders("Client Folder
> > > > > Name").Folders("Notes")
> > > > > >  set myItem = myFolder.Items.Add
> > > > > >  myItem.display

> > > > > > This does create the note, and will add it to the correct
folder,
> > but
> > > > the
> > > > > > user clicks on a link to add the note, and then the note pops
up,
> > > > quickly
> > > > > > "hides", and the user has to click on the icon in the task bar
to
> > > bring
> > > > > the
> > > > > > new note to the foreground.

> > > > > > Is there something I can do to make it stay on top?

> > > > > > Thanks,

> > > > > > --
> > > > > > Kris Rudin, MS, MCP
> > > > > > Aurora Consulting Group, Inc.



Tue, 05 Apr 2005 05:49:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Externally adding tasks via SQL gives odd behavior

2. Odd behavior with Dates -A2K

3. Access 2.0 odd transaction behavior

4. Odd Behavior With CommitTrans

5. Odd recalc behavior with shapeobj.duplicate

6. Odd behavior when inserting TextBox1 into header

7. Odd behavior by socket.select()

8. Very odd behavior with DataTable.Select

9. odd behavior in Qbasic

10. Help, VFP - List boxes on pageframes with odd behavior

11. Odd printing behavior on Win2000

12. Odd behavior with setfocus

 

 
Powered by phpBB® Forum Software