Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, August 18, 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: nubie grid question
Glenn Williams
Posts: 51
 
nubie grid questionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Jan 08 9:31 AM
I'm trying to build my first grid (TDataGrid). Nothing is displaying, what am I missing? When it loads I can see the number of rows go from one to many, but no data is in the cell.

Sub btnQsearch2Click(Sender)
Dim objConn, strSQL
Dim rs
set objConn = Application.GetNewConnection
strSQL = "select CE_QUOTEID "
strSQL = strSQL & " from CE_QUOTE "
strSQL = strSQL & " where CE_QUOTEID Like '%" & txtQuote2.Text & "'"
set rs = objConn.Execute(strSQL)
Set dgQuote.Recordset = rs
objConn.Close
set objConn = Nothing
End Sub
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: nubie grid questionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Jan 08 10:08 AM
Quote:
Originally posted by Glenn Williams

I'm trying to build my first grid (TDataGrid). Nothing is displaying, what am I missing? When it loads I can see the number of rows go from one to many, but no data is in the cell.

Sub btnQsearch2Click(Sender)
Dim objConn, strSQL
Dim rs
set objConn = Application.GetNewConnection
strSQL = "select CE_QUOTEID "
strSQL = strSQL & " from CE_QUOTE "
strSQL = strSQL & " where CE_QUOTEID Like '%" & txtQuote2.Text & "'"
set rs = objConn.Execute(strSQL)
Set dgQuote.Recordset = rs
objConn.Close
set objConn = Nothing
End Sub


dgQuote.Refresh?

Are you sure the columns have been set up correctly? is there a column called CD_QUOTEID in the Grid Object???

Usually I do this in SLX Grid SQL Query format.....
A1. is the Base Table alias
A2. i the next table joined to the base, etc.

Thus

SELECT A1.AccountId, A1.ACCOUNT, A2.FieldName A2_FieldName, A3.Fieldname A3_FieldName

the column name for the Base Table is the name of the Field (AccountID per above)
the column name for related/joined tables is the Alias, plus an underscore, plus the field name
A3.Fieldname A3_FieldName


Ryan Farley pointed out how to script columns on the fly.....see his how to documents....

http://www.slxdeveloper.com/page.aspx?action=viewarticle&articleid=6

[Reply][Quote]
Matt Dockins
Posts: 159
 
Re: nubie grid questionYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Jan 08 3:32 PM
you have to setup the columns for the grid first Glenn. To see an example of this, look at the Insert Opportunity Common script or the insert opportunity screen - they both have subs prefixed with 'define' which setup the grid's columns and recordsets.

[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/18/2025 9:21:40 AM