I suppose you could simplify it down to that.
A key part is not wanting to put a dialog box box between the button press and the action on the features, and that the values could persist across multiple runs of the process.
It will also be required to fetch an id value for each feature from a webservice.
Thanks