Home > Uncategorized > Introduction to Quota functions for scripting

Introduction to Quota functions for scripting

Overview

This how-to will introduce you to the functions of QuotaMgr.
These set of functions allow you to communicate with your quotas throughout your scripts, dynamically while an interview is conducted.
This might come in handy when the script logics are quota dependent.

The QuotaMgr functions:

  • QuotaMgr.GetQuotaCurrent(“name of your quota”);
    This function will get the current number filled by the given quota name.
  • QuotaMgr.GetQuotaTotal(“name of your quota”);
    This function will get the current target of the given quota name.
  • QuotaMgr.HasCurrentSetQuota(“Male”);
    This function will return ‘true’ if the current interview has set the given quota and ‘false’ if it hasn’t.
  • QuotaMgr.HasFilledQuota(“Female”);
    This function will return ‘true’ if the current quota is full and ‘false’ if it isn’t full.

You can use these functions in any script, but please note, that the quota name must be exactly as it is written in your quota configuration’s, if it is not the same, it would not work.

That’s it!

Visit us at: http://www.dooblo.net

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: