Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, August 24, 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: Creating a Secured Function
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Creating a Secured FunctionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jul 08 1:31 AM
I am probably suffering from a misunderstanding about secured functions and this leads me to a question that may be dumb.

I want a new function that runs off the Insert menu (7.2.2).

In Architect, I go into Manage / Secured functions and create my New Insert xxxx function there.

If I log back into the SLX client, I can see that this new menu entry is available. If I select the action, I get the message: "Unknown Function Number: -1" - not surprising really, as I've not associated the function with any action.

My question, therefore, is how do I associate the new secured function with an action? Or maybe this is not possible?

Thanks for any input.

Phil
[Reply][Quote]
Rob Bartram
Posts: 98
 
Re: Creating a Secured FunctionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jul 08 12:53 PM
Hello Phil,

The "action" is defined in a global script.

Either create a new global script or use one that you may already have created

Add an OnBeforeFunctionExecute function routine resembling the following:
------------------------------------------
Function OnBeforeFunctionExecute_NAME OF YOUR SEC FUNCTION(functionNumber, functionName)

    'Add some code here that you want to be executed whe the user launches the secured function.

    OnBeforeFunctionExecute_NAME OF YOUR SEC FUNCTION = True 'This tells SLX that the function completed successfuly - I think.

End Function
------------------------------------------

Here's an example from for a custom sec function I've created called ViewHotList

Function OnBeforeFunctionExecute_ViewHotList(functionNumber, functionName)
    Application.MainViews.Add "System:Staffing Hot List", 1, True
    OnBeforeFunctionExecute_ViewHotList = True
End Function

The "Global Tickets" script also has examples of these functions.

Hope this helps.

...Rob
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Creating a Secured FunctionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jul 08 6:11 PM
Thanks Rob

You're damn right it helps - worked perfectly!

The on-line documentation around this is somewhat flimsy, to say the least!

Thanks again
Phil
[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): 8/24/2025 6:24:42 PM