I’m using the custom visual type to load an image from a URL. My use case is to select a value from a dropdown (listing users) and then display that user’s avatar image.
I know I can use a parameter in the URL with <<$PARAM_NAME>>. However, what I need to do is apply some string function to the parameter value, e.g. get the first few characters (for instance going from “123 - John Smith” to simply “123”, as the avatar image is stored in a file named 123.jpg). Is that possible?
This could also be achieved if the control had a label/value mapping, though I’ve seen in other posts that this is not yet possible.
@Max I’ve tried using a cascading control, and I’m almost there. When I select a value on the “parent” control, the list of options in the “child” control is limited to the one associated with the parent one. The only issue is that the child control always shows the “All” options besides the one I’m interested in. Even though I’ve marked “Hide Select All”, it still shows it.
The tip for Hide Select All mentions “Hide Select all option from the control values if the parameter has a default configured”, and I think I don’t have a default value (as the value depends on another control). Is there any other way of removing the “All” option?