Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, July 7, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Controlling the Contact List Views
Gus
Posts: 18
 
Controlling the Contact List ViewsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jul 10 10:14 AM
Hi,

I need to add a new functionality to contact list views by adding one more function to the popup menu that would allow my users to send brochures to specific contacts. the users would select contacts from the list view by highlighting them, then they would right click the mouse and select the new option, "Send Brochure".

So I need to first add an item to the popup menu for sending brochures and then, from the script linked to the new item, need to see which contacts the users have selected.

Has anyone done something like this ?

Any help would be appreciated.

Gus
[Reply][Quote]
Patrick Beaudette
Posts: 16
 
Re: Controlling the Contact List ViewsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 31 Jul 10 9:07 AM
Yes, it can be done. You didn't specify LAN or Web, but from the sound of it you are asking about the LAN client; the directions below are for that.

To get a menu item onto the pop-up menu on the list view, you have to edit the Contact Detail Main View. Open the Main View in Architect, and click on the Groups pane. In the properties of the Groups pane, you will see a property for PopupMenu. Add your new menu there. Then switch Properties window to the Events tab and if there is not an Event for OnPopupMenuClick, add it.

In the script window of the Main View, you can add code to get the selected contact ids like this:

dim i, strIDs
strIds = ""
for i = 0 to Sender.GroupsPane.Selection.Count - 1
strIds = strIds & Sender.GroupsPane.Selection.Item(i) & "," 'need to strip off last comma when done
next

Since you may want to add other menus in the future, it is probably best to add a select case statement to operate when your chosen menu is clicked. I generally choose to identify the menu index with a constant at the top of the script, so that if the menu order changes you only need to change the value of the constant. This also helps make the code more readable.

const mnu_NoteEmail = 14

Then in your menu script, you can add a statement like this:

select case MenuItem.MenuIndex
case mnu_NoteEmail
Application.BasicFunctions.DoInvoke "Form", "System:MultiHistoryView"
end select

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 7/7/2025 10:20:46 AM