Thread View: borland.public.delphi.database.ado-net
2 messages
2 total messages
Started by sandokan
Fri, 07 Jul 2006 22:32
Column <columnname> does not belong to table <tablename>
Author: sandokan
Date: Fri, 07 Jul 2006 22:32
Date: Fri, 07 Jul 2006 22:32
34 lines
1862 bytes
1862 bytes
Hi again!
I'm trying to reload a TListConnector with the data provided by a web
service. The first time I load the data everything goes OK. The problem
is the second time I load the data in the same TListConnector. I've got
an error: "Column <columnname> does not belong to table <tablename>". I
tried to disable de TListConnector, assign TListConnector.DataObject:=
nil, ... it's impossible, I can get data anyway.
This is the code:
procedure GetData(ListConnector: TListConnector; const Table);
overload;
var
ws : TWebService1;
ds : DataSet;
begin
try
ds := DataSet.Create;
ws := MakeWebService;
ds := ws.GetData(Table);
ListConnector.DataObject := ds.Tables[Table].DefaultView;
ListConnector.Active:= true;
ds := nil;
except
ListConnector.Active:= false;
Raise;
end;
end;
The program fails when I run "ListConnector.Active:= true" (the second
time, the first everything is OK).
HELP PLEASE!!!!
Re: Column <columnname> does not belong to table <tablename>
Author: Bill Todd
Date: Fri, 07 Jul 2006 22:48
Date: Fri, 07 Jul 2006 22:48
8 lines
1250 bytes
1250 bytes
Please do not multipost or cross post your messages. It violates Borland's guidelines for using their newsgroups and wastes everyone's time. Please post one message in the most appropriate newsgroup and please take a moment to read the newsgroup guidelines at http://info.borland.com/newsgroups/guide.html -- Bill Todd (TeamB)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads