Can you create a dropdown selection on embedded views?

I'm working on a reusable template that takes 2 integers as parameters. Currently they are magic numbers and only numbers 0-3 are meaningful to the template.

I would like to add a parameter drop down to the template so that people can embed the view and click a drop down to select a valid option from a list when passing parameters in the designer.

I don't think that's currently a feature but I figured I'd ask here because someone here will know if that's possible.

Two thoughs:

  1. Add a "config fault" label to the view with visibility determined by expression binding on the parameters.
  2. Have a look at the Dashboard component. See how they make the widgets configurable by the end user. Could you do something similar for a designer?

I know this has been suggested in the feedback for IA, but for now I would just use a couple BOOLs instead of an integer parameter. Or use an "error overlay" that's hidden when the parameter is 0-3 and shown when it's not (something like "invalid <parameter> value")

Do you plan on adding numbers ?
And what do they represent ?

good point. he did say that they are currently magic numbers

Currently using magic numbers.

It's a CSS-based pipe model. The numbers represent the pipe's end style.

0 - open
1 - connecting to a pipe or tank
2 - elbow up
3 - elbow down

I'd like to have a dropdown on the color too. If I can do it on the pipe ends I can do it on the color.

I'd like to be able to click a dropdown on the parameters going into the template to pick "none, connect, up, down" or something like that.

Someday :slightly_frowning_face:

2 Likes

I'm happy to see it's in the pipeline.

Still the best SCADA product I've worked in by far.