Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, June 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: Cascading Grids
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Cascading GridsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 May 07 9:50 AM
fiogf49gjkf0d
I have a situation where I have two grids on a form. dg1 one is the parent table and dg2 is the child with a one to many relationship. I want to display the one to many records in dg2 based on the record selected in dg1.

The catch is that I want dg2 to be editable in the grid - so I would like it bound. Is it possible to bind a 2nd grid like this - based on the selection in dg1 and still be able to edit it inline? Thanks
[Reply][Quote]
Steve Knowles
Posts: 657
Top 10 forum poster: 657 posts
 
Re: Cascading GridsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 May 07 10:54 AM
fiogf49gjkf0d
Got it. Just had to set the grid.sql property on row select. Refreshingly simple.
[Reply][Quote]
Jeremy Brayton
Posts: 491
Top 10 forum poster: 491 posts
 
Re: Cascading GridsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 May 07 1:21 PM
fiogf49gjkf0d
You're probably doing this or are aware, but the BindID property of the child grid most likely has to be set at runtime according to the selected value. The reason is that by default a grid's sql is something like "Select * from grid where bindid = :BindID" and it generally returns no records if you don't populate the bindid first.

A typical scenario has the bindid bound to the child table's foreign key and upon a child form loading it gets populated with the database value. By combining the grids on one form, you have to perform that bindid magic yourself. Certainly doable, it's even rather trivial to modify the .SQL property to include a proper bindid check at the end of the statement.
[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): 6/18/2025 12:37:28 PM