Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8788711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:12:18+00:00 2026-06-13T22:12:18+00:00

This is how my db components are connected in program: The datatypes of components

  • 0

This is how my db components are connected in program:

enter image description here

The datatypes of components are (first row, from left to right): TDBGrid, TDataSource, TClientDataSet, TDataSetProvider, TSQLQuery, TSQLConnection. Second row is analogous to first row.

Client data set Query_LimitDetail is linked to master data source through properties MasterSource and MasterFields. Their values are as follows:

Query_LimitDetail->MasterSource = DataSource_Limit;
Query_LimitDetail->MasterFields = L"ID";

SQL command assigned to client data sets are:

select * from LIMIT order by NAME
select * from LIMITDETAIL where LIMIT_ID = :ID order by ACCUR

This is how i open queries:

Query_Limit->Open();
Query_LimitDetail->Open();

When trying to open detail query, program throws following error:

dbExpress driver does not support the TDBXTypes.UNKNOWN data type. Vendor error message: unknown ISC error 0

Is there something I didnt make correctly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:12:19+00:00Added an answer on June 13, 2026 at 10:12 pm

    The solution is to set SQL parameter type just before opening the query:

    Query_Limit->Close();
    Query_Limit->Open();
    
    // ID param
    TParam   *param = Query_LimitDetail->Params->Items[0];
    param->DataType = ftInteger;
    
    Query_LimitDetail->Close();
    Query_LimitDetail->Open();
    

    Alternative and more universal solution is to set parameter type in OnBeforeOpen event handler like this:

    __fastcall MyDataModule::MyDataModule(TComponent *Owner) :
        TDataModule(Owner)
    {
        ...
        Query_LimitDetail->BeforeOpen = Query_LimitDetail_OnBeforeOpen;
        ...
    }
    
    void __fastcall MyDataModule::Query_LimitDetailBeforeOpen(TDataSet *DataSet)
    {
       if (Query_LimitDetail->Params->Count == 0)
       {
          return;
       }
    
       // ID param
       TParam   *param = Query_LimitDetail->Params->Items[0];
       param->DataType = ftInteger;
    }
    

    It is also neccessary to link column in master table (specified in MasterFields property) to column in detail table:

    Query_LimitDetail->IndexFieldNames = L"LIMIT_ID";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a graph whose nodes exist in many connected components at once because
From web pages like this one, http://www.jsftutorials.net/components/step5.html I understand that the binding attribute in
I have a DataSnap server that creates a TSQLQuery, TDataSetProvider and a TClientDataSet that
This question is connected with: Using boost connected components with cartesian points I've made
I have tons of ajax components on this booking engine. I need to customize
well i have a configuration like this in the components part of my config
I have an array of file path components like this: [ ['some', 'dir', 'file.txt'],
I suppose this question is more general than working with COM components. I have
In Interface Builder components I have Gradient Button I would like to create this
Considering this part of a Java class, private List<Object> components = new ArrayList<Object>(); private

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.