Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, February 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: Writing in a datagrid cell
Rafael S.
Posts: 66
 
Writing in a datagrid cellYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Feb 12 8:28 AM
fiogf49gjkf0d

Hello guys! im trying to do a datagrid that sum the cells values and display in the final cell the total...but i dont know why i cant do this....someone could help me? Im trying to use the command SetFieldValue, but always give me the "Catastrophic Error"... thanks!!!


 


Rafael S.

[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Writing in a datagrid cellYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Feb 12 8:55 AM
fiogf49gjkf0d

Let's see the inner joined with all ID fields present grid SQL: (SLX must know what you are trying to edit or it croaks).


 


And what's the script where you are using SetFieldValue:


 


 


I've done this a ton....

[Reply][Quote]
Rafael S.
Posts: 66
 
Re: Writing in a datagrid cellYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Feb 12 9:48 AM
fiogf49gjkf0d

Hi RJ!!


Im posting here just a test to write something in the cell (but even this i cant do..lol). 


the sql property of the datagris is:


"SELECT A1.QUOTATION_SHIPPINGID, A1.SUBACTIVITY, A1.M_00, A1.M_01, A1.M_02,A1.TOTAL FROM QUOTATION_SHIPPING A1 WHERE QUOTATION_SHIPPINGID = :BindID"


and the code is:


<p> 

Function dgQuotationShippingEdited(Sender, PrimaryKeyValue, FieldName, Value)
    'Calcula o campo frete.
    dgQuotationShipping.SetFieldValue PrimaryKeyValue, "TOTAL", "1234",null
End Function

</p>

 

 

thanks!!

 

Rafael S.

 


[Reply][Quote]
Mark Richardson
Posts: 6
 
Re: Writing in a datagrid cellYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Feb 12 10:00 AM
fiogf49gjkf0d

SLX has a standard Sum function for DataGrid Columns..


On the DataGrid Properties, ensure 'ShowSummaryFooter' is checked, then go to the 'Columns' Property, RIght-Click on the Column Header and select 'Properties..'


This will open a dialogue that has a 'Footer' button on it - The rest should be self explanatory...


 


 


 

[Reply][Quote]
Rafael S.
Posts: 66
 
Re: Writing in a datagrid cellYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 Feb 12 10:57 AM
fiogf49gjkf0d

Thanks Mark, but this dont solve my problem..i have to do the sum and show the result in the last cell, called total... But thanks for the answer!


 


Rafael S.

[Reply][Quote]
Rafael S.
Posts: 66
 
Re: Writing in a datagrid cellYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Feb 12 5:19 AM
fiogf49gjkf0d

In this moment, im just trying to do is write something in a cell... i have tryied many things, but always give the error.... 


 


thanks!!!


 


Rafael s.


 


 

[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/23/2025 12:15:36 PM