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.

Problems with Datastores

2 posts in DataWindow .NET Last posting was on 2004-09-16 17:48:54.0Z
BB Posted on 2004-09-16 15:53:01.0Z
Sender: 706d.4149b693.1804289383@sybase.com
From: BB
Newsgroups: sybase.public.datawindow.net
Subject: Problems with Datastores
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4149b89b.70c2.1681692777@sybase.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 16 Sep 2004 09:00:27 -0700, 10.22.241.42
Lines: 13
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 16 Sep 2004 08:40:47 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 16 Sep 2004 08:53:01 -0700
X-Trace: forums-1-dub 1095349981 10.22.108.75 (16 Sep 2004 08:53:01 -0700)
X-Original-Trace: 16 Sep 2004 08:53:01 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.datawindow.net:385
Article PK: 124815

I am receiving an error in the update of my datastore using
the code

If data_store.update() = -1 then ...


I need more information than the -1 returned. The
documentation states that I can go to the DBError event to
get detailed information. The datastore does not have any
events defined and I can not find the steps to add an event
to a datastore.

Any help is greatly appreciated.


dfish Posted on 2004-09-16 17:48:54.0Z
From: dfish@_no_spam_sybase.com (Dave Fish [Team Sybase])
Newsgroups: sybase.public.datawindow.net
Subject: Re: Problems with Datastores
Organization: Sybase Professional Services
Reply-To: nospam_dfish@sybase.com_nospam
Message-ID: <4149ce8f.61777200@forums.sybase.com>
References: <4149b89b.70c2.1681692777@sybase.com>
X-Newsreader: Forte Free Agent 1.21/32.243
X-Original-NNTP-Posting-Host: vpn-dub-022.sybase.com
X-Original-Trace: 16 Sep 2004 10:56:19 -0700, vpn-dub-022.sybase.com
Lines: 35
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 16 Sep 2004 10:36:38 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 16 Sep 2004 10:48:54 -0700
X-Trace: forums-1-dub 1095356934 10.22.108.75 (16 Sep 2004 10:48:54 -0700)
X-Original-Trace: 16 Sep 2004 10:48:54 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.datawindow.net:386
Article PK: 124817

Is this related to DataWindow .NET? From the context of your question
I believe it is related to using Datastores in PowerBuilder. If so you
should ask the question in the powerbuilder.datawindow newsgroup.

For what its worth, if this is PowerBuilder related, you need to
create a datastore user object. You can then put code in the DBError
event to capture error information. Declaring a variable of the base
class datastore prevents you from putting code in the datastore's
events.

Regards,
Dave Fish
Sybase

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

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

On 16 Sep 2004 08:53:01 -0700, BB wrote:

>I am receiving an error in the update of my datastore using
>the code
>
>If data_store.update() = -1 then ...
>
>
>I need more information than the -1 returned. The
>documentation states that I can go to the DBError event to
>get detailed information. The datastore does not have any
>events defined and I can not find the steps to add an event
>to a datastore.
>
>Any help is greatly appreciated.