I have a question regarding Custom actions:
Basically what I would like to have is a custom action to shown only when the
This action is located in the ribbon.
Any idea on how I can do that?
To answer my own question, I found a solution by creating custom action automatically when my feature by anyway is activated.
I used SPUserCustomAction, here is a piece of code for someone who will be interested, the code is shortned, but you will see the idea: