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: Datagrid and other Controls
Ben
Posts: 26
 
Datagrid and other ControlsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Feb 08 11:11 AM
I have a tab with a datagrid. Below the datagrid there are other controls (picklists, edit boxes, etc). When the user clicks the records in the datagrid, I need to change the data in the controls to correlate to the selected record in the grid. I was going to do everything with scripting, but I wondered if there was some easy way to bind the controls somehow.

I figured I would ask before diving into scripting.

Thanks!

[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Datagrid and other ControlsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 13 Feb 08 2:13 PM
Definitely worth asking. But go ahead and dive
[Reply][Quote]
Matt Dockins
Posts: 159
 
Re: Datagrid and other ControlsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 Feb 08 9:04 AM
Phil's right, you'll need to script this. To minimize database hits you can include the fields in the datagrid's result set (and set their visible property of the columns property for the select columns to false) then just use the onrowselect event and GetCurrentField function

i.e.

lueMyLookup.LookupID = grdResults.GetCurrentField("A3_MYLOOKUPID") & ""

[Reply][Quote]
Ben
Posts: 26
 
Re: Datagrid and other ControlsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 Feb 08 9:48 AM
Yeah, I did dive in, and so far I am not drowning.

Yeah, I am using the dg's result set, after I already wrote a function to get the data, then found out about the built in resultset.

Now I am writing all the scripting to let people change those values, and have it recorded. I am currently trying to manipulate the resultset attached to the dg to do this. All of this is new to me, as I have never worked with dg's before, but its fun.

[Reply][Quote]
Matt Dockins
Posts: 159
 
Re: Datagrid and other ControlsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 Feb 08 10:10 AM
writing back to the database is a different story, generally there I don't go through the datagrid's resultset, but just right directly back to the database on the exit of the control (for fields of the type you've described - that way you can refresh the grid too)
[Reply][Quote]
Ben
Posts: 26
 
Re: Datagrid and other ControlsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 Feb 08 10:14 AM
Yeah, I was just noticing that attempts to update the result set are doing nothing. No error, but no change in the resultset as well.

Thanks for the tip. Time to change my tactic.
[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 3:41:12 AM