Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Juggernaut

Difference - ## and Status(CurrentPageNumber)

Featured Replies

Can someone explain the difference between ## and Status(CurrentPageNumber)

I figured they'd return the same value but I've been testing things with both and they've been returning different values.

The obvious is that you don't have to create another Field.

Lee

  • Author

Well yes. I understand that.

lol

I'm just trying to figure out why they return different values as I thought ## was a short form for Status(CurrentPageNumber).

The Get calculation needs to be unstored

  • Author

by Get are you referring to GetField(field) or to the calculation Status(CurrentPageNumber)?

Cause the Status(CurrentPageNumber) isn't stored and I've tried just putting it on the layout and it returns different then ##

*shrug*

I meant Status functions needs to be Unstored. I was referring to Status(CurrentPageNumber) Function of course. BTW, it only show in Print and Preview Mode.

Sorry for the confusion.

Lee

  • Author

yes... are you able to make it show the same or are you just assuming?

Cause as far as I can tell, what you've stated is what I have tested and it's coming up differently.

*shrug*

I'm baffled

ASS U ME - Right. I assume you haven't read the Help, is what I assume.

From the Online Help v 8.5:

Get(PageNumber) = A number representing the current page being printed or previewed.

Page Number Symbol = A page number. (Page numbers only appear in Preview mode or on a printed report.) Two number symbols (##)

I keep forgetting you are using v5, so from the v 5 help

Status (CurrentPageNumber) function

Description = Returns a number representing the current page being printed or previewed. If nothing is being printed or previewed, 0 is returned.

Insert A page number. (Page numbers only appear in Preview mode or on a printed report.) = Page Number Symbol = Two number symbols (##)

Lee

  • Author

I know what it is Lee

LOL

what I had done was placed both on a layout

## beside a calculation field Status(CurrentPageNumber)

For some reason they were showing different values.

I've since made them show the same value and stuff but I was trying to figure out why they would show different values considering they were on the same page in preview.

*shrug*

I'm not even sure how I originally corrected it to be honest. I just know I was moving things and changing things and poof... it worked!

I was just curious is all :)

and the answer was in Stored and Unstored.

shrug, shrug, shrug.

:hair:

  • Author

ok I've found where I made the correction and have duplicated my problem.

In my header if I have ## and Status(CurrentPageNumber), they are the same

In my body if I put ## and Status(CurrentPageNumber), they are different.

The ## matches the header but the Status(CurrentPageNumber) in the body seems to count up including every page in preview mode.

Hopefully now you can figure out what the heck I'm referring to :)

  • Author

Scratch that... I've since changed things somewhere and tried to show someone and now all the ## are the same and all the Status(CurrentPageNumber) are the same but they don't equal each other.

The more I look into it, the more curious I am to find out why

LOL

Post a file ... this is nonesense.

My tests do not return these results.

This only happens if you preview as a PDF (pdf is all 1 page)

Prove me wrong.

Open Parent.

Accidently placing a related field on a main layout isn't unusual. The error is indeed strange but not impossible. :wink2:

UPDATE: If this file is first converted to vs. 8.0v3, it no longer works (the calcs display the same results). When opening in 6.0v3 or converting to 7.0v3, the results show different values in the calcs. I don't have vs. 5 to test.

LaRetta

StatusPage.zip

Edited by Guest
Added Update

  • Author

Ok here's a small file to show what I was referring to.

I was going to make a layout where things matched and such but that seemed like too much work LOL

Let me know what you think.

page_number_test.zip

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.