Page 1 of 1

Change TUniTable table name property at runtime

Posted: Sun 26 Oct 2014 21:25
by testpresta
Hello

I have two tables which have the same fields structure.
The same screen and the same TUniTable component is used for the two tables.
When the screen is opened, i change TUniTable property.

It works very well for the first table.

But when i change to the second, my fields are not available.

This does not work:

Code: Select all

MyTableField1.Value:='test';
This work:

Code: Select all

MyTable.FieldByName('Field1').asstring:='test';
I want to make work the first code.
Is it a TUnitable bug ?

Thanks

Re: Change TUniTable table name property at runtime

Posted: Sun 26 Oct 2014 21:32
by testpresta
In fact the 2 codes does not work.
I just close UniTable component, then change table name propery and the open (with filter)
Should i refresh something ?

Re: Change TUniTable table name property at runtime

Posted: Mon 27 Oct 2014 05:39
by AlexP
Hello,

We cannot reproduce the problem. Please clarify the versions of the IDE and UniDAC. In addition, specify the name of the DB you are working with, and send the table creating script and the small sample reproducing the problem to alexp*devart*com .

Re: Change TUniTable table name property at runtime

Posted: Thu 30 Oct 2014 09:44
by testpresta
I cannot reproduce the problem on a simple project
I think the problem is caused by Filter.
I rewrite my code without Filter and it is fine

Thanks

Re: Change TUniTable table name property at runtime

Posted: Fri 31 Oct 2014 08:19
by AlexP
If you manage to create a simple application reproducing the problem, please send it to us - and we will investigate this behavior once more.