Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, June 19, 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: Bind the selected field in a datagrid placed in one form to a control in another form
vijayar
Posts: 17
 
Bind the selected field in a datagrid placed in one form to a control in another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Jul 07 8:49 AM
When i select a value in a field in the datagrid the same is not displayed in the control which is placed in another form.the code which i followed is

First i have used GetForm function to make the present form refer to the another form.i am able to reference it in the present form.

Dim frm
set frm= GetForm("frmTab")

frm.dtDate.Text=Datagrid1.GetCurrentField("EXPENSE_DATE")
frm.txtCity.Text=Datagrid1.GetCurrentField("CITY")

this is the code which i have used under the Datagrid1click event.I am not able to bind the value to the above mentioned controls.

Pls send ur suggestions in this regard
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Bind the selected field in a datagrid placed in one form to a control in another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 Jul 07 10:35 AM
I use global variables to store data from other forms......then even if the form is closed/gone/consumed I have a value to work with......

I'm not into managing multiple windows (of the same or different forms).....and don't know how well SLX does in this regard......am more of the one form open at a time school.....

Your mileage, and windows juggling skills, will vary.

RJ Samp
[Reply][Quote]
Lawrence Reid
Posts: 63
 
Re: Bind the selected field in a datagrid placed in one form to a control in another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Jul 07 9:26 AM
I found this example on the form System:NameEdit to pull data from a different form. Search for Application.Forms in all scripts to see other examples.

Sub AXFormOpen(Sender)
set objAddCon = Application.Forms("system:AddNewContactAccount") 'DNL
txtFirst.Text = objAddCon.lblFN.caption
txtMiddle.Text = objAddCon.lblMN.caption
txtLast.Text = objAddCon.lblLN.caption
pklPrefix.Text = objAddCon.lblPrefix.caption
pklSuffix.Text = objAddCon.lblSuffix.caption

End Sub
[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): 6/19/2025 4:53:09 PM