index > Team Foundation Server - Work Item Tracking > Query results window is cached ?

Query results window is cached ?


When you run a query, open the result in MS Excel, make changes to the work items, publish them and then run the query again from within VS, you get the same results as before the change and publish from MS Excel.
It seems that the query is just not run because there is already an existing results window.
How can i make sure that the query runs every time even if there was already a resuls window for that specific query ?
paso

When query is refreshed we do clear the results and run query again. Is this not what you are seeing? If you try closing and opening results view, do you see right results? If not, pls give me repro steps to try.

Thanks




http://blogs.msdn.com/narend
Naren Datha - MSFT
Steps for repro:
- double click on a query --> results window is displayed
- right-click on same query and select "Open in Microsoft Excel"
- change some fields in Excel
- publish changes
- switch back to VS
- double click on the query --> same results window as before changes in Excel is shown
Results are OK if you select the results query window and then press the run button.
paso

When you doubleclick on a query we check to see if that query is already in a opened query window. If so, we just move the focus there. That seems to be the reason why you are not seeing any updates. Rerunning query by clicking on run button does update the results, so does it solve your issue?

Thanks.




http://blogs.msdn.com/narend
Naren Datha - MSFT

Yes this is a workaround, but I consider it a bug that the result window is not refreshed when already open and double-clicking on the query. What the user sees is completely out of sync with what's in the database and I think this is unacceptable !

paso
Thanks for your feedback. I'll track this issue in our db and hopefully this behavior will change.


http://blogs.msdn.com/narend
Naren Datha - MSFT
reply 6

You can use google to search for other answers

 

More Articles

How to Import/Export WorkItems in TFS-RTM
Why Cant I enter start date and finish date on tasks work items?
getting selected item
Synchronizing workitems with 3rd-party defect tracker?
Bugs and related work item resolution...
WHENCHANGED error
Exception using TFS client in Web App
Project field mapping questions
End Date for Iterations
Organizing Projects into Products or Customers or Releases?
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Customize the history tab to give more i…
Accessing work item history from API
Error TF50304 when creating project alert
File Attachment Best Practice
TF80071 connecting MPP to Team project
How The TFS publish the build numbers us…
Connecting to work items with project
CMMI delete work items
Auto-Complete of Area and Iteration
Work Item Web Access
WebService Create New Task/Bug
Set new field - Owner inside of WI and p…
Rules with multi-level picklist.
what happens to the old WIs after using …
Creating a Custom query programmatically…

Hot Articles

integration between project 2003 an…
How to get the email body from an email …
WorkItem Class is not marked as serializ…
Defect tracking across projects
Migrating From Other Bug Tracking System…
Error adding attachment with work item?
Custom Work Item Types and Sort Order
Importing Bug Database to TFS Work Items
There is a way to delete/remove from ex…
Automate "Add solution to Source co…
Creating a Custom query programmatically…
how to increase attachment upload limits…
CreateNewWorkItem
Can't browse work items
Customize Query Variables

Recommend Articles

System.ChangedBy populating with "c…
TFS RC: Error loading Microsoft.TeamFoun…
Field-name used in error message
Related items
WorkItem API problem: Cannot update Fiel…
More on Linking
ActivatedDate field definition problem
How to Display the Current Date and time…
Question about events service
Prohibiting a user from reviewing their …
limit control type links control to spec…
Error TFS30170
Custom Work Item Types and Sort Order
Outdated Work Items - Saving not possible
How do I delete a task?