getQuotaFieldData
Gets information of the quota values in a quoted field.
Description
vcc.getQuotaFieldData(field: string): object
Parameters
field
The name of the field.
Return values
A QuotaDataObject object.
Example
You need to sort selectable values based on the number of remaining items in a quoted field.
$('edge_field').onLoadData = function(data) {
const quotas = vcc.getQuotaFieldData('edge_field');
return data.sort(function(a, b) {
return quotas[a.valueid].diff_value - quotas[b.valueid].diff_value;
});
};
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.