Skip to Content
author's profile photo Former Member
Former Member

Set datasource of Embeddable Designer Control at runtime

Post Author: mauricemertens

CA Forum: Data Connectivity and SQL

Hi,Does anyone know how to set the datasource of an embeddable designer control at runtime?The user has a datasource from which the tables and fields are known at runtime (the user is able to make a selection of fields, etc.). Next an Embeddable Design Control must be filled with these available fields.

The problem is that I don't know how to set the tables and fields as datasource for this control. I would prefer to set these via a dataset (which will be created at runtime) or an adodb.recordset.

Thx in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 22, 2008 at 06:49 AM

    Post Author: charitha

    CA Forum: Data Connectivity and SQL

    Hi I hope you got the solution for this.

    Actually I am able to assign the data to CRAXDDRT report control using adodb record set at runtime. But in my application I have to bind the data to CRAXDDRT report control using Dataset.

    Code using ADODB recordset.

    Recordset rs = new Recordset();

    rs.Open(sql, con, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockReadOnly, 1);

    CRAXDDRT.Database dbase ;

    dbase = report.Database;

    dbase.SetDataSource(rs, 3, 1);

    But I need to assign dataset object instead of ADODB.recordset.I assigned dataset object but it is not showing the data.

    Can you help me if you have solution for this?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.