8/24/2025 5:39:36 PM
|
|
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.
|
|
|
|
Creating a Secured Function
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 |
|
|
|
Re: Creating a Secured Function
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 |
|
|
|
Re: Creating a Secured Function
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 |
|
|
|
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!
|
|
|
|
|
|
|
|