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.

Window multiple instances prevention

2 posts in Objects Last posting was on 2007-04-05 18:18:09.0Z
MR Posted on 2007-03-21 18:00:28.0Z
Sender: 471d.4601509c.1804289383@sybase.com
From: MR
Newsgroups: sybase.public.powerbuilder.objects
Subject: Window multiple instances prevention
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <460172bc.4d49.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 21 Mar 2007 10:00:28 -0800
X-Trace: forums-1-dub 1174500028 10.22.241.41 (21 Mar 2007 10:00:28 -0800)
X-Original-Trace: 21 Mar 2007 10:00:28 -0800, 10.22.241.41
Lines: 17
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9302
Article PK: 736464

Hi,

I have dw_data datawindow on window w_main and a response
window w_response.

The data on dw_data of w_main is displayed based on the user
inputs on w_response.

By keeping the w_main open and if user tries to open the
w_main again by selecting different criteria, the data on
the existing w_main has to be refreshed with the new
criteria.

How can I achieve this?

Thanks,
MR


Millard F. Brown III Posted on 2007-04-05 18:18:09.0Z
From: "Millard F. Brown III" <millard.brown@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <460172bc.4d49.1681692777@sybase.com>
Subject: Re: Window multiple instances prevention
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1807
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807
NNTP-Posting-Host: 204.86.34.1
X-Original-NNTP-Posting-Host: 204.86.34.1
Message-ID: <46152f51@forums-1-dub>
Date: 5 Apr 2007 10:18:09 -0800
X-Trace: forums-1-dub 1175793489 204.86.34.1 (5 Apr 2007 10:18:09 -0800)
X-Original-Trace: 5 Apr 2007 10:18:09 -0800, 204.86.34.1
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9315
Article PK: 736473

Keep track of the windows you have opened. You can use an NVO with arrays of
window vars and classnames to remember what's opened, and then call the
appropriate methods on the window (opening it if you don't find it in the
array.

Looking at the internals of PFC sheet manager also might help you.

--
Regards,
Millard [TeamSybase]

<MR> wrote in message news:460172bc.4d49.1681692777@sybase.com...
> Hi,
>
> I have dw_data datawindow on window w_main and a response
> window w_response.
>
> The data on dw_data of w_main is displayed based on the user
> inputs on w_response.
>
> By keeping the w_main open and if user tries to open the
> w_main again by selecting different criteria, the data on
> the existing w_main has to be refreshed with the new
> criteria.
>
> How can I achieve this?
>
> Thanks,
> MR