I presume what you want to do here is be able to make changes to the button's logic without having to re-copy the button into all of the views every time you do that, is that correct?
There isn't a way to have controls that exist in all of the views and automatically reflect any changes you make to them, but this is what I do whenever I have some logic that I might want to carry out under different situations.
-
Create a secondary XML data source with a bunch of fields to serve as "triggers" for various operations. I import them with blank values and include one more field called Stop.
-
Add rule logic to each of these "trigger" fields, as follows:
Rule 1:
Condition: (the current field) is blank
Action: Set the Stop field to blank. Stop executing rules.
Rule 2, 3, 4, 5, etc. - The operations the trigger should carry out.
Last rule: Set self to blank.
Then, you just set up your buttons to have the rule action: Set (trigger field) = "go". The trigger field carries out the actions and resets itself to blank when it's done. You only need to modify one set of rules any time you want to change the logic.
Do you think something like that might work for you?