Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, August 28, 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: Global Script only running when logged in as admin
Matt Ryan
Posts: 4
 
Global Script only running when logged in as adminYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jan 09 2:37 PM
Has anyone had an experience where a global script is only firing when logged in as admin? I'm trying to disable a menu item when the user does not belong to a certain team (or isn't admin). The script runs when I log in as admin but not when logged in as another user (I can tell because I've put a 'stop' in the script, it only stops for admin).
[Reply][Quote]
Dan Elliott
Posts: 11
 
Re: Global Script only running when logged in as adminYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jan 09 2:46 PM
Try using a msgbox...I don't think stop works unless you are logged in as admin.
[Reply][Quote]
Matt Ryan
Posts: 4
 
Re: Global Script only running when logged in as adminYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jan 09 3:11 PM
Very strange. The function:
Function OnFunctionVisible_ToolsMenuExcelImports(functionNumber, functionName)

sends out the message box... but the function:
Function OnFunctionEnabled_ToolsMenuExcelImports(functionNumber, functionName)

does not for a regular user login. When logged in as admin, both message boxes show.
[Reply][Quote]
Dan Elliott
Posts: 11
 
Re: Global Script only running when logged in as adminYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jan 09 3:16 PM
Is the Global Script released to the other users?
[Reply][Quote]
Matt Ryan
Posts: 4
 
Re: Global Script only running when logged in as adminYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jan 09 3:29 PM
Yes, all the plugins involved are released to everyone.

It's called from a custom menu item. Action set up as "Function" and arguement is "Tools:MenuExcelImports". Both functions from my previous post are in the same global script, the On..Visible one fires, the On..Enabled does not unless you're logged in as admin.

i'm stumped.
[Reply][Quote]
Dan Elliott
Posts: 11
 
Re: Global Script only running when logged in as adminYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jan 09 3:55 PM
Yeah, I don't know what it is either. Possibly something to do with the "Default Enabled" option on the Secured Functions?
[Reply][Quote]
Matt Ryan
Posts: 4
 
Re: Global Script only running when logged in as adminYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Jan 09 5:29 PM
Well... I managed to get around all this creating a new global script with different function names. To be sure it wasn't a typo in the names... that function action from the menu item to the global script was corrupted somehow.
[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/28/2025 2:14:58 AM