Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, August 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: Setting a grid cell value
David Saggio
Posts: 20
 
Setting a grid cell valueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Apr 08 7:49 AM
I'm this question has been asked before, but I couldn't find it. Here is what I am trying to do:
I have a normal datagid (not populated by code) with only 2 columns. I am using Ryan's method of adding a record without an edit form.
After adding a record to the grid the user selects a value from a picklist in the grid then, depending on what value they select, I want to set the value of the second cell. After setting the value, the user could change it, but I need to set the value first. I am really hoping to not have to resort to SQL to set the value since I would like use this routine on several grids.

Thanks for the help.
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Setting a grid cell valueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Apr 08 2:43 PM
Use SQL.
[Reply][Quote]
satz
Posts: 75
 
Re: Setting a grid cell valueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Apr 08 5:54 AM
Probably...you can call "On Change " Event for the paricular grid record..and add some lines of coding to change the second column cell value....hope it would help you...

[Reply][Quote]
Chris Burriss
Posts: 120
 
Re: Setting a grid cell valueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Apr 08 8:44 AM
This is an interesting way to handle record additions to a grid. Can you point me to the article or post that discusses this? I was unable to find it. Thanks!

C. Burriss
HELP Solutions
[Reply][Quote]
David Saggio
Posts: 20
 
Re: Setting a grid cell valueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Apr 08 11:08 AM
Chris,

Not sure if you were asking me the question or Sathish. I still can find a method to do this.

Thanks,
[Reply][Quote]
Chris Burriss
Posts: 120
 
Re: Setting a grid cell valueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Apr 08 1:42 PM
To anyone and everyone really. Thanks for responding. I was curious if anyone had a write-up or code example on how to do this. Thanks.

C. Burriss
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Setting a grid cell valueYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 29 Apr 08 3:13 PM
When you inline edit a single grid cell, SLX immediately fires off a SQL Statement to update the value. So I capture this event and fire off my own script to calculate the other cells new value (like change the Quantity, so multiply Price * Quantity to derive Amount). And then fire off a SQL statement to update the hard drive.

I've done stuff where you keep track of 'dirty' rows (those that have had data changes).....and when you are all done then you fire off a mass of SQL statements.....but that's a real pain to code.

See the Opp Product stuff......also the Add Edit Product form has great examples on disconnected grids and how to keep track of stuff and eventually store it back to the drive.
[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/23/2025 5:47:21 PM