Difference between revisions of "Quota getAllQuotas"

From Catglobe Wiki
Jump to: navigation, search
 
Line 4: Line 4:
 
====Quota_getAllQuotas====
 
====Quota_getAllQuotas====
  
To get information of all quotas in questionnaire.
+
To get information of all quotas in questionnaire. ( view Quota_new)
  
 
'''Syntax'''
 
'''Syntax'''
Line 12: Line 12:
 
'''Arguments'''
 
'''Arguments'''
  
PQResourceId : Id of questionnaire to which quotas belong.
+
PQResourceId : Resource Id of questionnaire to which quotas belong. If it is empty, the project questionnaire context is needed
  
 
'''Return type'''
 
'''Return type'''
Line 20: Line 20:
 
'''Example'''
 
'''Example'''
  
array a= Quota_getAllQuotas([34806989]);
+
array a= Quota_getAllQuotas(34806989);
 +
 
 +
print(a);
 +
 
 +
//{{26,5915,Arkitekt, textilindustri,1000,Q3 == [5] ,5310088,,False,False,9,1},{26,5912,Bank, Egendomsmäklare och advokat,1000,Q3 == [2] ,5310088,,False,False,12,0},{26,5913,Bilhandlare och –uthyrare, möbler,1000,Q3 == [3] ,5310088,,False,False,9,0},{26,5914,Frisör, galleri, modebutik,1000,Q3 == [4] ,5310088,,False,False,3,0},{26,5830,GNF,1000,GNF_Dummy == [1] ,5310088,,False,False,26,0},{26,5911,Turism, hotell och restaurang,1000, Q3  ==  [1] ,5310088,,False,False,5,0}}
  
 
'''Availability'''
 
'''Availability'''

Latest revision as of 10:23, 3 January 2012



Quota_getAllQuotas

To get information of all quotas in questionnaire. ( view Quota_new)

Syntax

array Quota_getAllQuotas([number PQResourceId])

Arguments

PQResourceId : Resource Id of questionnaire to which quotas belong. If it is empty, the project questionnaire context is needed

Return type

array

Example

array a= Quota_getAllQuotas(34806989);

print(a);

//{{26,5915,Arkitekt, textilindustri,1000,Q3 == [5] ,5310088,,False,False,9,1},{26,5912,Bank, Egendomsmäklare och advokat,1000,Q3 == [2] ,5310088,,False,False,12,0},{26,5913,Bilhandlare och –uthyrare, möbler,1000,Q3 == [3] ,5310088,,False,False,9,0},{26,5914,Frisör, galleri, modebutik,1000,Q3 == [4] ,5310088,,False,False,3,0},{26,5830,GNF,1000,GNF_Dummy == [1] ,5310088,,False,False,26,0},{26,5911,Turism, hotell och restaurang,1000, Q3 == [1] ,5310088,,False,False,5,0}}

Availability

Version 5.8