Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, August 23, 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: Beginner coding help
Renee Bender
Posts: 74
 
Beginner coding helpYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 May 08 8:22 AM
I have been modifying some scripts in Architect and would like to know if someone can point me in a direction for documentation. For example, I have seen some coding that uses GetFields. This is all new to me and I have been learning a lot, but somethings I just can't seem to find anything that explains some of these methods. My background is actually in AS/400 RPG programming and I am now taking over the Saleslogix development. Any help would be greatly appreciated!
Thanks,
Renee
[Reply][Quote]
Rohan Verghese
Posts: 40
 
Re: Beginner coding helpYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 May 08 9:51 AM
If you click the "Include Script" button at the top of the window, a pane will open up listing all the included scripts. You can open those scripts and see what functions are available from each script, and double-click them to open up the function itself.

That's how I figured out how to use a lot of the undocumented methods that SLX uses.
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Beginner coding helpYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 May 08 6:23 PM
You can get help on VBScript here http://msdn.microsoft.com/en-us/library/d1wf56tt.aspx

If you see a function or command in the SLX code that is not documented there, it has been defined somewhere within SLX - either within the module you are in or within one of its INCLUDEd scripts. For anything that is defined within SLX, the source code is there for you to analyse. You will often have to do this to work out what is going on. You may then scratch your head and think: "Why the hell did they do it like that?" but that's another story.

You will also see a lot of calls to the 'application' object. This is a special object exposed within SLX providing various useful properties and methods, which are documented.

It's a whole different world from RPG, that's for sure.

Phil
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Beginner coding helpYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 May 08 1:09 AM
GetField ("TABLE","COLUMN","WHERE")
e.g strType = GetField("TYPE","ACCOUNT","ACCOUNTID='" & myID & "'")

This is, essentially, a brilliant way to return one column without going to the effort of writing the OLEDB stuff to open the table, read the col for that ID and return it, close etc.

GetFields is exactly the same - except it returns more than one column into an array.

Both of these are in SLX Database Support and if you open that - you'll see these functions and how they work.
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Beginner coding helpYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 May 08 1:10 AM
Also, get a copy of DevRef for 7.2 - this shows you the common functions/methods etc. (doesn't cover this one actually! - as they are SLX Includes).
[Reply][Quote]
Renee Bender
Posts: 74
 
Re: Beginner coding helpYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 May 08 7:16 AM
Thanks for all of your help. It has been a big adjustment after coding in RPG for 20 years to have to switch to something like this. Can you please tell me where I can find a copy of the DevRef for 7.2. We are currently using version 6.2.6.1007. Will that make a difference?
Thanks again,
Renee
[Reply][Quote]
Mike Spragg
Posts: 1226
Top 10 forum poster: 1226 posts
 
Re: Beginner coding helpYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 May 08 7:35 AM
Yes, can imagine it's a bit of a change !! Your BP will have access to the DevRef and you will need the version for 6.2 (there's one for each version).
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Beginner coding helpYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 May 08 9:49 AM
A completely excellent resource for you that I would also recommend (besides this site ) is the DevLogix books (See http://www.cafepress.com/devlogixshop/904300). There are two that would be great for you, the DevLogix III.7 book and also the companion book on the Application object (but if you're only going to buy one get the DevLogix III.7 book). These are excellent books, especially for someone just getting started with SLX.

-Ryan
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Beginner coding helpYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 May 08 6:39 AM
Quote:
Originally posted by Renee Bender

Thanks for all of your help. It has been a big adjustment after coding in RPG for 20 years to have to switch to something like this. Can you please tell me where I can find a copy of the DevRef for 7.2. We are currently using version 6.2.6.1007. Will that make a difference?
Thanks again,
Renee


Log into the SalesLogix support site... Support.SalesLogix.com .. and you can download it there.

Of course I presume you are current on Maintenance and Support.

FYI - v6.2.x will be retired in Feb 2009 (9 months away). You need to seriously start thinking about an upgrade to v7.2.2.

--
RJLedger - rjlSystems
"...Customer First..."
[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/23/2025 6:03:44 PM