6/18/2025 12:28:29 PM
|
|
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!
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.
|
|
|
|
Cascading Grids
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 |
|
|
|
Re: Cascading Grids
Posted: 15 May 07 10:54 AM
|
fiogf49gjkf0d Got it. Just had to set the grid.sql property on row select. Refreshingly simple. |
|
|
|
Re: Cascading Grids
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. |
|
|
|
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!
|
|
|
|
|
|
|
|