Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Thursday, August 28, 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: Refresh datagrid from another form
Chris Burriss
Posts: 120
 
Refresh datagrid from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Feb 08 9:41 AM
If I launch an add/edit form (frmAddEditSpouse) from a datagrid (grdSpouse on form frmSpouse), is it possible to refresh the parent datagrid from the add/edit form? On my add/edit form, I have a "Save & Clear" button to facilitate adding multiple spouses to a contact record. As each spouse is added, I'd like to refresh the datagrid from the other form. Thanks!

C. Burriss
[Reply][Quote]
RJ Eaton
Posts: 234
 
Re: Refresh datagrid from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Feb 08 10:06 AM
Ok I won't even start with the questions of Multiple spouses....

Just call the form name fomr the forms collection and then call the datagrid and refresh it on the Save & Clear click.
[Reply][Quote]
Chris Burriss
Posts: 120
 
Re: Refresh datagrid from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Feb 08 3:13 PM
Hehe.

Thank you very much for pointing me in the right direction. It worked like a charm. Also, I'd like to thank Ryan for the article "How To Update Controls Across Forms". I certainly started off trying to use the LAN Developer's Reference example ...

Set Form = Application.Forms(“:”)
Form...

It didn't go over well.
[Reply][Quote]
Tanya Waller
Posts: 2
 
Re: Refresh datagrid from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Apr 08 9:21 AM
RJ Could you give me a little assistance with this? I have an Account Pending Orders tab. I click on the pending order and it takes me to the order details, etc. I mark the order "Installed" which should change the status to "Installed" from "Pending" in the Account Pending Orders tab. But when I go back to the Account Pending Orders tab the status is still pending until I press F5. Would this solution you talked about here work for this instance? If so could you give more guidance? Thanks! Tanya
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Refresh datagrid from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 Apr 08 11:08 AM
Something like this:

Dim frm 

Set frm = Application.Forms("System:My Form")
frm.DataGrid1.Refresh


-Ryan
[Reply][Quote]
orodriguez
Posts: 26
 
Re: Refresh datagrid from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Apr 09 8:59 PM
I'm trying use your code, but it not work. I received this message: "Object Required:'frm'"

My code:
Dim frm

set frm = Application.Forms("frmOppProducts")
frm.grdProducts.Refresh

frmOppProducts is a tab in Opportunity. Family: Opportunity Plug-in:Products

SLX v7.2.0
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Refresh datagrid from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Apr 09 9:19 PM
You have missed out family in your code:

set frm = Application.Forms("Opportunity:frmOppProducts")

Also, is 'frmOppProducts' the internal form name, or the name of the plugin? You need to use the plugin name.
[Reply][Quote]
orodriguez
Posts: 26
 
Re: Refresh datagrid from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Apr 09 9:39 PM
Hi Phil!

Previously, I had tried to use the family and the name of the component, but also received the same error message.

Check:
Dim frm

set frm = application.Forms("Opportunity:Products")
frm.grdProducts.Refresh
[Reply][Quote]
Phil Parkin
Posts: 819
Top 10 forum poster: 819 posts
 
Re: Refresh datagrid from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Apr 09 9:59 PM
OK, time to do some debugging. Try running this (untested) to give you a messagebox showing each form name. Add a button to the form to run it.


Sub FormTest
Dim objForm
Dim i, strFormName

For i = 0 to Application.Forms.Count
Set objForm = Application.Forms.Item(i)
strFormName = objForm.Name
MsgBox strFormName
Next
End Sub
[Reply][Quote]
orodriguez
Posts: 26
 
Re: Refresh datagrid from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Apr 09 10:14 PM
The code show the name of the following forms:
- frmOpportunityDetail
- frmProductMoreDetail --> Customization (Tab)
- frmAddProductMoreDetail --> Customization (Form to add data)
[Reply][Quote]
orodriguez
Posts: 26
 
Re: Refresh datagrid from another formYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Apr 09 10:26 PM
Phil, i restarted the SalesLogix and this work perfectly!

But, the Datagrid Refresh not work. When i click in the Product tab, the values in the Datagrid not changes. I had to refresh (CRTL + F5) the SLX to see new values in the Product Datagrid.
[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/28/2025 6:57:22 PM