onDimensionCustomValueUpdate
Dimension custom value update handler
This example demonstrates how the onDimensionCustomValueUpdate 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.
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 }
);
},