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.

OpenTabWithParm or OpenTab

3 posts in Objects Last posting was on 2008-04-18 07:09:08.0Z
neil Posted on 2008-04-18 01:53:01.0Z
Sender: 6d95.48041538.1804289383@sybase.com
From: Neil
Newsgroups: sybase.public.powerbuilder.objects
Subject: OpenTabWithParm or OpenTab
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4807fefd.404a.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 17 Apr 2008 18:53:01 -0700
X-Trace: forums-1-dub 1208483581 10.22.241.41 (17 Apr 2008 18:53:01 -0700)
X-Original-Trace: 17 Apr 2008 18:53:01 -0700, 10.22.241.41
Lines: 20
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9653
Article PK: 736790

Hi,

I tried using the above tab functions (as stated in the
subject line). I create a user object, having a function on
it that based on parameter from opentabwithparm, it will
display the corresponding datas. So, different parameter
supposedly should display different datas.

What happened is, when I call OpenTabWithParm several times
in a loop, although it displays the tabpage, but only the
last data is displayed among all tab pages being created. It
seems all tab pages share all the datas.

Is this the correct behaviour of this function or something
I missed?

Many thanks for any ideas.

Regards,
Neil


Bruce Armstrong [TeamSybase] Posted on 2008-04-18 03:25:55.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: OpenTabWithParm or OpenTab
Reply-To: NOCANSPAM_bruce.armstrong@teamsybase.com
Message-ID: <645g04dpv350usgc4lvj5qom00b70us3nf@4ax.com>
References: <4807fefd.404a.1681692777@sybase.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 17 Apr 2008 20:25:55 -0700
X-Trace: forums-1-dub 1208489155 10.22.241.152 (17 Apr 2008 20:25:55 -0700)
X-Original-Trace: 17 Apr 2008 20:25:55 -0700, vip152.sybase.com
Lines: 29
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9654
Article PK: 736796

When are you capturing the data being passed. It comes in the message
object, which is essentially global. If you don't pull the data into
a local or instance variable of the object in the constructor, by the
time you try to access it later you'll just see the data from the last
call.

On 17 Apr 2008 18:53:01 -0700, Neil wrote:

>Hi,
>
>I tried using the above tab functions (as stated in the
>subject line). I create a user object, having a function on
>it that based on parameter from opentabwithparm, it will
>display the corresponding datas. So, different parameter
>supposedly should display different datas.
>
>What happened is, when I call OpenTabWithParm several times
>in a loop, although it displays the tabpage, but only the
>last data is displayed among all tab pages being created. It
>seems all tab pages share all the datas.
>
>Is this the correct behaviour of this function or something
>I missed?
>
>Many thanks for any ideas.
>
>Regards,
>Neil