Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, August 27, 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: Execute SQL in the bundle is not executing?
wei liao
Posts: 2
 
Execute SQL in the bundle is not executing?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Jan 09 4:05 PM
Hi, I have a project in Architecture, inside there is an action Execute SQL, with the following (it moves some picklist itmes to a new picklist):

------------------------------------------------------------------------
-- declare @itemid varchar(12)
-- declare @newItemid varchar(12)
-- set @itemid = (select itemid from sysdba.picklist where text = 'C_MailingLists-ED')
-- set @newItemid = (select itemid from sysdba.picklist where text = 'C_MailingLists_Ops-ED')
-- update sysdba.picklist set picklistid=@newItemid where picklistid=@itemid and text like 'ops%'
------------------------------------------------------------------------

I am hoping that when I install this bundle on a different server this sql statment would get executed, so I tried to install this bundle onto my dev server, it installed fine but when I checked the database values, the picklist items didn't get moved.

Can someone give me some suggestions?

Thanks!
WL
[Reply][Quote]
Walter Shpuntoff
Posts: 167
 
Re: Execute SQL in the bundle is not executing?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Jan 09 5:46 AM
SalesLogix will not pass your parameters through, nor will it let you run multi-line SQL.
Also, I am wondering about your picklist logic here.
The picklist id for the list name = select itemid from picklist where text = 'yourpicklistname' and picklistid = 'PICKLISTLIST'

Then all of the items will have that ITEMID in the field picklistid.

If you need to do a lot of picklist related work ... look into picklist manager

http://www.radishtools.com/picklist.html

hth

ws
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Execute SQL in the bundle is not executing?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Jan 09 7:16 AM
Good points Walter.

It continues to amaze me how folks approach SalesLogix. As you have pointed out, you can't "program" SalesLogix using a TSQL approach. All SQL must be single SQL statements.. and even then, some forms of the syntax are not supported (like Select into.. from.. or Insert Into.. From..).

As we know, the parametric approach does work.. but ONLY when it's done via VBScripting (or .NET extensions).

We know this is SalesLogix 101.. and to give the Sage team some points here (as well as solid advice to new comers to SalesLogix) - take a trip to SageU.com and check out the on-line and "blended" training offered by Sage on SalesLogix. You don't need to go to AZ to get training.. you can get it over the net.

--
RJL
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Execute SQL in the bundle is not executing?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Jan 09 8:11 AM
Oh oh I know
Picklists are in a collection at runtime...
[Reply][Quote]
wei liao
Posts: 2
 
Re: Execute SQL in the bundle is not executing?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Jan 09 8:18 AM
thanks for clarifying this guys, it just seem logical that because i'm creating some new fields via actions, i thought i could do some simple, one time thing data processing in sql, without going to vbscript or forms. if Execute SQL is so limited, why is it even there.

[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Execute SQL in the bundle is not executing?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jan 09 4:05 AM
It's there mainly for upgrades and adding new functionality (where you need to change data via simple update statements) - but was never intended as a data processing engine.
[Reply][Quote]
Trent Haynes
Posts: 32
 
Re: Execute SQL in the bundle is not executing?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jan 09 8:25 AM
I'll chime in on this one.

I've been to the LAN developer training, but that didn't tell me what I can or can't do via the project. Not to this extent.

Is there somewhere that this is documented? I've got my training manual in front of me and a help file and I can't find anything that clearly states to what extent I can execute SQL in a project action.

I really liked the training, but I still see a lack of cohesiveness in how information is disseminated to new developers.

Sorry for not being explicitly on topic, but I can't help but see this as related.
[Reply][Quote]
Dan Carvin
Posts: 227
 
Re: Execute SQL in the bundle is not executing?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Jan 09 1:58 PM
The available SLX deveoper training walks you through some typical projects, but not everything is covered, just as not everything is covered in the documentation.

Becoming a master SLX developer/implementor only starts with the documentation and training. It involves a lot of studying existing plugins & code that does things similar to what you want to do, a lot of searching this forum and ITToolBox, and a lot of trial & error.

[Reply][Quote]
Jeff Parker
Posts: 32
 
Re: Execute SQL in the bundle is not executing?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 30 Jan 09 7:21 AM
I agree that everything is not intuitive and in training manuals. Many of these types of things are learned by the "gotcha" method. I have been involved in SalesLogix for almost 10 years and it happens to me all the time. For instance, during our 6.23 to 7.25 upgrade I thought it would be dandy to replace some Scribe jobs I created with the SQL commands in the Bundle. I created the SQL in Enterprise manager and Scribe did the work perfectly. However, the same SQL did not run properly in the Bundle. A rule of thumb might be to check your SQL in the Administrator Execute SQL wizard. If it doesn't work there it won't work in the bundle.
[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/27/2025 10:23:44 PM