Summary

This command returns the number of data points entered by the user that have been SDVed.


Attributes

  • None

Parameters

  • None


Note: The 'when' attribute should always be set to 'after' in order for the command to work. 


Example

This script returns the proportion of data points changed by a query over the user’s total data points entered if the user has had at least 100 data points SDVed. The value returned will range from 0-1 or 500 will be returned if the user has not had enough data SDVed yet.

<script scriptId='customScore' >
  <body>
    <s:if>
        <s:gte>
          <s: userSDVDataPoints />
          <s:number value="100"/>
        </s:gte>
      <s:divide>
        <s:userDataPointsChangedByQuery/>
        <s: userDataPoints />
      </s:divide>
      <!--Score is not valid if data points < 100 -->
      <s:number value="500"/>
    </s:if>
  </body>
</script>

Need more help?

Please visit the Fountayn Contact Information page.