Your formula has no fields or variables. When a field or variable changes, Panorama will update any objects with formulas that reference that entity (in the case of a variable, you must use the
showvariables statement). But in your case, there are no fields or variables. Panorama is not smart enough to recognize that the formula contains info( functions whose values have changed.
The solution is to add a “dummy” variable to the formula, for example:
recordCountChange+pattern(info("Selected"),"#")+"/"+pattern(info("Records"),"#,")+" records selected"
.Initialize procedure, make sure this variable is created and initialized to an empty string:
recordCountChange = ""
Then, after you do a select, force this variable to update:
select somefield="some value"
Of course, this will only work for selections done by your code. There is no way to get this value to update when the standard Find/Select dialog is used, sorry.
If you are using Panorama X, you can skip the part about the
.Initialize procedure. You don’t actually have to create the variable. Just use the
catcherror( function in the formula in the Text Display object, like this:
catcherror("",recordCountChange)+ rest of forumula
Even though your variable doesn’t have a value or even exist, you can still update its display with
showvariables! I actually use this trick fairly frequently.