Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Wednesday, February 19, 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)
2/19/2025 3:58:13 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!
Architect Forums - SalesLogix .NET Extensions
Forum to discuss the use of .NET Extensions in SalesLogix version 7 and higher. View the
code of conduct
for posting guidelines.
Forums RSS Feed
Back to Forum List
|
Back to SalesLogix .NET Extensions
|
New Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: Force a .Net Extension to show itself
Jeff L
Posts: 65
Force a .Net Extension to show itself
Posted: 16 Dec 09 11:04 AM
This may be a no brainier, but it's giving me a hard time.
I have a .Net extension that retrieves data from an UniData database on an AIX machine. The process of getting the data is rather involved requiring up to 7 different SQL statements. The data is displayed to the user in 7 list view controls contained in the .Net Extension. As such the data gathering is a bit time consuming.
My problem is getting the control to show itself while gathering the data. I need to give the user something to see while gathering the data.
I have tried many ways to get the control to paint itself but have not succeeded. I have called .Show, .Update. Inside SLX script I even called the .Net extension twice, once without data processing and then a second time with data processing with a ProcessWindowsMessages between the calls.
After the control is displayed, the user can select a different date range and start the data gathering process again. At this point I have no problem updating the screen at various steps of data gathering to let the user know what is going on.
The client wants the display to be pre-populated based on the current date. they do not want the user to have to hit select when it opens.
I am hoping to avoid creating the display in SLX and passing and parsing all of that data inside SLX script.
Can anyone suggest how to get the user interface to paint while processing data in the background?
[
Reply
][
Quote
]
Raul A. Chavez
Posts: 1300
Re: Force a .Net Extension to show itself
Posted: 16 Dec 09 11:26 PM
The problem that you are having is that the code is executing in a single thread.
If you are not doing this yet, you should use a separate thread to do all your data retreival, thus allowing the first thread to respond to other Events (e.g. Paint the form, relying updates to the user, a Cancel button if applicable).
Since you are using .Net, the threading is quite simple to do by using the BackgroundWorker component.
[
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): 2/19/2025 4:43:22 PM