I would like to create one text field that contains Page X of Y, without splitting it in two parts, as per the common solution. My textfield contains \"Pa
Regarding the current page number, evaluationTime=now and $V{PAGE_NUMBER} is your answer.
Unfortunately I don't think you can achieve what you want because there is a bug in PAGE_COUNT when Split Allowed is on for the Detail band. Otherwise evaluationTime=now and "Page " + $V{PAGE_NUMBER} + " of " + $V{PAGE_COUNT}" would probably work.