Question: I’m running SalesLogix v7.2.2 and I would like to add a new function
that runs off of the Insert menu. Within Architect I go into
Manage/Secured functions, this is where I create my New Insert xx
function. After I do this and log back into the SalesLogix client, I
can see the new menu entry is available but when I select it I get this
message: “Unknown Function
Number: -1”. I haven’t associated this function with an action, so I am
wondering how can I associate the new secured function with an action?
Answer: The “action” is defined in a global script, so either create a new global script or use one that you have already 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 when the user launches the secured function.
OnBeforeFunctionExecute_NAME OF YOUR SEC FUNCTION = True ‘This tells SLX that the function completed successfuly.
Here’s an example from a custom sec function called ViewHotList
Application.MainViews.Add “System:Staffing Hot List”, 1, True
The “Global Tickets” script also has examples of these functions.