Is there a way that I can get the value from a variable within Enterprise PDM (2012) into a query?
So, if I had a variable named CAD_PartNumber and wanted to use the value of that variable in a query, such as :
SELECT '' FROM Parts WHERE PartNum = CAD_PartNumber;
How (and can) this be done?
Hello Chris,
SELECT Variable.VariableName, VariableValue.ValueText, Variable.VariableID, VariableValue.DocumentID
FROM Variable INNER JOIN
VariableValue ON Variable.VariableID = VariableValue.VariableID
I would suggest using the using the query editor to add all the tables as its intutive and easy.
If the variable value is text the above query is good but you may have to add the othe variable values like text,date. yes or no.
Hope this helps !
Raghav.