Dynamic page names in a page set

I would like to create page names in a page set dynamically depending on a data item of a query connected to the detail page in the page set.
Has anybody an idea if that is possible.
Thanks in advance.
Martin