Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, February 21, 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!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: refresh data after save
Ismael Gonzalez
Posts: 56
 
refresh data after saveYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Feb 08 7:15 PM
in a custom form in the toolbar I added a Save button, and within the Save business rule I also set a Refresh Data rule in the OnCompleteActionItem property as well as set DialogClosedEvent = true.

Now when I try and open my custom Add/Edit field I get the following error:

error CS1519: Invalid token '(' in class, struct, or interface member declaration

Does anyone know how I can fix this? Or is this a bug within the web client? If I just remove the Refresh Data rule, this form works perfectly, it just doesn't refresh the opener form .
[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: refresh data after saveYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 Feb 08 9:47 PM
Ismael,

This is a known issue. However, using the refresh isn't exactly what you need. You're telling it to refresh the form that is closing, not the opener.

Is this form that you are opening an add/edit form for a grid on teh opener/parent form? How are you launching it (using the "Insert Child Dialog Action", a "Dialog Action", or just loading it into a dialog via code?

If you either launch it via the Insert Child Dialog action -OR- in the save button add some C# code to add the child data to the parent's collection property then call the Save business rule then it will likely work as you are intending it to work (save the data, close the form, refresh the grid on the parent form)

Does that make sense?
[Reply][Quote]
Ismael Gonzalez
Posts: 56
 
Re: refresh data after saveYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 11 Feb 08 9:53 AM
Quote:
Originally posted by Ryan Farley

Ismael,

Is this form that you are opening an add/edit form for a grid on teh opener/parent form? How are you launching it (using the "Insert Child Dialog Action", a "Dialog Action", or just loading it into a dialog via code?

If you either launch it via the Insert Child Dialog action -OR- in the save button add some C# code to add the child data to the parent's collection property then call the Save business rule then it will likely work as you are intending it to work (save the data, close the form, refresh the grid on the parent form)

Does that make sense?

It is an Add/Edit form for a grid, I am launching it by Adding a New Button to the grid's Toolbar, the refresh I was trying to do it from the OnCompleteActionItem property of the Save Button on my Add/Edit form.

Do you have an example or a snippet I could view to see how I could do this through C# code?

Thanks,
[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): 2/21/2025 6:17:56 AM