1 Reply Latest reply on Oct 4, 2016 3:22 AM by goldencode

    How to color an object using a script?

    goldencode

      Hi, everyone

       

      I'v been googling for a long time but no luck...

       

      ____________________________________________

       

      There are to approaches in my mind:

       

      The first approach is to color an object when a specific value of a field is set to "Yes"

       

      so the script will be like this:

       

      If [table::filed = "Yes"]

      set the color of table::filed = "Green"

      End If

       

       

       

      The second approach is to have some already hidden colored shapes and show the one with the desired color when needed

       

      so the script will be like this:

       

      If [table::filed = "Yes"]

      show the shape with color "Green"

      End If

       

      ____________________________________________

       

       

      Thank you for your time and your help is greatly appreciated

        • 1. Re: How to color an object using a script?
          goldencode

          I was able to achieve it with the first approach,

           

          So the answer for anyone looking for it:

           

          Right Click on the container (Object) > Choose Conditional Formating

           

          Then in Condition section choose Formula is then set your own condition,

           

          for me it is: table::field = "Yes"

           

          Finally, in the Format section choose your desired color,

           

          You are done