Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Monday, June 30, 2025
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
6/30/2025 1:29:37 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!
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 Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: Slow refresh with minor change
Glenn Williams
Posts: 51
Slow refresh with minor change
Posted: 01 Apr 10 8:06 AM
I think I may not be doing this correctly. I've got a currency box on a simple form. I want to prevent users from raising the dollar amount to high. I run the below 'OnChange'. The dll (up.erbucket) I call is very simple and runs very fast in debug. The refresh takes forever. Is there a better way to do this?
Sage.Entity.Interfaces.IOpportunity _entity = BindingSource.Current as Sage.Entity.Interfaces.IOpportunity;
UpdateProducts.UpdateProducts up;
up = new UpdateProducts.UpdateProducts();
decimal bucket = up.erbucket("Local", _entity.Id.ToString());
if (Convert.ToDecimal(Local.Text) > bucket)
{
Local.Text = String.Format("{0:0.00}", bucket);
_entity.RETOPPORTUNITYEXT.Local=bucket;
PanelRefresh.RefreshTabWorkspace();
}
[
Reply
][
Quote
]
Nick Hollis
Posts: 549
Re: Slow refresh with minor change
Posted: 02 Apr 10 5:33 AM
The code is fine - if its an onchange event you do not have to call the:
PanelRefresh.Refresh...
I dont generally call these on an onchange (you would only need to call it if you were on a dialogworkspace and trying to update a smartpart in the background, even then you would just call the Refresh() method). So perhaps it is this that is taking the time. Try removing it.
If "Local" is bound to the RETOPPORTUNITYEXT.Local property then you do not need to set the Textbox.Text property, just update the entity property. The textbox will update automatically as its bound. This also aplies for the COnvert.ToDecimal(Local.Text) - you should just use the RETOPPORTUNITYEXT.Local property.
Thanks,
Nick
If you do need a particualr format string on the textbox, set this in the binding itself in App Architect (there is a formatstring property on the form property Bindings..) screen.
[
Reply
][
Quote
]
Glenn Williams
Posts: 51
Re: Slow refresh with minor change
Posted: 05 Apr 10 3:28 PM
Thanks, will give it a try..
[
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
|
page cache (param): 6/30/2025 1:50:31 PM