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.

pagecount

2 posts in DataWindow Last posting was on 2009-11-18 20:28:11.0Z
AJ Posted on 2009-11-04 23:55:42.0Z
Sender: 57ea.4af213de.1804289383@sybase.com
From: Aj
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: pagecount
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4af2147e.57f4.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 4 Nov 2009 15:55:42 -0800
X-Trace: forums-1-dub 1257378942 10.22.241.41 (4 Nov 2009 15:55:42 -0800)
X-Original-Trace: 4 Nov 2009 15:55:42 -0800, 10.22.241.41
Lines: 12
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90224
Article PK: 409829

Hello,
I have got a report that uses a datawindow and a nested
datawindow. I have got breaks for certain column and the
user wants me to display page # of pageCount() on the top
right corner. This displays and am also resetting the page
for each group break. But there is a small problem that
although current page(i.e., which page the user is in)
displays properly the pagecount doesn't properly display. It
always display the total # of pages the report has.
Anybody has any clue how to get around this problem? Please
note that the nested datawindow is a n-up datawindow.
PB 11.5 build 2506.


AJ Posted on 2009-11-18 20:28:11.0Z
Sender: 5735.4b04578e.1804289383@sybase.com
From: Aj
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: pagecount
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4b0458da.576f.1681692777@sybase.com>
References: <4af2147e.57f4.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 18 Nov 2009 12:28:11 -0800
X-Trace: forums-1-dub 1258576091 10.22.241.41 (18 Nov 2009 12:28:11 -0800)
X-Original-Trace: 18 Nov 2009 12:28:11 -0800, 10.22.241.41
Lines: 17
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90301
Article PK: 409906

Found the solution.
Actually resetting pagecount works only for the first group.
Since I was doing reset for the second group and hence it
was not properly displaying.
Thanks for all your attention.

> Hello,
> I have got a report that uses a datawindow and a nested
> datawindow. I have got breaks for certain column and the
> user wants me to display page # of pageCount() on the top
> right corner. This displays and am also resetting the page
> for each group break. But there is a small problem that
> although current page(i.e., which page the user is in)
> displays properly the pagecount doesn't properly display.
> It always display the total # of pages the report has.
> Anybody has any clue how to get around this problem?
> Please note that the nested datawindow is a n-up
> datawindow. PB 11.5 build 2506.