Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, July 7, 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: Can we use stored procedure in script (slx7.0)
Aioy
Posts: 9
 
Can we use stored procedure in script (slx7.0)Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Jul 10 8:49 AM
Hi All,

Can we use a stored procedure , if so what is the steps to call a stored procedure and how do we pass the value to a stored procedure.

Thansk,
Ajoy
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Can we use stored procedure in script (slx7.0)Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Jul 10 12:18 PM


'**************************************************************
' Name: EvaluateRules
' Purpose: Runs SQL procedure sysdba.usp_WF_EvaluateRules which evaluates workflow rules for a given Opportunity.
' Assumptions:
' Effects: Eavluates rules for Workflow Transition form.
' Inputs: The OpportunityID
' The Phase No (from the screen) should be an integer, but we'll convert it here as well.
' Returns: -1 unsuccessful progress to the end of the procedure, 1 if procedure completes.
' Dev Notes:
'**************************************************************
Function EvaluateRules (OID)
Dim objC, objParam
Dim lngRetVal, strOutputParam
EvaluateRules = -1
'set up command object
set objC = createObject("ADODB.Command")
objC.activeconnection = Application.GlobalInfo.SLX_Native_Conn_String
' 07/08/2010 RJS add SQL time out value to the command object:
objC.CommandTimeout = 300
objC.CommandType = 4
objC.CommandText = "sysdba.usp_WF_EvaluateRules"

'set up parameter object
set objParam = createObject("ADODB.Parameter")
objParam.Type = adChar
objParam.Size = 12
objParam.direction = adParamInput
objParam.value = OID

'add param to command, and execute
objC.Parameters.Append objParam
objC.Execute()
EvaluateRules = 1
End Function

[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): 7/7/2025 4:18:24 PM