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?
  • Yeah, I just figured the point of new software is that its supposed to be improving on the previous and creating less work not more...lol Foolish of me to think that I guess.


    To be fair, I don't think I have ever seen a kind word written about the "new, improved DataPage".
  • 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.
  • 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.


    Awesome. Thanks for sharing.
  • Use trasfield if you need the number of parts ran to show in DataPage. This is what I found that works for me.