Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Quota new: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
Cg_pham (talk | contribs)
No edit summary
Line 22: Line 22:


array Β 
array Β 
<table width="651" cellspacing="0" cellpadding="2" border="1" style="border-collapse:collapse; border:1px solid #010101" class="tableintopic">
<tbody><tr valign="top" align="left">
<td width="318" bgcolor="#BFBFBF" style="border:1px solid #010101;"><p class="bodytext"><strong class="specialbold">Index</strong></p>
</td>
<td width="116" bgcolor="#BFBFBF" style="border:1px solid #010101;"><p class="bodytext"><strong class="specialbold">Data type</strong></p>
</td>
<td width="217" bgcolor="#BFBFBF" style="border:1px solid #010101;"><p class="bodytext"><strong class="specialbold">Initial value</strong></p>
</td>
</tr>
<tr valign="top" align="left">
<td width="318" style="border:1px solid #010101;"><p class="bodytext">[OBJECT_TYPE]</p>
</td>
<td width="116" style="border:1px solid #010101;"><p class="bodytext">number</p>
</td>
<td width="217" style="border:1px solid #010101;"><p class="bodytext">Quota object</p>
</td>
</tr>
<tr valign="top" align="left">
<td width="318" style="border:1px solid #010101;"><p class="bodytext">[QUOTA_ID]</p>
</td>
<td width="116" style="border:1px solid #010101;"><p class="bodytext">number</p>
</td>
<td width="217" style="border:1px solid #010101;"><p class="bodytext">0</p>
</td>
</tr>
<tr valign="top" align="left">
<td width="318" style="border:1px solid #010101;"><p class="bodytext">[QUOTA_NAME]</p>
</td>
<td width="116" style="border:1px solid #010101;"><p class="bodytext">string</p>
</td>
<td width="217" style="border:1px solid #010101;"><p class="bodytext">Entered value</p>
</td>
</tr>
<tr valign="top" align="left">
<td width="318" style="border:1px solid #010101;"><p class="bodytext">[QUOTA_TARGET]</p>
</td>
<td width="116" style="border:1px solid #010101;"><p class="bodytext">number</p>
</td>
<td width="217" style="border:1px solid #010101;"><p class="bodytext">Entered value</p>
</td>
</tr>
<tr valign="top" align="left">
<td width="318" style="border:1px solid #010101;"><p class="bodytext">[QUOTA_EXPRESSION]</p>
</td>
<td width="116" style="border:1px solid #010101;"><p class="bodytext">string</p>
</td>
<td width="217" style="border:1px solid #010101;"><p class="bodytext">Entered value</p>
</td>
</tr>
<tr valign="top" align="left">
<td width="318" style="border:1px solid #010101;"><p class="bodytext">[QUOTA_QUESTIONNAIRE_RESOURCE_ID]</p>
</td>
<td width="116" style="border:1px solid #010101;"><p class="bodytext">number</p>
</td>
<td width="217" style="border:1px solid #010101;"><p class="bodytext">Entered value ( current PQ resource id if no entered value)</p>
</td>
</tr>
<tr valign="top" align="left">
<td width="318" style="border:1px solid #010101;"><p class="bodytext">[QUOTA_DESCRIPTION]</p>
</td>
<td width="116" style="border:1px solid #010101;"><p class="bodytext">string</p>
</td>
<td width="217" style="border:1px solid #010101;"><p class="bodytext">empty string</p>
</td>
</tr>
<tr valign="top" align="left">
<td width="318" style="border:1px solid #010101;"><p class="bodytext">[QUOTA_PRESTRATIFICATION]</p>
</td>
<td width="116" style="border:1px solid #010101;"><p class="bodytext">bool</p>
</td>
<td width="217" style="border:1px solid #010101;"><p class="bodytext">FALSE</p>
</td>
</tr>
<tr valign="top" align="left">
<td width="318" style="border:1px solid #010101;"><p class="bodytext">[QUOTA_DISABLED]</p>
</td>
<td width="116" style="border:1px solid #010101;"><p class="bodytext">bool</p>
</td>
<td width="217" style="border:1px solid #010101;"><p class="bodytext">FALSE</p>
</td>
</tr>
<tr valign="top" align="left">
<td width="318" style="border:1px solid #010101;"><p class="bodytext">[QUOTA_CURRENT]</p>
</td>
<td width="116" style="border:1px solid #010101;"><p class="bodytext">number (read only)</p>
</td>
<td width="217" style="border:1px solid #010101;"><p class="bodytext">0</p>
</td>
</tr>
<tr valign="top" align="left">
<td width="318" style="border:1px solid #010101;"><p class="bodytext">[QUOTA_ONGOING]</p>
</td>
<td width="116" style="border:1px solid #010101;"><p class="bodytext">number (read only)</p>
</td>
<td width="217" style="border:1px solid #010101;"><p class="bodytext">0</p>
</td>
</tr>


</tbody></table>
{| width="651" class="tableintopic" style="border: 1px solid rgb(1, 1, 1); border-collapse: collapse;" border="1" cellspacing="0" cellpadding="2"
|- align="left" valign="top"
| width="318" style="border: 1px solid rgb(1, 1, 1);" bgcolor="#bfbfbf" |
'''Index'''
Β 
| width="116" style="border: 1px solid rgb(1, 1, 1);" bgcolor="#bfbfbf" |
'''Data type'''
Β 
| width="217" style="border: 1px solid rgb(1, 1, 1);" bgcolor="#bfbfbf" |
'''Initial value'''
Β 
|- align="left" valign="top"
| width="318" style="border: 1px solid rgb(1, 1, 1);" |
[OBJECT_TYPE]
Β 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
number
Β 
| width="217" style="border: 1px solid rgb(1, 1, 1);" |
Quota object
Β 
|- align="left" valign="top"
| width="318" style="border: 1px solid rgb(1, 1, 1);" |
[QUOTA_ID]
Β 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
number
Β 
| width="217" style="border: 1px solid rgb(1, 1, 1);" |
0
Β 
|- align="left" valign="top"
| width="318" style="border: 1px solid rgb(1, 1, 1);" |
[QUOTA_NAME]
Β 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
string
Β 
| width="217" style="border: 1px solid rgb(1, 1, 1);" |
Entered value
Β 
|- align="left" valign="top"
| width="318" style="border: 1px solid rgb(1, 1, 1);" |
[QUOTA_TARGET]
Β 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
number
Β 
| width="217" style="border: 1px solid rgb(1, 1, 1);" |
Entered value
Β 
|- align="left" valign="top"
| width="318" style="border: 1px solid rgb(1, 1, 1);" |
[QUOTA_EXPRESSION]
Β 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
string
Β 
| width="217" style="border: 1px solid rgb(1, 1, 1);" |
Entered value
Β 
|- align="left" valign="top"
| width="318" style="border: 1px solid rgb(1, 1, 1);" |
[QUOTA_QUESTIONNAIRE_RESOURCE_ID]
Β 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
number
Β 
| width="217" style="border: 1px solid rgb(1, 1, 1);" |
Entered value ( current PQ resource id if no entered value)
Β 
|- align="left" valign="top"
| width="318" style="border: 1px solid rgb(1, 1, 1);" |
[QUOTA_DESCRIPTION]
Β 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
string
Β 
| width="217" style="border: 1px solid rgb(1, 1, 1);" |
empty string
Β 
|- align="left" valign="top"
| width="318" style="border: 1px solid rgb(1, 1, 1);" |
[QUOTA_PRESTRATIFICATION]
Β 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
bool
Β 
| width="217" style="border: 1px solid rgb(1, 1, 1);" |
FALSE
Β 
|- align="left" valign="top"
| width="318" style="border: 1px solid rgb(1, 1, 1);" |
[QUOTA_DISABLED]
Β 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
bool
Β 
| width="217" style="border: 1px solid rgb(1, 1, 1);" |
FALSE
Β 
|- align="left" valign="top"
| width="318" style="border: 1px solid rgb(1, 1, 1);" |
[QUOTA_CURRENT]
Β 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
number (read only)
Β 
| width="217" style="border: 1px solid rgb(1, 1, 1);" |
0
Β 
|- align="left" valign="top"
| width="318" style="border: 1px solid rgb(1, 1, 1);" |
[QUOTA_ONGOING]
Β 
| width="116" style="border: 1px solid rgb(1, 1, 1);" |
number (read only)
Β 
| width="217" style="border: 1px solid rgb(1, 1, 1);" |
0
Β 
|}


'''Example''' Β 
'''Example''' Β 

Revision as of 08:20, 15 December 2011

ο»Ώο»Ώ

Quota_new

To create a new quota object.

Syntax

array Quota_new(string quotaName, number quotaTarget, string quotaExpression[, number PQResourceId])

Arguments

- quotaNameΒ : the name of new quota.

- quotaTargetΒ : the target of quota.

- quotaExpressionΒ : the expression of quota.

- PQResourceIdΒ : Id of questionnaire to which quota belongs

Return type

array

Index

Data type

Initial value

[OBJECT_TYPE]

number

Quota object

[QUOTA_ID]

number

0

[QUOTA_NAME]

string

Entered value

[QUOTA_TARGET]

number

Entered value

[QUOTA_EXPRESSION]

string

Entered value

[QUOTA_QUESTIONNAIRE_RESOURCE_ID]

number

Entered value ( current PQ resource id if no entered value)

[QUOTA_DESCRIPTION]

string

empty string

[QUOTA_PRESTRATIFICATION]

bool

FALSE

[QUOTA_DISABLED]

bool

FALSE

[QUOTA_CURRENT]

number (read only)

0

[QUOTA_ONGOING]

number (read only)

0

Example

array a = Quota_new("male",5,"Qsingle == 1");

OR

array a = Quota_new("male",5,"Qsingle == 1",34806989);

Availability

Version 5.8