7/7/2025 9:35:15 AM
|
|
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!
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.
|
|
|
|
Controlling the Contact List Views
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 |
|
|
|
Re: Controlling the Contact List Views
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
|
|
|
|
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!
|
|
|
|
|
|
|
|