8/27/2025 4:28:18 PM
|
|
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!
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.
|
|
|
|
Open a form when a field in the datagrid is double-clicked
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. |
|
|
|
Re: Open a form when a field in the datagrid is double-clicked
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 |
|
|
|
Re: Open a form when a field in the datagrid is double-clicked
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. |
|
|
| |
| |
|
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!
|
|
|
|
|
|
|
|