I've attached a zip with an example panel where...
One thing to be aware of is that in the case of Vid2 and Vid4 they only have the ID constraint on those drawn in instances.
In my example look for the code in the API. I've set it to immediate="true" so that it runs the code in the API before the UI components get rendered.
I've also taken the liberty to attach two other example panels in the zip. I believe these are Richard is referring to.
Original Message:
Sent: 04-17-2025 05:27
From: Richard Crutwell
Subject: Dashboard - Parameter References
I've not seen these global constraints used before, I think they may be an older implementation and there is a newer method, likely using structs.
Do you have the examples dump of Dashboard panels? - it's a zip archive Tech Support can provide that has examples of how we use all the features including the params and constraints. I think it'd be best to review these and see if you can achieve what you are looking for from a combination of these examples. Dashboard has been built up over years, so some features like this global constraints have become deprecated, it may be the case here or there is just a simpler method for achieving the same thing.
------------------------------
Richard Crutwell
Ross Video UK
Original Message:
Sent: 04-16-2025 14:35
From: David Levy
Subject: Dashboard - Parameter References
Thanks Richard!
Can this also be done with Global Constraints? Are those also scriptable?
here's an example from the docs, can I script this type of constraint?
<constraint constrainttype="INT_CHOICE" id="VideoFormat"> <constraint key="0">480i-59.94</constraint> <constraint key="1">576i-50</constraint> <constraint key="2">1080i-29.97</constraint> <constraint key="3">1080i-25</constraint> <constraint key="4">720p-59.94</constraint> <constraint key="5">720p-50</constraint> <constraint key="6">1080p-59.94</constraint> <constraint key="7">1080p-50</constraint></constraint><param constrainttype="ID_REFERENCE" constraint="VideoFormat" name="Vid1"oid="0x501" type="INT16_PARAM"/><param constrainttype="ID_REFERENCE" constraint="VideoFormat" name="Vid2"oid="0x502" type="INT16_PARAM"/><param constrainttype="ID_REFERENCE" constraint="VideoFormat" name="Vid3"oid="0x503" type="INT16_PARAM"/>
------------------------------
David Levy
Lead Real Time Graphics Developer
ESPN
Charlotte United States
Original Message:
Sent: 04-16-2025 06:55
From: Richard Crutwell
Subject: Dashboard - Parameter References
Hi David,
I hope this example can help. It shows a struct table, I've added a "pens" subparam to a struct that references values in the struct_array. If this subparam is added/deleted from it will update the choices on the struct.
------------------------------
Richard Crutwell
Ross Video UK
Original Message:
Sent: 04-15-2025 16:22
From: David Levy
Subject: Dashboard - Parameter References
The documentation for Dashboard says:
"Parameter References
Sub-params within a structure may also be defined as references to other parameters. These behave
much like C++ or Java variable references. A parameter reference inherits the referenced parameter's
type, attributes and constraints. "
How do I actually do this? I want to make a dropdown for the home and away team that lists all the possible penalties.
The naive way would be to make 2 duplicate array params, but I was hoping I could store the list of penalties somewhere, and make the home and away params inherit these options.
------------------------------
David Levy
Lead Real Time Graphics Developer
ESPN
Charlotte United States
------------------------------