HELP!!! Can the GAL pop up?!?!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all
I am building an InfoPath form. In the form, there is a button which supposing pulls up the global address list using jscript
var objOutlook = new ActiveXObject("Outlook.Application")
var namespaceOutlook = objOutlook.getNameSpace("MAPI")

//Test--displays # of entries in GA
var globalAddressList = namespaceOutlook.AddressLists("Global Address List").AddressEntries;
XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:tblCustAddress/@City").text = globalAddressList.Count()

With the above code, it pulled and displayed the # of entries correctly. However, the real question is... Can I have the GAL pop up, ie using globalAddressList.display() or something like that to show it? Can the GAL pop up just like when I use it in Outlook? Thanks a lot!!!
 
Yes, using CDO or Redemption or, with Outlook 2002/3, the SafeAddressBook
COM component. See http://www.slipstick.com/dev/code/selectnames.htm . All
but Redemption trigger security prompts.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Jess said:
Hi all,
I am building an InfoPath form. In the form, there is a button which
supposing pulls up the global address list using jscript.
var objOutlook = new ActiveXObject("Outlook.Application");
var namespaceOutlook = objOutlook.getNameSpace("MAPI");

//Test--displays # of entries in GAL
var globalAddressList = namespaceOutlook.AddressLists("Global Address List").AddressEntries;
XDocument.DOM.selectSingleNode("/dfs:myFields/dfs:dataFields/d:tblCustAddres
s/@City").text = globalAddressList.Count();
With the above code, it pulled and displayed the # of entries correctly.
However, the real question is... Can I have the GAL pop up, ie using
globalAddressList.display() or something like that to show it? Can the GAL
pop up just like when I use it in Outlook? Thanks a lot!!!
 
Back
Top