hexagon logo

add page numbers 2013 sp2

Hi all,
I am trying to DD Pgwe numbers to my report, only I can't find out which report I a using. so I am making the change acroos the board.
Can anyone tell me how to find out which report my programs use?
I am adding a text box to the bottom of the report and then right clicking on it to change the properties.
I go to the text 1 and text 2 and left click to the right of the text property and it automatically fills in
with the page number and number of pages code. That didn't work. So I then put a check into the box to the left of the
word text and it came up with how i want to promt the operator. I do not want to prompt the operator. I just want page of X pages at the bottom of my reports.
Can any point me in the right direction to accomplish this?

Floyd
  • There's also a script on here that will refresh the report; I use it on all my programs to put current tracefield data into the header. Search for refresh.bas
  • You may be 1 execute behind if the header is not re-evaluated. See my notes above to force re-evaluation.


    I had the impression that problem only occurred for variables, but tracefields forced the re-evaluation. Have I just been lucky, or has something changed?
  • I have the operator input the variable and assign it to V1. I use this variable to save the PDF of the report. I am currently having it printed out on the report, but I would like it in the serial number field of the header to clean up the report.
  • I had the impression that problem only occurred for variables, but tracefields forced the re-evaluation. Have I just been lucky, or has something changed?

    Lucky? Maybe something else forced the header to be re-evaluated. There are a few expressions that will do that but I know ELAPSEDTIME() will.
  • I have found out that it will automatically uppdate the header if the header file is correct. Like TRACEFIELD(1). but now I am trying to request the operator name and fill it in the revision field and it won't work. My code is
    C3 = COMMENT/INPUT,NO,FULL SCREEN=YES
    ENTER OPERATOR NAME
    TRACEFILED/NO_DISPLAY,LIMIT=15; : C3.INPUT :

    However when I do this it automatically grabs C2.INPUT which is the serial number. I am sure the header file is edited correctly. I even threw in "ASSIGN/V2=C3.INPUT". What could I be missing?
  • I have found out that it will automatically uppdate the header if the header file is correct. Like TRACEFIELD(1). but now I am trying to request the operator name and fill it in the revision field and it won't work. My code is
    C3 = COMMENT/INPUT,NO,FULL SCREEN=YES
    ENTER OPERATOR NAME
    TRACEFILED/NO_DISPLAY,LIMIT=15; : C3.INPUT :

    However when I do this it automatically grabs C2.INPUT which is the serial number. I am sure the header file is edited correctly. I even threw in "ASSIGN/V2=C3.INPUT". What could I be missing?



    See the misspelled TRACEFIELD above and C3.INPUT should be the second term in the line.

    ex. TRACEFIELD/NO_DISPLAY,LIMIT=15 ; : C3.INPUT

    Also, if you have TRACEFIELD(1) in the header file it will take data from the first tracefield in the program. If you add a new one later before the intended tracefield that becomes number 1.
  • Well here's my code. I still can't see anything wrong with it.

    C2 =COMMENT/INPUT,NO,FULL SCREEN=YES,
    Enter serial Number:
    ASSIGN/V1=C2.INPUT
    TRACEFIELD/NO_DISPLAY,LIMIT=15 ; C2.INPUT :
    $$ NO,
    ***********************************
    end obtain serial number
    ***********************************
    C32 =COMMENT/INPUT,NO,FULL SCREEN=YES,
    Enter machinist name:
    ASSIGN/V31=C32.INPUT
    TRACEFIELD/NO_DISPLAY,LIMIT=15 ; C32.INPUT :

    I copied the C2 section and made minor modifications so it would esentially be the same and it still doesn't work.
  • Well here's my code. I still can't see anything wrong with it.

    C2 =COMMENT/INPUT,NO,FULL SCREEN=YES,
    Enter serial Number:
    ASSIGN/V1=C2.INPUT
    TRACEFIELD/NO_DISPLAY,LIMIT=15 ; C2.INPUT :
    $$ NO,
    ***********************************
    end obtain serial number
    ***********************************
    C32 =COMMENT/INPUT,NO,FULL SCREEN=YES,
    Enter machinist name:
    ASSIGN/V31=C32.INPUT
    TRACEFIELD/NO_DISPLAY,LIMIT=15 ; C32.INPUT :

    I copied the C2 section and made minor modifications so it would esentially be the same and it still doesn't work.


    The variable needs to be the second term in the tracefield command. See below:

    [COLOR=#333333]TRACEFIELD/NO_DISPLAY,LIMIT=15 ; OPERATOR : C32.INPUT
    [/COLOR][COLOR=#333333]TRACEFIELD/NO_DISPLAY,LIMIT=15 ; SERIALNUM : C2.INPUT[/COLOR]


    Search the help file for tracefield. Your screen capture is too small to read.
  • if you don't want to use tracefields you can use.

    =INT(VARIABLE("SERNUM1"))

    In the header field (sernum1 is the variable from the comment)

    I use a variable name that is just or ONLY used for the header information.
    This way V1 or V32 are names used in a program and I will not over write or use it accidently.


    C2 =COMMENT/INPUT,NO,FULL SCREEN=YES,
    Enter serial Number:
    ASSIGN/SERNUM1=C2.INPUT