getQuotaFieldValues

Reading Time: 1 minute

Gets the selectable values for a quoted field.

Description

vcc.getQuotaFieldValues(field: string): object

Parameters

field
The name of the field.

Return values

An object where the keys are the valueIDs of the requested field. If a key is True, then it indicates that the value is selectable.

Example

You need to only display the selectable values in a drop-down control.

$('page1', 'quota_field').onLoadData = function(data) {
     const validValues = vcc.getQuotaFieldValues('quota_field');
     return data.filter(function(value) {
         return !!validValues[value.valueid];
     });
};

There are no comments yet.
Subscribe to our newsletter
or Contact us!
Please note that by subscribing to our newsletter, you agree to receive regular email messages from VCC Live® about service related news and updates. By subscribing to our newsletter, you also agree that VCC Live® will use your data in accordance with the applicable Privacy Policy until you unsubscribe from the newsletter.