Ok, I think I see what the problem is.
The custom state is within your reusable element. But the action you are trying to use to set the custom state is on the page. The page cannot set the custom state of the reusable element. My guess is that you’ve created the custom state “HeaderInfotext” on both the page and the RE. If this is the case, then you’re trying to set the state of HeaderInfotext on the page, but are displaying the HeaderInfotext within the RE.
You can delete the “on page load” action as well as HeaderInfotext in the page.
Rather set the custom state within the RE.
You’re right: the custom state is in then reuseable header and I have to set it from every page (and no: I didn’t have another custom state in the page)
Examples:
On Page ‘customers’ the text in the header should be “My customers”
On Page ‘products’ the text in the header should be “My products”
On Page ‘services’ the text in the header should be “My services”
and so on …
I found this Topic 58158 with nearly the same problem and the answer was, that we can solve it with a custom state of the reuseable element
Questions:
1.) Why can I select the custom state of my header in the workflow of the page in “Set state” if it doesn’t work?
2.) How can I change a text in a reuseable header from each page?
Damn! Sorry, you’re right. I just recreated the scenario and I do have access to the RE’s states from the page. So that was misleading feedback. Sorry!
Let me dig some more. Now I’m determined to help you solve this puzzle.
Ok, this is what I’ve been able to figure out…
I can indeed access the RE’s custom state from the page within workflow design. BUT, my workflow actions had no impact on the RE!
Instead, what I have been able to do is update the RE’s custom states from the within RE itself. So for example, from within the RE, use “on page load” to set the RE’s state to current user, and then display that on the RE and therefore on the page.