hexagon logo

Getting StatsCount to show up in datapage+

I have tried several solutions I have found in the forums for retrieving the stats count with no luck so far. Is there something simple I am missing here. Why didn't they just make StatsCount one of the general expressions like PartName?
Parents
  • RESOLVED!!!

    So Hexagon got back to me with a work around...
    Use the following code at the start of your program below Stats/On

    ASSIGN/STAT_CNT=GETTEXT("Statistics count",1,GETCOMMAND("file header","TOP",1))
    TRACEFIELD/DISPLAY,LIMIT=15 ; STAT_COUNT : STAT_CNT

    Be sure to enter the tracefield portion manually (do not use the msg box)...once you hit enter a prompt will ask if would like to associate STAT_CNT with the variable you created...hit YES.

    Now when your program runs it will grab whatever is in stats count at the top and put it in the tracefield.

    Apparently the guy I talked to is pushing for this to be integrated into datapage+ automatically as it was on previous versions of datapage+ which would be nice.
Reply
  • RESOLVED!!!

    So Hexagon got back to me with a work around...
    Use the following code at the start of your program below Stats/On

    ASSIGN/STAT_CNT=GETTEXT("Statistics count",1,GETCOMMAND("file header","TOP",1))
    TRACEFIELD/DISPLAY,LIMIT=15 ; STAT_COUNT : STAT_CNT

    Be sure to enter the tracefield portion manually (do not use the msg box)...once you hit enter a prompt will ask if would like to associate STAT_CNT with the variable you created...hit YES.

    Now when your program runs it will grab whatever is in stats count at the top and put it in the tracefield.

    Apparently the guy I talked to is pushing for this to be integrated into datapage+ automatically as it was on previous versions of datapage+ which would be nice.
Children
No Data