Forum Discussion

Ragusa's avatar
Ragusa
Occasional Contributor
10 years ago

Unsupported Data Type?

Having a little application ("Profitcenter Mgmt") showing 8 columns of data (see attachment "Profitcenter.png"). Doing a Table Checkpoint it finds all of the 8 column Headers (attachment "Headers"). Trying to store them in pressing "Weiter" ("Continue") it says for the first column ("Mandant") "unsupported data type" with a technical information code (attachment "Unsupported 1"). Looking with "Object Spy" at the first cell of the column I found out that it is a "WPFObject DataGridCell" (also the attachment before). So I unmarked column "Mandant" and it said on the 3rd column "Profitcenter Leiter" "unsupported data type" with an other technical information code (attachment "Unsupported 2"). "Object Spy" said again "WPFObject DataGridCell" (also the attachment before). All the rest of the columns were the same as "Profitcenter Leiter". So, the only column supported was column 2 ("Profitcenter"). This column I could store without any problem. Data was correct and complete. "Object Spy" says "WPFObject TextBlock" (attachment "Supported"). So, can't I read these "DataGridCells" or do I have to do some adjustment or customizing before?

I'm using TestComplete 11.

 

3 Replies

  • I'm not familiar with this particular type of grid, but it appears to be something similar to the Delphi DBGrid types where the information displayed is directly linked/driven by an underlying/linked DataSet object.

     

    The Delphi ones can be a bit tricky to work with. Depending how the DataSets are use. Some of them double up with a the DataSet providing an index number for an addional Lookup set.

     

    Maybe someone who knows a bit more about WPF DB grids can shed a little more light?

     

    (I do all my tests via scripts so no idea how you'd address this with keyword tests and checkpoints unfortunately ...)

    • Ragusa's avatar
      Ragusa
      Occasional Contributor

      I understood, you're doing everything with scripts. So, how do you read DBs, Tables and DataGrids? The application of my customer has just a GUI, no way to unload or export the data.

      • Colin_McCrae's avatar
        Colin_McCrae
        Community Hero

        With the Delphi grids I mentioned, you have to query the underlying DataSet object (which is a property of the DBGrid) to get certain pieces of information. And in some cases, query the DataSet for an Index then use the Index to look up a separate set of records.

         

        But these are specific to the control types and I had the Delphi developers on hand to explain how the control behaves.

         

        You probably want to speak to a developer who has used the control.

         

        There is no single answer for questions like this.

         

        (I'm not sure about it being "just" a GUI as well. Surely you view and enter information via the GUI so it must be stored somewhere? It must have some sort of datastore ...)

         

        For DB's, I usually just create a connection string and query it directly via my code. But again, you need to know the database in order to this. It's not something you can guess your way through really.