Request to auto-insert a list of parameters, and a list of variables, into the code tabs for copying.
Is your feature request related to a problem? Please describe.
It's a problem when you need it.
I would like to have a way to have a delimited list of: (a) All of the parameters for a process; and (b) All of the variables for a process pasted into wherever you are on one of the code tabs.
But why, when you can use an intellisense-like ability to insert them into the code anyway?
A few reasons.
- First, you have to do that One. Variable. Or. Parameter. At. A. Time.
- Second, if you have a lot of variables, let's hope you haven't forgotten one.
- Third, if the reason that you're doing this is to punch the variables into a CellGetN or similar formula, let's hope that you haven't forgotten the order of the dimensions ("Hmm, was it year then period, or period then year. Dangit, I'll need to check the cube again...") and are selecting them in the right order.
Also when it comes to parameters, I generally want a list of them to make it easier to set the arguments for an ExecuteProcess call. This would be way easier if I could just dump all of the parameters, then cut and paste them into the process that will do the call.
In Perspectives you can select all of the variables on the variables tab, type Ctrl+C, and paste the variables in as a delimited string which makes it easy to include them in the right order in a CellGetN/CellPutN function.
Unfortunately that doesn't work with Parameters, where only the last selected parameter is copied. And, of course, Perspectives won't be around forever anyway.
Describe the solution you'd like
I would like there to be an "Insert Variables" and "Insert Parameters" button which would automatically insert a delimited list of the parameters and variables as the case may be at the cursor point.
Describe alternatives you've considered
For Variables I can just open the process in Perspectives and copy from there. For parameters (or if I need a list of both) I usually just open the .pro file and copy them out of there.
Additional context
I noticed that there was a slightly similar request in issue 1732, which asks for the variables to be output. Mine is a little broader than that, however.