 |
|
 |
GRANDE MAESTRO, me salvaste la vida (thank you)
|
|
|
|
 |
|
 |
Good Job Moh'd keep working and we will wait more ...
|
|
|
|
 |
|
 |
I was getting REAL tired of drilling down through Quick Watch and was thinking of building something like this. Then I decided to do a google search first. Just saved me alot of time on a tool that I didnt HAVE to use but sure made things less frustrating. And unlike many Visual Studio add-in tools I have tried this one actually works!
Great work.
|
|
|
|
 |
|
 |
Another fix here (downloadable source is a wonderful thing):
If you have a dataset in which a column has only null values, that column won't be shown because GetXml() ignores it, and ReadXml() won't introduce the column to the DS.
That's where GetXmlSchema() and ReadXmlSchema() step in.
The changes (roughly, I can send you the source code):
- Connect.Exec(): add
getXmlScehmaExpression="((System.Data.DataSet)"+str+").GetXmlSchema()";
call GetExpression on it too
pass both Values to DatasetWatchFrm.getXml()
- DatasetWatchFrm.getXml(): ReadXmlSchema() before ReadXml()
|
|
|
|
 |
|
 |
Hi,
Thanks for a great tool - I can't work without it...
I poked around the project in the debugger and found that the cause for the "root invalid at 1,1" problem (at least the way I reproduced it) was a timeout of 500 milliseconds (MSDN says 500 minutes, I tend to disagree) in the GetExpression method.
The change I suggest is to increase the timeout to 5 seconds and to show a message if that timeout isn't enough. The code change (tested on VS.NET 2003) is in Connect.cs line 175. Instead of:
expr = debugger.GetExpression(getXmlExpression,true,500);
_DatasetWatchFrm.getXml(expr.Value );
it should be:
int getxml_timeout = 5000;
expr = debugger.GetExpression(getXmlExpression,true,getxml_timeout);
try
{
_DatasetWatchFrm.getXml(expr.Value );
}
catch(Exception)
{
string message = expr.Value;
if(message.IndexOf("timed out") != -1)
message += string.Format(" ({0} msecs)", getxml_timeout);
MessageBox.Show(message);
return;
}
Regards,
Uri Dor
|
|
|
|
 |
|
 |
I'll start to build a small ERP solution,
i want to know about the mos useful refrence about the erp database.
Thanks,
|
|
|
|
 |
|
|
 |
|
 |
So in your example under the column sex you have 1, 2, 3, 4 so what are the Third and Fourth sex types? Is does that number mean something else? :P
lol
"Your KungFu is not strong enough"
|
|
|
|
 |
|
 |
Sorry for stealing his messagebord, but I think that it's funny. It's real story about one woman filling in the form - apppliance for job or something - and she proceeded like:
Name: [her name here]
Age: [her age here]
Sex: Sometimes
...
I wonder what kind of job she was applying for!
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
 |
|
 |
it just because the future is not expected
|
|
|
|
 |
|
 |
I have downloaded your viewer and ran the set-up. Everything installed okay. I ran my project and had a breakpoint right after I loaded a dataset. When execution stops I right-click and choose Dataset Quick Watch from the context menu and I get the message, "This is not a dataset." I tried several different attempts to "select the dataset" while suspended. What am I doing wrong?
|
|
|
|
 |
|
 |
Hello,
I wanted to debug your project, 'cause anytime I added the second DataTable to my DataSet and tried to get into the QuickWatch, Visual Studio tells me that "Die gleiche Tabelle (LANGUAGE) kann in zwei geschachtelten Beziehungen nicht ide untergeordnete Tabelle sein." (english: The same Table (LANGUAGE) can't be the slave table in two nested relations).
The names of this two DataTables are LANGUAGE and VALUES and they are independent from each to another. They will be related with a third DataTable, but this DataTable will be created later!
So, I made a demo project and downloaded your source and tried to debug it the way you descriped it in other messages, but it doesn't work. I made stop points in the addin but the addin doesn't stop there. I write messageboxes into the addin... rebuild it... and tried again. The Boxes were displayed but no stop at a stop point again.
Can you help me??
Your work is great but I can't use it this way
binolino
|
|
|
|
 |
|
 |
Hi this is a new problem but you can solve it by removing all the relations from the dataset before displaying it in my quick watch
I don’t know how but it could be something like
For each R in TheDataset.relations
{
R.Remove();
}
Goodbye and in Arabic
السلام عليكم
|
|
|
|
 |
|
 |
In fact I have no relations thats why it's so tricky!
My DataSet is filled by using DataAdapter.fill(DataSet,Tablename) and nothing more
|
|
|
|
 |
|
 |
It worked Great in C# ( .NET 2003). I have some c++ projects. can you please help me with that ?
|
|
|
|
 |
|
 |
Great tool! I use it several times a day...
But every time I try to quickwatch a typed dataset, it only shows the errorbox telling that me that my variable is not a dataset.
I've tryed to change the evaluaton string to:
isDataSetExpression="("+str+" as System.Data.DataSet).Tables";
But this did not work, telling me that the expression is invalid.
Has anyone found a workaround?
|
|
|
|
 |
|
 |
hi really I did not test it carefully with vb.net but you can make a debug for the add in and to know the way of debugging check the posts here By hipping jay
|
|
|
|
 |
|
 |
Actually, obj as System.Data.DataSet is a working C# syntax.
Even though it looks like vb.net
Do you mean that you don't have any problems viewing strongly typed datasets with DSWatch?
|
|
|
|
 |
|
 |
I am using VS 2003 and have the QuickWatch Dataset installed.
So far every dataset that I have tried to check gives me "This is not a Dataset!".
When I mouseover the Dataset name it says its a System.Data.Dataset.
Thanks for any help you can give me.
JefferyS
|
|
|
|
 |
|
 |
Never mind, my bad. I didn't realize that you have to select the whole dataset veriable name then right click and select QuickWatch Dataset. I was just right clicking in the middle of the dataset name.
It works great!!
Thanks,
JefferyS
|
|
|
|
 |
|
 |
I often use just separate DataTables (without DataSets).
Are you planning to enlarge your component for DataTable viewing?
|
|
|
|
 |
|
 |
Yes - me too - while this is a cool tool, it would be significantly more useful if it also worked with datatables.
|
|
|
|
 |
|
 |
Add me to the list!
Great tool!!
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
 |
|
 |
I will love it too
|
|
|
|
 |
|
 |
Hello I've made a modification to the execute Exec function to determine if the object is a Dataset or a Datatable. If the object is a Datatable, the function looks for the Datatable.Dataset object to show. The only limitation I've found is that it doesn't work when the Datatable does not have the Dataset object. ---- CODE --- public void Exec(string commandName, EnvDTE.vsCommandExecOption executeOption, ref object varIn, ref object varOut, ref bool handled) { try { EnvDTE.Debugger debugger; debugger = applicationObject.Debugger; Expression expr ; string str; string isDataSetExpression=null ; string getXmlExpression=null; string fileExtintion ; TextSelection _TextSelection; _TextSelection=(TextSelection)applicationObject.ActiveDocument.Selection; str=_TextSelection.Text ; fileExtintion=applicationObject.ActiveDocument.FullName.Substring(applicationObject.ActiveDocument.FullName.Length-2 ) ; switch(fileExtintion.ToLower() ) { case "cs": isDataSetExpression="(System.Data.DataSet)"+str+".Tables"; getXmlExpression="((System.Data.DataSet)"+str+").GetXml()"; break; case"vb": isDataSetExpression="ctype("+ str +",System.Data.DataSet).Tables"; getXmlExpression="ctype("+ str +",System.Data.DataSet).GetXml()"; break; } //cast the selcted text to dataset expr = debugger.GetExpression(isDataSetExpression,true,500); //System.Windows.Forms.MessageBox.Show(expr.Value ); if (expr.Value.IndexOf("error:")>-1) { //Probamos que sea un datatable switch(fileExtintion.ToLower() ) { case "cs": isDataSetExpression="(System.Data.DataTable)"+str+""; getXmlExpression="((System.Data.DataTable)"+str+").DataSet.GetXml()"; break; case"vb": isDataSetExpression="ctype("+ str +",System.Data.DataTable)"; getXmlExpression="ctype("+ str +",System.Data.DataTable).DataSet.GetXml()"; break; } //cast the selcted text to dataset expr = debugger.GetExpression(isDataSetExpression,true,500); //System.Windows.Forms.MessageBox.Show(expr.Value ); if (expr.Value.IndexOf("error:")>-1) { System.Windows.Forms.MessageBox.Show("This is not a DataSet or DataTable!"); return; } } DatasetWatchFrm _DatasetWatchFrm; _DatasetWatchFrm =new DatasetWatchFrm(); expr = debugger.GetExpression(getXmlExpression,true,500); _DatasetWatchFrm.getXml(expr.Value); _DatasetWatchFrm.Show(); } catch(Exception e) { System.Windows.Forms.MessageBox.Show(e.Message ); } } ---- CODE ---- Fabrizzio Valencia
|
|
|
|
 |