Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, February 21, 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: Totals for each group on datagrid
Sankar
Posts: 84
 
Totals for each group on datagridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 Mar 08 10:19 AM
I have a datagrid which will look like this. It is grouped on a product group basis.

--------------------------------------------------------------------------------------
Inv Number Qauntity Price Amount
--------------------------------------------------------------------------------------
[-] Productgroup: PA1
A123455 1 $25 $25
I893000 2 $25 $50
----------------------------------------------------------------------------------------
[-] Productgroup: AG1
A123455 1 $25 $25
I893000 1 $25 $25
----------------------------------------------------------------------------------------


I want to display the subtotal amount of each product group like $75 for the first one and $50 for the second one.. how do i go about doing it...

Thanks
[Reply][Quote]
Dan Delisle
Posts: 38
 
Re: Totals for each group on datagridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Dec 13 12:41 PM

Hi Sankar


Did you ever figure this out? I am trying to do something close to this and am looking at my options.


 


Thanks for any advice you might have!

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Totals for each group on datagridYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Dec 13 6:02 PM

1. Show Header Group Panel.
2. When create your SQL statement to go get the data just build your values into a 'description' column in the select statement, including what you would group on.


3. Retrieve the data using your SQL statement into an ADO recordset.


4. Set the gridname.recordset = yourRS


5. group the grid by the description column....


This is advance grid magic and not for the faint of heart.....you'll have to build the grid by hand for example....


We've even included a row of buttons across the top of the grid to allow the user to choose how they will sort and group the grid with the subtotals......and used recordset sorts (in the old days, SLX does this now for you if you have the user click on a header caption).


 


 

[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): 2/21/2025 11:58:55 PM