Skip to main content

onDimensionCustomValueNew

Last updated 28/07/2026

Dimension custom value creation 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 stored, the result is returned to the widget through the

onResponse
callback.

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

// Store the new dimension custom value
database.createDimensionCustomValue(dimensionCustomValue);

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

},