title: Python Scripting in TIBCO Spotfire to show custom Messages
body: <p>I am loading a data table on demand and have linked it to markings in a previous tab. The Data table look like:</p>
  
  <pre><code>  ID        Values
    1         365
    2         65
    3         32
    3         125
    4         74
    5         98
    6         107
  </code></pre>
  
  <p>I want to limit the data that is brought into this new visualization based on distinct count of ID. </p>
  
  <p>I am currently doing it using
  "Limit Data by Expression" section in the properties.
  Where my expression is</p>
  
  <pre><code>UniqueCount(ID) &lt;= 1000
  </code></pre>
  
  <p>This works perfectly, however, I'd also like it to display a message like
  "Too many IDs selected. Max Limit is 1000"</p>
  
  <p>I was thinking of doing this using a property control where the property control triggers an iron python script. Any suggestions on how to write that script ?</p>