Print Page | Close Window

A minor bug or adjustment in Explorer- Not really!

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1219
Printed Date: 12-Mar-2025 at 7:05pm


Topic: A minor bug or adjustment in Explorer- Not really!
Posted By: BenHayat
Subject: A minor bug or adjustment in Explorer- Not really!
Date Posted: 15-Apr-2009 at 7:26pm
As you start the app, it automatically calls "Get all customers" method. So, if you select that same query from the drop down, it will not execute the query, since the query and the data are in the cache. Now, if you click on "Clear" button, the data gets cleared but not the query. So, you can not run that query again, because it is still holding on to the old query. Unless you replace it with another query "Get customers with A" then you can re select the "Get all customers"!

[Update] Ok, I didn't realize there is a button to the left of the combo box to do a query. So, if we clear the data, the only way to get that data back, is clicking on the Query button and not the combo selection.


-------------
Best Regards!
..Ben

WPF & Silverlight Insider
http://www.MicroIntelligence.Com - http://www.MicroIntelligence.Com



Replies:
Posted By: WardBell
Date Posted: 16-Apr-2009 at 6:10am
Thanks for explaining that to folks. That's why we have the Query button.
 
To be a bit more precise, changing the selected query triggers a query. In your example, the selected query is not changed by clearing the cache so the application does not know to re-query.
 
In principle, we could have re-queried after Clear (and certain other button clicks) ... but that would have interferred with some of the DevForce exploratory scenarios.
 
For example, I like to show that the app keeps working after you disconnect ... but you get no query results if you then re-query when the cache is empty. To illustrate this, I could prescribe the sequence {Disconnect, Clear}. But I found that I myself often went {Clear, Disconnect}. If we were to auto-re-query, the first path would return the expected "no results"; the second path would always return the orginal results ... which I think would confuse people.
 
Can you see why?
 
Hint: {Clear, Disconnect, Clear} would do the job; there would be no displayed results.
 
Rather than have to explain all of this upfront, we decided that auto-query would occur ONLY on application launch.


Posted By: BenHayat
Date Posted: 16-Apr-2009 at 6:28am
Your point is well taken! As I always say, no one knows the real truth about a program, except the person who wrote it; :-)

I brought it up, because I didn't want people to think (like I did at first), it's a bug!


-------------
Best Regards!
..Ben

WPF & Silverlight Insider
http://www.MicroIntelligence.Com - http://www.MicroIntelligence.Com



Print Page | Close Window