Skip to main content

onDimensionCustomValueUpdate

Last updated 28/07/2026

Dimension custom value update handler

This example demonstrates how the

callback persists a newly created dimension custom value from the widget into the host application's persistent storage. Once the custom value has been successfully updated, the result is returned to the widget through the

onResponse
callback.

TypeScript
Dimension custom value update handler
onDimensionCustomValueUpdate: (dimensionCustomValue: DIQ_DimensionCustomValue, onResponse: (result: DIQ_Result) => void) => {

// Update the dimension custom value
database.updateDimensionCustomValue(dimensionCustomValue);

// Return the result to the widget
onResponse(
{ success: true }
);

},