Skip to main content

onListDimensionCustomValuesForRevision

Last updated 29/07/2026

Revision dimension custom value listing handler

This example demonstrates how the

callback retrieves all dimension custom values associated with a revision from the host application's persistent storage. Once the custom values have been retrieved, they are returned to the widget through the

onResponse
callback.

TypeScript
Revision dimension custom value listing handler
onListDimensionCustomValuesForRevision: (revision: DIQ_Revision, onResponse: (result: DIQ_Result, dimensionCustomValues: Array<DIQ_DimensionCustomValue> | null) => void) => {

// Retrieve all custom values for the revision
const dimensionCustomValues = database.getDimensionCustomValuesForRevision(revision.key);

// Return the custom values to the widget
onResponse(
{ success: true },
dimensionCustomValues
);

},