Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, November 27, 2024 
 
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: Global Script Event OnFunctionCaption
Jeff Crawford
Posts: 52
 
Global Script Event OnFunctionCaptionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Mar 07 11:03 AM
fiogf49gjkf0d
Has anyone had any success using this event? I have modeled my test code to resemble the system securied functions in the Global System script, such as the OnFunctionCaption_EditDeleteItem function. However, I can’t get the event to fire. I can get all the other securied function events to fire, other than this one.


Function OnFunctionCaption_EditcDeleteItem(functionNumber, functionName)
MsgBox "OnFunctionCaption_EditcDeleteItem"
OnFunctionCaption_EditcDeleteItem = "New Caption"
End Function

[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: Global Script Event OnFunctionCaptionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Mar 07 12:20 PM
fiogf49gjkf0d
Does your script include the c in between Edit and DeleteItem on purpose? If so then I believe it needs it's own secured function entry. That is now done in Architect I believe in v7, v6 takes some hacking of a few tables to get them in.
[Reply][Quote]
Jeff Crawford
Posts: 52
 
Re: Global Script Event OnFunctionCaptionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Mar 07 12:46 PM
fiogf49gjkf0d
Yes, the c is on purpose. It's the name of my custom secured function in the SecFunction table. The way I have it setup is a menu plugin to replace the system Edit > Delete menu and have it call my custom secured function. Then in the global script, I catch the event, inject my code, and pass the event to the system secured function to supply the base product functionality.

Using this method I can catch the OnBeforeFunctionExecute, OnAfterFunctionExecute, OnFunctionVisible, OnFunctionEnabled, and OnFunctionChecked events. I just can't seem to get the secured function calls to ever fire the OnFunctionCaption event, which is used to dynamically update menu captions.
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: Global Script Event OnFunctionCaptionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Mar 07 3:17 PM
fiogf49gjkf0d
Ahh that makes sense. Have you tried searching the stock code for any OnFunctionCaption events, to see how SLX handles it? I'm wondering if it's in stock code and if not, it's possible there's a bug your catching. If by some chance you do find the code, it may not hurt to stick it under SLXProfiler to see exactly what's happening under the covers. Maybe there's something "special" you need to tweak.

[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 © 2024 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): 11/27/2024 8:25:27 AM