$totpage on reports
Author: firstname.lastname@example.org (gianni)
Hi Unifacers, A Uniface Developer I am in contact with was asked from a customer to write in each page of a somehow "critical" report something like "Page Y of X", where X is the total number of pages the whole report will have at the end. He came to me asking: - is it supported from Uniface a function giving back the total number of pages a report will generate? My answer: NO, AFAIK as of today. - is there anyhow a tricky way to solve it, avoiding to answer NO to the customer? My answer: are you using occurrences/field vertical expansion in your report? Yes! The only solution I can imagine is to run the report twice with same params: the first time to a virtual device just to get the total number of pages generated the second time effectively to generate the report output but this solutions could lead to effective errors/problems: 1) With lengthy reports new occurrence could be inserted matching chosen params between first and second execution 2) Each output device should have a virtual one coupled with EXACTLY same setup (NOT an acceptable request to sysadmins!) We agreed to tell NO to the customer (BTW: it is never a simple decision!) It is very probable/possible this request was already asked before; I remember to have lightly discussed with ULab this same issue many many years ago (U6/U7 times, 20 years or more ago...). My memory is telling me: "If you do not solve an issue today it will come back to you later" Anyhow: Am I missing something? Is there an alternative way to look at this request? Gianni P.S. @ULab: wishlist is going to be reopened sooner or later?