Just to iterate: so you need to grab the contents of a particular field to the clipboard by clicking it?
"I thought to have achieved this by adding to the script as parameter;
GetRepetition(repeating variable; Get(ActiveRepetitionNumber))"
That couldn't work because there is no active repetition when you push a button.
Try instead to hard-code the repetition number as the script parameter and get its content by:
Repeating[ Get ( scriptParameter ) ]
Yes, I need the contents of the field/repetition in the repeating variable I clicked.
Raybaudi is right, when he states that there is no active repetition when the button is placed on the repeating variable.
I suspected that and I came up with a second-best solution:
I detached the button from the repeating variable and created a separate button. Now I first activate the particular repetition in the repeating variable, then click the button which executes the script with the parameter GetRepetition(repeating variable; Get(Active RepetitionNumber)) and it works. However, the drawback is that I have to click twice, which is one time too much.
I tried your solution, although I don't understand 'hard-code', and it returns "?" in stead of the contents; I don't see how it could have worked.
Anyway, thanks for your reaction.