Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, August 27, 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: Open a form when a field in the datagrid is double-clicked
SLX_Novice
Posts: 246
 
Open a form when a field in the datagrid is double-clickedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Dec 08 4:29 PM
Hi all!

I don't know if they is even remotely possible, but I'll give it a shot. I'm using SalesLogix version 7.2.1.

I have a datagrid that displays: Contract, Status, Date

Is there a way that when the end-user clicks on any of the fields under the Contract column it opens another form that will automatically populate the value of the Contract in a text box?

For example, the datagrid is as follows:

Contract-----Status------Date
ABC---------Active------01/01/2008
DEF---------Active------03/01/2008
GHI--------Inactive----02/01/2008

So when the end-user double clicks on the field: DEF

It will open a form that shows DEF in a textbox.

Is this in any way possible? Or am I just crazy....

Thank you in advance.
[Reply][Quote]
Chris Burriss
Posts: 120
 
Re: Open a form when a field in the datagrid is double-clickedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Dec 08 6:25 AM
On the form open event, you may be able to add something like the below. Once you've set the Application.Form object, you can access the properties of the initiating grid. Assuming the grid retains the selected record, you should be able to retrieve the value and populate your textbox with it. Alternatively, on the double-click event of the grid, you could set a global variable that will then be picked up by the second form.

Dim i
Dim objForm

For i = 0 to Application.Forms.Count - 1
If Application.Forms(i).Name = "frmHistoryDetails" Then
Set objForm = Application.Forms(i)
pklFamily.Text = "" & objForm.pklFamily.Text
Exit For
End If
Next
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Open a form when a field in the datagrid is double-clickedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Dec 08 1:25 PM

on the Doubleclick event of the grid

application.GLOBALINFO.ADD "Contract", datagridname.GetCurrentField("CONTRACT")

then do a show view on this new form......

On the new form....
on the Open event
SUB AXFORMOPEN(sender)
txtEditBox.TEXT = "" & application.GLOBALINFO.Contract
END SUB

much easier with data bound data forms, but that will give you and idea.


Automatically populate? thought processes of the developer mutating via osmosis into primordial ooze scripts? Never happen.
[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Open a form when a field in the datagrid is double-clickedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Dec 08 7:57 AM
Thanks guys. I'll give your suggestions a try!
[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Open a form when a field in the datagrid is double-clickedYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Dec 08 11:26 AM
Got it to work.

Thanks for all your help.
[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/27/2025 5:23:08 PM