I’m trying to update some text with the correct page number using python. I want to use the field %< pagenumber>% but the resulting text is printed out as %< pagenumber>% instead of the correct page number (1, 2, 3 ect).
textRep = rs.TextObjectText(id, currentText+'%<pagenumber>%-'+key)
“VIEW %< pagenumber>%-3A”
(I had to add the pace after the first carrot so that it would print in this forum, but the space isn’t there in the code)
How do I get the text to refresh and print the correct output? if I click on the text and then hit escape the text will update and display the page number correctly.