Skip to main content

onListCustomValues

Last updated 27/07/2026

Custom value list handler

This example demonstrates how the

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.

TypeScript
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);

};