Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

DW control on TabControl page error

2 posts in DataWindow .NET Last posting was on 2004-09-17 22:39:25.0Z
Blair Posted on 2004-09-17 20:40:26.0Z
Sender: 4058.414b49c6.1804289383@sybase.com
From: Blair
Newsgroups: sybase.public.datawindow.net
Subject: DW control on TabControl page error
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <414b4bba.4089.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 17 Sep 2004 13:40:26 -0700
X-Trace: forums-1-dub 1095453626 10.22.241.41 (17 Sep 2004 13:40:26 -0700)
X-Original-Trace: 17 Sep 2004 13:40:26 -0700, 10.22.241.41
Lines: 11
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.datawindow.net:396
Article PK: 124826

I have a VB.NET form with a TabControl and 2 tab pages. I
drop a dw control on each tab page. In the form's Load
event, I call SetTransaction for each dw control. An error
occurs for whichever control is on tab page 2:
DatawindowNotCreatedException: SetTransaction was called
when no Datawindow object was attached.

SetTransaction works fine if I drag the dw control off the
tab page.

Any clues?


dfish Posted on 2004-09-17 22:39:25.0Z
From: dfish@_no_spam_sybase.com (Dave Fish [Team Sybase])
Newsgroups: sybase.public.datawindow.net
Subject: Re: DW control on TabControl page error
Organization: Sybase Professional Services
Reply-To: nospam_dfish@sybase.com_nospam
Message-ID: <414b6480.165687455@forums.sybase.com>
References: <414b4bba.4089.1681692777@sybase.com>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: vpn-dub-022.sybase.com
X-Original-NNTP-Posting-Host: vpn-dub-022.sybase.com
Date: 17 Sep 2004 15:39:25 -0700
X-Trace: forums-1-dub 1095460765 10.22.120.22 (17 Sep 2004 15:39:25 -0700)
X-Original-Trace: 17 Sep 2004 15:39:25 -0700, vpn-dub-022.sybase.com
Lines: 27
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.datawindow.net:398
Article PK: 124828

I believe this is a bug. If you set the DataWindow object property in
code before calling SetTransaction it should work ok.

Regards,
Dave Fish
Sybase

TeamSybase blogs: http://www.teamsybase.net/blogs

DataWindow.NET code examples available on CodeXchange:
http://datawindownet.codexchange.sybase.com

On 17 Sep 2004 13:40:26 -0700, Blair wrote:

>I have a VB.NET form with a TabControl and 2 tab pages. I
>drop a dw control on each tab page. In the form's Load
>event, I call SetTransaction for each dw control. An error
>occurs for whichever control is on tab page 2:
> DatawindowNotCreatedException: SetTransaction was called
>when no Datawindow object was attached.
>
>SetTransaction works fine if I drag the dw control off the
>tab page.
>
>Any clues?