onListCustomValues
Custom value list handler
This example demonstrates how the onListCustomValues callback
retrieves the custom values associated with a dimension group from the host application. Once the custom values have been retrieved, they are returned to the
widget through the
onResponse
callback.
Custom value list handler
onListCustomValues: (group: DIQ_DimensionGroupRevision, onResponse: (result: DIQ_Result,customValues: Array<DIQ_CustomValue> | null) => void) => {
// Retrieve the custom values for the specified dimension group
const customValues = database.getCustomValues(group.key);
// Return the custom values to the widget
onResponse({
success: true
}, customValues);
};