Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, June 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!
 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 Ticket Mainview from code in a Ticket.OnAfterUpdate event script
Zeba Santiaga
Posts: 2
 
Refresh Ticket Mainview from code in a Ticket.OnAfterUpdate event scriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 21 Dec 11 5:26 PM
fiogf49gjkf0d

I have attached code in an external assembly to the Ticket.OnAfterUpdate event.  This code modifies the value of NeededByDate.  How do I call a refresh of the Ticket mainview from the external assembly code?

[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Refresh Ticket Mainview from code in a Ticket.OnAfterUpdate event scriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Dec 11 3:41 AM
fiogf49gjkf0d

In the code snippet where you call your external assembly just set the property to RefreshData to true.

[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Refresh Ticket Mainview from code in a Ticket.OnAfterUpdate event scriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Dec 11 6:35 AM
fiogf49gjkf0d

Ah sorry just realised its an OnAFterUpdate...anyway if the save button has "RefreshData" set to true that should still work.


 


Unless your onafterupdate is updating things in SQL (in which case the hibernate entity model will not know about your changes yet). If this is the case you should be using the Hibernate entity model to update the ticket or whatever you are updating. If you are using SQL (which you really shouldnt as it can cause locks among other things) you can invalidate the cache for the ticket record in qiestion which will cause Hibernate to reload the entity from the DB. Last resort that one....or you could run the SQL through the NHIbernate session.

[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Refresh Ticket Mainview from code in a Ticket.OnAfterUpdate event scriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Dec 11 9:43 AM
fiogf49gjkf0d

The business rules and events are intentionally separated from the UI. In short, you can't. The events have no knowledge of the UI - this is a good thing. The events fire from not only UI events, but any data change events from SData, mobile, etc. If you want the data on the UI to refresh, you'll need to do that from the UI layer. As Nick mentioned, you could add a RefreshData action on a control or controls to cause the screen to refresh/reload data from the bound entity.

[Reply][Quote]
Zeba Santiaga
Posts: 2
 
Re: Refresh Ticket Mainview from code in a Ticket.OnAfterUpdate event scriptYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 22 Dec 11 2:55 PM
fiogf49gjkf0d

Thanks guys very much for this guidance.  I am rethinking how to do the required updates inside the entity model and make things easier.

[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/28/2025 1:55:47 PM