11/27/2024 8:24:14 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.
|
|
|
|
Global Script Event OnFunctionCaption
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
|
|
|
|
Re: Global Script Event OnFunctionCaption
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. |
|
|
|
Re: Global Script Event OnFunctionCaption
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. |
|
|
|
Re: Global Script Event OnFunctionCaption
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.
|
|
|
|
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!
|
|
|
|
|
|
|
|