﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Asynchronous data loading</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 05 May 2026 23:33:09 GMT</lastBuildDate><ttl>20</ttl><item><title>Asynchronous data loading</title><link>http://forum.strataframe.net/FindPost11955.aspx</link><description>Hi,&lt;br&gt;
I created a BO which subclass BusinessLayer. I created FillAll() method which will load data from external source (not database). The data loading might take 30 seconds. The reason I put this code in BO is to ease data binding.&lt;br&gt;
&lt;br&gt;
I would like to have async data loading for this. When form loaded, combobox should show "loading ..." as display value. Then program would call BO.FillAll() to query data from external source. Once complete, I want combobox to show "Please select a value" with a list of record.&lt;br&gt;
&lt;br&gt;
How could I do this?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Mon, 15 Oct 2007 09:38:44 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Asynchronous data loading</title><link>http://forum.strataframe.net/FindPost11979.aspx</link><description>What Trent was describing allows you to retrieve a single column&amp;nbsp;from the database that is a VarBinary(MAX) (or IMAGE) field.&amp;nbsp; It doesn't do anything for what you are describing.&lt;/P&gt;&lt;P&gt;What you will need to do is create a method somewhere that will create a background thread to load the data.&amp;nbsp; Basically:&lt;/P&gt;&lt;P&gt;1) Create the method to load combo box.&lt;/P&gt;&lt;P&gt;2) This method starts a new thread and passes over the parameters to get to the data source and the combo box that is being populated.&lt;/P&gt;&lt;P&gt;3) Thread then retrieves the data and set the DataSource, DisplayMember, and ValueMember properties on the combo box (using Invoke() on the combobox to prevent CrossThreadViolationExceptions).</description><pubDate>Mon, 15 Oct 2007 09:38:44 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Asynchronous data loading</title><link>http://forum.strataframe.net/FindPost11958.aspx</link><description>Hi,&lt;br&gt;
What if my external data source is a very large XML, web service or large collection from other vendor class?&lt;br&gt;
&lt;br&gt;
Does 1.6.2 allow me to do the same?</description><pubDate>Fri, 12 Oct 2007 10:15:42 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Asynchronous data loading</title><link>http://forum.strataframe.net/FindPost11957.aspx</link><description>We have already implemented this in the 1.6.2 update.&amp;nbsp; There is now the ability to asynchronously retrieve a BLOB (VarBinary) field which raises events notifying you of the progress of the retrieval.&amp;nbsp; This was added so that large fields (i.e. VarBinary fields storing serialized or image data) could be retrieved without a timeout on the connection while displaying a progress bar to the end-user.&lt;/P&gt;&lt;P&gt;This will probably not be released for 30+ days as it needs to be finalized in testing.&amp;nbsp; But this logic has already been added to the BO.</description><pubDate>Fri, 12 Oct 2007 10:00:28 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>