This project is read-only.
2
Vote

DataSet Parameters

description

Each DataSet can have Parameters. right now the PSDPE doesn't do anything intelligent with them.
 
How to make use of Parameters in the PSDPE?
 
OPTION 1 - Ugly String Replacement
Look into the command text (the script) and replace any occurences of the ParameterName with the ParameterValue.
UGLY, but the current (and dirty) approach.
 
OPTION 2 - Just Add the Parameters as a Variable to the PowerShell RunSpace
This pops the Parameters into the runspace as a variable, available to the script.
PRO: easy to code
CON: not super easy to consume, have to pick through the collection to find your parameter using a Where-Object
 
OPTION 3 - Convert the Parameters to a PSObject, then add as a Variable to the PowerShell RunSpace
This pops the Parameters into the runspace as a variable, available to the script, but as a PSObject.
CON: not as easy to code
PRO: SUPER easy to consume

file attachments

comments

CraigMartin wrote Nov 16, 2011 at 6:22 PM

Adding files to illustrate what I've mocked-up so far

wrote Feb 25, 2012 at 6:28 PM

wrote Feb 13, 2013 at 9:51 PM

wrote Sat at 9:43 AM