5 Replies Latest reply on Nov 2, 2016 7:16 AM by Aishwarya Sivakumar

    Loading dynamic images based on field values

    Trish Ta

      Hi everyone,

       

      I'm trying to add images to a dashboard that would be loaded dynamically based on items chosen by the user through a multi-select drop down list. The images are named after each item's ID number. I'm trying to find a way to pull the IDs as an array and then load the images using JavaScript. I looked through the documentation but cannot see any way of getting the value of a field except through the Mark class's getPair method. However this method is only available after selecting the marks.

      Does anyone know a way to get the field name and value pairs for all marks on the visualization without having to select them first? Having said that I don't see a way to select all marks automatically either.

       

      Please let me know if you can suggest something to get this to work.

       

      Thanks!


      Trish