Is there a way to pass a DP name filter to dpSelector(), in addition to the DPT filter? The panel that dpSelector() opens has a field for both a DPT filter and a DP filter, but there doesn't seem to be a way to preset the DP filter field. I want to limit the selection to not only a certain DPT, but also to only certain DPs of that DP type, and I want to specify the DP filter from the script, not require the user to type it in the dpSelector panel.
Any suggestions?
Filtering DPs using dpSelector()
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Filtering DPs using dpSelector()
Just assign your dp filter to the first argument before calling the dpSelector.
- tgdannemiller
- Posts:23
- Joined: Thu Apr 21, 2016 3:29 pm
Re: Filtering DPs using dpSelector()
Wow, that's excellent. I didn't realize that a DP filter value could be passed in the first parameter. I had looked at the help for the dpSelector() function but didn't catch that aspect from it. I've looked again and it does says some things about the &s parameter, but it's not very obvious. Anyway, thanks!